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';
16 $this->
addNode($_v_StartEvent_1);
17 $_v_StartEvent_1->setName(
'$_v_StartEvent_1');
23 $_v_EndEvent_2->setName(
'$_v_EndEvent_2');
26 $_v_ParallelGateway_1->setName(
'$_v_ParallelGateway_1');
27 $this->
addNode($_v_ParallelGateway_1);
31 $_v_EndEvent_4->setName(
'$_v_EndEvent_4');
35 $_v_EndEvent_5->setName(
'$_v_EndEvent_5');
37 $_v_ParallelGateway_1_detector =
new ilSimpleDetector($_v_ParallelGateway_1);
38 $_v_ParallelGateway_1_detector->setName(
'$_v_ParallelGateway_1_detector');
39 $_v_ParallelGateway_1_detector->setSourceNode($_v_StartEvent_1);
40 $_v_ParallelGateway_1->addDetector($_v_ParallelGateway_1_detector);
42 $_v_StartEvent_1_emitter->setName(
'$_v_StartEvent_1_emitter');
43 $_v_StartEvent_1_emitter->setTargetDetector($_v_ParallelGateway_1_detector);
44 $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
47 $_v_EndEvent_5_detector->setName(
'$_v_EndEvent_5_detector');
48 $_v_EndEvent_5_detector->setSourceNode($_v_ParallelGateway_1);
49 $_v_EndEvent_5->addDetector($_v_EndEvent_5_detector);
51 $_v_ParallelGateway_1_emitter->setName(
'$_v_ParallelGateway_1_emitter');
52 $_v_ParallelGateway_1_emitter->setTargetDetector($_v_EndEvent_5_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);
65 $_v_EndEvent_4_detector->setName(
'$_v_EndEvent_4_detector');
66 $_v_EndEvent_4_detector->setSourceNode($_v_ParallelGateway_1);
67 $_v_EndEvent_4->addDetector($_v_EndEvent_4_detector);
69 $_v_ParallelGateway_1_emitter->setName(
'$_v_ParallelGateway_1_emitter');
70 $_v_ParallelGateway_1_emitter->setTargetDetector($_v_EndEvent_4_detector);
71 $_v_ParallelGateway_1->addEmitter($_v_ParallelGateway_1_emitter);
addNode(ilNode $node)
This method adds a node to the workflow.
static $startEventRequired
setStartNode(ilNode $node)
Sets the start node of the workflow.