Loading...
 
Galaxia Workflow Engine

Galaxia Workflow Engine


Austria

Problem:

E.g. if you want to process something automatically like which branch of the process tree you will follow the process will break.

Buglocation:

There seems to be a bug in the function galaxia_execute_activity() which is called at the end of the lib/Galaxia/src/API/Instance.php - sentTo()
function.

Possible workaround:

As a woraround I replaced the function call by code similar to that which is used in the tiki-g-run_activity.php:

// The original function call - inside this function is the bug
// galaxia_execute_activity($activityId, $iid , 1);
// This code is replaced by some code doing the same thing:

$activityname = $this->getOne("select `normalized_name` from `".GALAXIA_TABLE_PREFIX."activities` where `activityId`=?",arrayint)$activityId;
$aProcessId = $this->getOne("select `pId` from `".GALAXIA_TABLE_PREFIX."activities` where `activityId`=?",arrayint)$activityId;
$processname = $this->getOne("select `normalized_name` from `".GALAXIA_TABLE_PREFIX."processes` where `pId`=?",arrayint)$aProcessId;
$instance = $this;
$source = 'lib/Galaxia/processes/' . $processname . '/compiled/' . $activityname . '.php';
include_once ($source);

France

Thank you very much for that solution. It works fine but I have to make some changes.

Can you tell me if I'm wrong ?

All the ends of the 3 first lines should finish by

array(int)$variable));

instead of arrayint)$variable?;

Thanks,

Yann


Austria

BUGFIX:

in lib/Galaxia/config.php go to the function galaxia_execute_activity( ... ) and there you will find a line

$partscount($parts)-1 = "tiki-g-run_activity.php?activityId=$activityId& amp;iid=$iid& amp;auto=$auto";

now if you replace "& amp;" with "&" that will solve the problem.

biggrin now how bringing this into the source?


Canada

Hi, I don't use Galaxia, could you try to fix that replacing by
$partscount($parts)-1 = "tiki-g-run_activity.php?activityId={$activityId}&iid={$iid}& amp;auto=$auto";
instead? It would be cleaner if it works. Note that I used ~np~code~/np~ to show above line non-parsed.


France

Thank you very much for that solution. It works fine but I have to make some changes.

Can you tell me if I'm wrong ?

All the ends of the 3 first lines should finish by

array(int)$variable));

instead of arrayint)$variable?;

Thanks,

Yann


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