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.ilActivationEmitter.php';
5 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
17 $_v_EndEvent_2->setName(
'$_v_EndEvent_2');
21 $_v_EndEvent_3->setName(
'$_v_EndEvent_3');
24 $_v_ParallelGateway_1->setName(
'$_v_ParallelGateway_1');
25 $this->
addNode($_v_ParallelGateway_1);
29 $_v_EndEvent_1->setName(
'$_v_EndEvent_1');
32 $this->
addNode($_v_StartEvent_1);
33 $_v_StartEvent_1->setName(
'$_v_StartEvent_1');
38 $_v_EndEvent_3_detector->setName(
'$_v_EndEvent_3_detector');
39 $_v_EndEvent_3_detector->setSourceNode($_v_ParallelGateway_1);
40 $_v_EndEvent_3->addDetector($_v_EndEvent_3_detector);
42 $_v_ParallelGateway_1_emitter->setName(
'$_v_ParallelGateway_1_emitter');
43 $_v_ParallelGateway_1_emitter->setTargetDetector($_v_EndEvent_3_detector);
44 $_v_ParallelGateway_1->addEmitter($_v_ParallelGateway_1_emitter);
47 $_v_EndEvent_1_detector->setName(
'$_v_EndEvent_1_detector');
48 $_v_EndEvent_1_detector->setSourceNode($_v_ParallelGateway_1);
49 $_v_EndEvent_1->addDetector($_v_EndEvent_1_detector);
51 $_v_ParallelGateway_1_emitter->setName(
'$_v_ParallelGateway_1_emitter');
52 $_v_ParallelGateway_1_emitter->setTargetDetector($_v_EndEvent_1_detector);
53 $_v_ParallelGateway_1->addEmitter($_v_ParallelGateway_1_emitter);
56 $_v_EndEvent_2_detector->setName(
'$_v_EndEvent_2_detector');
57 $_v_EndEvent_2_detector->setSourceNode($_v_ParallelGateway_1);
58 $_v_EndEvent_2->addDetector($_v_EndEvent_2_detector);
60 $_v_ParallelGateway_1_emitter->setName(
'$_v_ParallelGateway_1_emitter');
61 $_v_ParallelGateway_1_emitter->setTargetDetector($_v_EndEvent_2_detector);
62 $_v_ParallelGateway_1->addEmitter($_v_ParallelGateway_1_emitter);
64 $_v_ParallelGateway_1_detector =
new ilSimpleDetector($_v_ParallelGateway_1);
65 $_v_ParallelGateway_1_detector->setName(
'$_v_ParallelGateway_1_detector');
66 $_v_ParallelGateway_1_detector->setSourceNode($_v_StartEvent_1);
67 $_v_ParallelGateway_1->addDetector($_v_ParallelGateway_1_detector);
69 $_v_StartEvent_1_emitter->setName(
'$_v_StartEvent_1_emitter');
70 $_v_StartEvent_1_emitter->setTargetDetector($_v_ParallelGateway_1_detector);
71 $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
addNode(ilNode $node)
This method adds a node to the workflow.
setStartNode(ilNode $node)
Sets the start node of the workflow.
static $startEventRequired