Loading...
 
Galaxia Workflow Engine

Galaxia Workflow Engine


joint activity not working

hi :-)
i'm trying to use a joit activity.
the process is here (http://digilander.libero.it/Gremo/trying_split.xml);

1)the instance start from start activity
2)then you have a split activity
3)after splitting, your instance is both in the activity "one" and "two"
4)if you execute activity "one" or "two", next acivity "wait" (join) is soon available (but this is wrong...)

what i can do?
please help me and sorry for my english

Brazil

Found the bug.
First, download and apply the patches in diffs.zip available here.
Then edit /lib/Galaxia/src/API/Instance.php and replace lines 572-580

Image
Copy to clipboard
// Test if the join activity has preceding activities that are not completed yet if ($type == 'join') { $querycant = "select count(*) from `" . GALAXIA_TABLE_PREFIX . "transitions` tr " . "INNER JOIN " . GALAXIA_TABLE_PREFIX . "instance_activities gia ON tr.actFromId=gia.activityId " . "where tr.pid=? and tr.actToId=? and gia.instanceId=? and gia.status = ?"; // if there are still preceding activities not completed, STOP if ($nb = $this->getone($querycant, array($this->pId, $activityId, $iid, 'running'))) { //echo 'Pending preceding activities = ' . $nb; return; } }


with

Image
Copy to clipboard
// Test if the join activity has preceding activities that are not completed yet if ($type == 'join') { $querycant = "SELECT (SELECT COUNT(*) FROM `" . GALAXIA_TABLE_PREFIX . "transitions` WHERE actToId = ?) - (SELECT COUNT(*) FROM `" . GALAXIA_TABLE_PREFIX . "transitions` tr " . "INNER JOIN " . GALAXIA_TABLE_PREFIX . "instance_activities gia ON tr.actFromId=gia.activityId " . "where tr.pid=? and tr.actToId=? and gia.instanceId=? and gia.status = ?) AS Pending"; // if there are still preceding activities not completed, STOP if ($nb = $this->getone($querycant, array($activityId, $this->pId, $activityId, $iid, 'completed'))) { //echo 'Pending preceding activities = ' . $nb; return; } }


Regards,

Georger

Canada

> Found the bug.
> First, download and apply the patches in diffs.zip available here.
> Then edit /lib/Galaxia/src/API/Instance.php and replace lines 572-580
>

Hi Georger!

Can you commit your patch to BRANCH-1-9?

Thanks!!!!

M smile

Brazil

Hi Marc,
just committed all them 12 patches to BRANCH-1-9.
I'm a Windows guy, I had LOTS of trouble getting CVS and SSH to work fine on my box - but it's finally done biggrin Regards,

Georger

> Hi Georger!
>
> Can you commit your patch to BRANCH-1-9?
>
> Thanks!!!!
>
> M smile


> hi :-)
> i'm trying to use a joit activity.
> the process is here (http://digilander.libero.it/Gremo/trying_split.xml);
>
> 1)the instance start from start activity
> 2)then you have a split activity
> 3)after splitting, your instance is both in the activity "one" and "two"
> 4)if you execute activity "one" or "two", next acivity "wait" (join) is soon available (but this is wrong...)
>
> what i can do?
> please help me and sorry for my english


I sent a patch at sourceforge several months ago. Here is the link to this patch for the correction :

http://sourceforge.net/tracker/index.php?func=detail&aid=1194725&group_id=64258&atid=506848

Bye


thank you!
i did not yet try the patch (i'm not at home now...) but i'm sure it will works :-)

@Georger: i'm a little surprised you understand my bad english! galaxia rocks!