2 require_once
'./Services/WorkflowEngine/classes/workflows/class.ilBaseWorkflow.php';
3 require_once
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php';
4 require_once
'./Services/WorkflowEngine/classes/emitters/class.ilDataEmitter.php';
5 require_once
'./Services/WorkflowEngine/classes/emitters/class.ilActivationEmitter.php';
6 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
17 $this->
addNode($_v_StartEvent_1);
18 $_v_StartEvent_1->setName(
'$_v_StartEvent_1');
24 $_v_Task_1->setName(
'$_v_Task_1');
27 $_v_Task_1_outputDataEmitter->setVarName(
"DataObjectReference_1");
28 $_v_Task_1_outputDataEmitter->setName($_v_Task_1_outputDataEmitter);
29 $_v_Task_1->addEmitter($_v_Task_1_outputDataEmitter);
33 $_v_EndEvent_1->setName(
'$_v_EndEvent_1');
35 $this->
defineInstanceVar(
"DataObject_1",
"dataObject",
false,
"",
"mixed",
"undefined" );
37 $this->
defineInstanceVar(
"DataObjectReference_1",
"dataObjectReference",
true,
"DataObject_1" );
40 $_v_Task_1_detector->setName(
'$_v_Task_1_detector');
41 $_v_Task_1_detector->setSourceNode($_v_StartEvent_1);
42 $_v_Task_1->addDetector($_v_Task_1_detector);
44 $_v_StartEvent_1_emitter->setName(
'$_v_StartEvent_1_emitter');
45 $_v_StartEvent_1_emitter->setTargetDetector($_v_Task_1_detector);
46 $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
49 $_v_EndEvent_1_detector->setName(
'$_v_EndEvent_1_detector');
50 $_v_EndEvent_1_detector->setSourceNode($_v_Task_1);
51 $_v_EndEvent_1->addDetector($_v_EndEvent_1_detector);
53 $_v_Task_1_emitter->setName(
'$_v_Task_1_emitter');
54 $_v_Task_1_emitter->setTargetDetector($_v_EndEvent_1_detector);
55 $_v_Task_1->addEmitter($_v_Task_1_emitter);
addNode(ilNode $node)
This method adds a node to the workflow.
defineInstanceVar( $id, $name, $reference=false, $reference_target='', $type='mixed', $role='undefined')
setStartNode(ilNode $node)
Sets the start node of the workflow.
static $startEventRequired