Loading...
 
Skip to main content

Galaxia Workflow Engine


Re: Galaxy: activity-code not executed if not interactive - more details on this

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);