Hi,
I have simple workflow
$input = new ezcWorkflowNodeInput(
array( 'children' => new ezcWorkflowConditionAnd(
array(
new ezcWorkflowConditionIsGreaterThan ( 0 ),
new ezcWorkflowConditionIsLessThan( 31 )
)
)));
$workflow->startNode->addOutNode( $input );
$branch = new ezcWorkflowNodeExclusiveChoice;
$branch->addInNode( $input );
$node10p = new ezcWorkflowNodeAction(array( "class" => "Children",
"arguments" => array("1" => "10p")));
$node20p = new ezcWorkflowNodeAction(array( "class" => "Children",
"arguments" => array("2" => "20p")));
$node30p = new ezcWorkflowNodeAction(array( "class" => "Children",
"arguments" => array("3" => "30p")));
$condition1 = new ezcWorkflowConditionVariable('children', new
ezcWorkflowConditionIsEqual(11) );
$branch->addConditionalOutNode($condition1, $node10p );
...
I can start my workflow and I'll get workwlow ID
Then I try to resume it:
$execution = new ezcWorkflowDatabaseExecution( $db, ID );
$execution->resume(array('children' => 31));
Then I get:
Fatal error: Uncaught exception 'ezcWorkflowInvalidInputException' with
message 'children == ' in
/usr/share/pear/ezc/Workflow/interfaces/execution.php:359 Stack trace:
#0 /var/www/arendus/margusja/ecwf/demowf_continue.php(41):
ezcWorkflowExecution->resume(Array) #1 {main} thrown in
/usr/share/pear/ezc/Workflow/interfaces/execution.php on line 359
As much I understand in class ezcWorkflowConditionIsEqual extends
ezcWorkflowConditionComparison method evaluate doesn't give a proper
response.
I checked:
public function evaluate( $value )
{
return $value == $this->value;
}
There is no value in $this->value
Any hint?
--
Tervitades, Margusja
+3725148780
http://margusja.pri.ee
skype: margusja
msn: [email protected]
--
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components