Loading...
 
Galaxia Workflow Engine

Galaxia Workflow Engine


unserialize_process [FIX]

hello,
I noticed that two subsequent calls to $processManager->unserialize_process($data);
are not working correctly because the parsed tree is not reset.
the fix is the following:
in lib/Galaxia/src/ProcessManager/ProcessManager.php
just add
$this->tree=Array();
before starting parse:

'parent' => 0,
'data'=>''
);

+ $this->tree=Array(); //mabi 20050726

$this->tree0=$aux;
$this->current=0;
if (!xml_parse($this->parser, $xml, true)) {

bye

There are no comments at this time.