ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ParallelGateway_Simple_goldsample.php
Go to the documentation of this file.
1 <?php
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';
6 
8  {
9 
10  public static $startEventRequired = false;
11 
12  public function __construct()
13  {
14 
15  $_v_EndEvent_2 = new ilBasicNode($this);
16  $this->addNode($_v_EndEvent_2);
17  $_v_EndEvent_2->setName('$_v_EndEvent_2');
18 
19  $_v_EndEvent_3 = new ilBasicNode($this);
20  $this->addNode($_v_EndEvent_3);
21  $_v_EndEvent_3->setName('$_v_EndEvent_3');
22 
23  $_v_ParallelGateway_1 = new ilBasicNode($this);
24  $_v_ParallelGateway_1->setName('$_v_ParallelGateway_1');
25  $this->addNode($_v_ParallelGateway_1);
26 
27  $_v_EndEvent_1 = new ilBasicNode($this);
28  $this->addNode($_v_EndEvent_1);
29  $_v_EndEvent_1->setName('$_v_EndEvent_1');
30 
31  $_v_StartEvent_1 = new ilBasicNode($this);
32  $this->addNode($_v_StartEvent_1);
33  $_v_StartEvent_1->setName('$_v_StartEvent_1');
34 
35  $this->setStartNode($_v_StartEvent_1);
36 
37  $_v_EndEvent_3_detector = new ilSimpleDetector($_v_EndEvent_3);
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);
41  $_v_ParallelGateway_1_emitter = new ilActivationEmitter($_v_ParallelGateway_1);
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);
45 
46  $_v_EndEvent_1_detector = new ilSimpleDetector($_v_EndEvent_1);
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);
50  $_v_ParallelGateway_1_emitter = new ilActivationEmitter($_v_ParallelGateway_1);
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);
54 
55  $_v_EndEvent_2_detector = new ilSimpleDetector($_v_EndEvent_2);
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);
59  $_v_ParallelGateway_1_emitter = new ilActivationEmitter($_v_ParallelGateway_1);
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);
63 
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);
68  $_v_StartEvent_1_emitter = new ilActivationEmitter($_v_StartEvent_1);
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);
72 
73  }
74  }
75 
76 ?>
PhpIncludeInspection
addNode(ilNode $node)
This method adds a node to the workflow.
PhpIncludeInspection
setStartNode(ilNode $node)
Sets the start node of the workflow.
PhpIncludeInspection