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/detectors/class.ilDataDetector.php';
5 require_once
'./Services/WorkflowEngine/classes/emitters/class.ilDataEmitter.php';
6 require_once
'./Services/WorkflowEngine/classes/emitters/class.ilActivationEmitter.php';
7 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
17 $this->
defineInstanceVar(
"DataInput_1",
"ioval1",
false,
"",
"mixed",
"undefined" );
25 $_v_Task_1->setName(
'$_v_Task_1');
28 $_v_Task_1_inputDataDetector->setVarName(
"DataInput_1");
29 $_v_Task_1_inputDataDetector->setName($_v_Task_1_inputDataDetector);
30 $_v_Task_1->addDetector($_v_Task_1_inputDataDetector);
33 $_v_Task_1_outputDataEmitter->setVarName(
"DataObjectReference_1");
34 $_v_Task_1_outputDataEmitter->setName($_v_Task_1_outputDataEmitter);
35 $_v_Task_1->addEmitter($_v_Task_1_outputDataEmitter);
37 $this->
defineInstanceVar(
"DataObject_1",
"dataObject",
false,
"",
"mixed",
"undefined" );
39 $this->
defineInstanceVar(
"DataObjectReference_1",
"ioval1",
true,
"DataObject_1" );
43 $_v_Task_2->setName(
'$_v_Task_2');
46 $_v_Task_2_inputDataDetector->setVarName(
"DataObjectReference_1");
47 $_v_Task_2_inputDataDetector->setName($_v_Task_2_inputDataDetector);
48 $_v_Task_2->addDetector($_v_Task_2_inputDataDetector);
51 $_v_Task_2_outputDataEmitter->setVarName(
"DataOutput_1");
52 $_v_Task_2_outputDataEmitter->setName($_v_Task_2_outputDataEmitter);
53 $_v_Task_2->addEmitter($_v_Task_2_outputDataEmitter);
57 $_v_EndEvent_1->setName(
'$_v_EndEvent_1');
60 $this->
addNode($_v_StartEvent_1);
61 $_v_StartEvent_1->setName(
'$_v_StartEvent_1');
66 $_v_Task_2_detector->setName(
'$_v_Task_2_detector');
67 $_v_Task_2_detector->setSourceNode($_v_Task_1);
68 $_v_Task_2->addDetector($_v_Task_2_detector);
70 $_v_Task_1_emitter->setName(
'$_v_Task_1_emitter');
71 $_v_Task_1_emitter->setTargetDetector($_v_Task_2_detector);
72 $_v_Task_1->addEmitter($_v_Task_1_emitter);
75 $_v_EndEvent_1_detector->setName(
'$_v_EndEvent_1_detector');
76 $_v_EndEvent_1_detector->setSourceNode($_v_Task_2);
77 $_v_EndEvent_1->addDetector($_v_EndEvent_1_detector);
79 $_v_Task_2_emitter->setName(
'$_v_Task_2_emitter');
80 $_v_Task_2_emitter->setTargetDetector($_v_EndEvent_1_detector);
81 $_v_Task_2->addEmitter($_v_Task_2_emitter);
84 $_v_Task_1_detector->setName(
'$_v_Task_1_detector');
85 $_v_Task_1_detector->setSourceNode($_v_StartEvent_1);
86 $_v_Task_1->addDetector($_v_Task_1_detector);
88 $_v_StartEvent_1_emitter->setName(
'$_v_StartEvent_1_emitter');
89 $_v_StartEvent_1_emitter->setTargetDetector($_v_Task_1_detector);
90 $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
defineInstanceVar($id, $name, $reference=false, $reference_target='', $type='mixed', $role='undefined')
addNode(ilNode $node)
This method adds a node to the workflow.
Create styles array
The data for the language used.
registerInputVar($name, $definition)
setStartNode(ilNode $node)
Sets the start node of the workflow.