Description:
ezcWorkflowNodeVariableSet line 84:
$configuration[$variable->getAttribute( 'name' )] = ezcWorkflowDefinitionStorageXml::xmlToVariable( $variable->childNodes->item( 1 ) );
needs to be:
$configuration[$variable->getAttribute( 'name' )] = ezcWorkflowDefinitionStorageXml::xmlToVariable( $variable->childNodes->item( 0 ) );
Environment:
Operating System:
PHP Version 5.2.6, Linux X86_64
Database and version:
N/A
Browser (and version):
N/A
Steps to Reproduce:
test within executionTest:
<code>
$this->workflow = new ezcWorkflow ( 'VariableSetError' );
$varNode = new ezcWorkflowNodeVariableSet ( array ('x' => 1 ) );
$this->workflow->startNode->addOutNode ( $varNode );
$this->workflow->endNode->addInNode ( $varNode );
$out = $this->xmlStorage->saveToDocument ( $this->workflow, 0 );
$in = $this->xmlStorage->saveToDocument($this->xmlStorage->loadFromDocument ( $out ), 0);
$this->assertEquals($out, $in, 'XML Structures are not identical');
<code>
|
|