Loading...
 
Galaxia Workflow Engine

Galaxia Workflow Engine


Galaxia workflow problem

Hi all,

I just installed TikiWiki 1.8 and tried to get the workflow thingie working (Galaxia). Now I followed the complete example in the documentation at http://tikiwiki.org/Galaxia_manual.pdf and the workflow is *almost* working, except for the step where the db is updated:

all the code I put in the activities "approved" and "rejected" (mentioned in 6.5 and 6.6 in the PDF doc) is completely ignored. I even tested it by putting faulty php code in there, but nothing happens: the workflow immediately skips to the next step (Ack result).
It seems like the code for these two steps are completely ignored: both define the variable "result" ($instance->set('result') ), but the info is not displayed in the Ack result" step, but if I define this in the previous step (the "approve loan"-switch step), then it's value is used.

Does anybody have this workflow example working in 1.8?

tx!

Franky

Hi all,

I just found the error (bug) in lib/Galaxia/config.php:

the function galaxia_execute_activity() defines
$partscount($parts)-1 = "tiki-g-run_activity.php?activityId=$activityId& amp;iid=$iid& amp;auto=$auto";
(I left a space between "&" and "amp" because otherwise the forum translates it to "&")

while this should be:
$partscount($parts)-1 = "tiki-g-run_activity.php?activityId=$activityId&iid=$iid&auto=$auto";
(really just the "&")

Changing this line makes the whole flow work without a problem!

Franky

Germany

the complete line should read

$parts[count($parts)-1] = "tiki-g-run_activity.php?activityId=$activityId&iid=$iid&auto=$auto";

i think. Note the missing [] in Franky's post (just noticed it while searching for partscount in config.php).

This may fix a problem but it will break xhtml validation, won't it?

--
marino


Germany

the complete line should read

$parts[count($parts)-1] = "tiki-g-run_activity.php?activityId=$activityId&iid=$iid&auto=$auto";

i think. Note the missing [] in Franky's post (just noticed it while searching for partscount in config.php).

This may fix a problem but it will break xhtml validation, won't it?

--
marino


Canada

I don't use Galaxia but would agree with marino.
It's in HEAD/BRANCH-1-8 since 20030929.


Hmmm ... in my text post the square brackets ([]) are there, they are just invisible by the rendering in the forum (just like my & problem caused me to post again).
Anyway, my solution still stands (and is the same as yours :-)


I just checked the config.inc.php file in CVS, and the the line with "tiki-g-run_activity.php" in it, still uses the "& amp;" notation (without the extra space).
Does this mean that Galaxia workflows in tikiwiki aren't used much? As I would assume many people would have bumped into this problem ...

Franky


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