Loading...
 
Galaxia Workflow Engine

Galaxia Workflow Engine


Newbie

Can anyone help me how to route a document in Galaxia Workflow? I can get some of the steps in workflow to work.

Basically I want
1. one user to upload a document (say a word file) and pass it to another user.
2. another user will check the document and approve or disapprove it.
3. the first user will then know if his document was approved or disapproved.

Brazil

Hmm,
looks like you have a simple process here. Just the implementation is a bit complicated because you have to 1)handle the upload for the submitter, and 2)the download/view for the reviewer. Emails should be sent too.

Code a Start activity where the submitter can upload a document. Upon activity completion, steer the instance to the review activity. After completing review, send the instance to acknowledgement - and End activity.

Georger

> Can anyone help me how to route a document in Galaxia Workflow? I can get some of the steps in workflow to work.
>
> Basically I want
> 1. one user to upload a document (say a word file) and pass it to another user.
> 2. another user will check the document and approve or disapprove it.
> 3. the first user will then know if his document was approved or disapproved.


France

Hi,

First, I think you can't specify the next user in a start activity (I think it's because the instance is not created before the end of the start activity - so you can't assign the next user before the instance exists).

Here is the way I used to do almost the same think you want.

In my start activity, a user (student1) uploads a file.

Following the start activity, there's a non-interactive activity that just sets the next user. First, I find who is the owner of the instance (student1), and I look in a table I created in the tiki database who is the person assigned to that student (teacher1).

$owner=$instance->getOwner();
$query="select * from students where student ='$owner'";
$suivant2=$this->query($query);
$suivant=$suivant2->Fields('teacher');
$instance->setNextUser($suivant);


The next activity is assigned to teacher1 (of course, teacher1 must have a role accepted by that activity...)

Yann


Thanks for the help.

I'll try to do what you guys said.

If I have any problems I'll just post here again.


Can anyone help me how to upload a file and then another user (reviewer) specified will be able to download/edit it as described in the forum message above?

I was able to upload a file using the following code. I got it from
http://www.php.net/manual/en/features.file-upload.php

Will another specified user (reviewer) be able to download the same file or is there a better way to upload a file?

I am not that familiar with PHP.

template:

{*Smarty template*}




Send this file:




code:


Can anyone help me how to upload a file and then another user (reviewer) specified will be able to download/edit it as described in the forum message above?

I was able to upload a file using the following code. I got it from
http://www.php.net/manual/en/features.file-upload.php

Will another specified user (reviewer) be able to download the same file or is there a better way to upload a file?

I am not that familiar with PHP.

template:


form enctype="multipart/form-data" method="POST">

input type="hidden" name="MAX_FILE_SIZE" value="30000" />

Send this file: input name="userfile" type="file" />
input type="submit" name="submit" value="Send File" />
/form>


code:


if'submit'" class="wiki wikinew text-danger tips isset">$_REQUEST'submit'{

// In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead
// of $_FILES.

$uploaddir = '/var/www/uploads/';
$uploadfile = $uploaddir . basename($_FILES'userfile''name');

echo '';
if (move_uploaded_file($_FILES'userfile''tmp_name', $uploadfile)) {
echo "File is valid, and was successfully uploaded.\n";
} else {
echo "Possible file upload attack!\n";
}

echo 'Here is some more debugging info:';
print_r($_FILES);

print "";

$instance->complete();
}

  • I made a mistake in the earlier post. Apparently html and php tags do not appear. I just copied and text the code from my galaxia workflow code and template and posted it here write away without previewing first.



> Can anyone help me how to route a document in Galaxia Workflow? I can get some of the steps in workflow to work.
>
> Basically I want
> 1. one user to upload a document (say a word file) and pass it to another user.
> 2. another user will check the document and approve or disapprove it.
> 3. the first user will then know if his document was approved or disapproved.
>
>


> Can anyone help me how to route a document in Galaxia Workflow? I can get some of the steps in workflow to work.
>
> Basically I want
> 1. one user to upload a document (say a word file) and pass it to another user.
> 2. another user will check the document and approve or disapprove it.
> 3. the first user will then know if his document was approved or disapproved.
>
>
Does Galaxia have attached file?


> Can anyone help me how to route a document in Galaxia Workflow? I can get some of the steps in workflow to work.
>
> Basically I want
> 1. one user to upload a document (say a word file) and pass it to another user.
> 2. another user will check the document and approve or disapprove it.
> 3. the first user will then know if his document was approved or disapproved.
>
>

You can too use RanchBE. It is a GED that include GALAXIA. Its his job to route document from user to another with rules to apply between each activity.


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting