ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ComplexGateway_Blanko_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/nodes/class.ilPluginNode.php';
5 require_once './Services/WorkflowEngine/classes/emitters/class.ilActivationEmitter.php';
6 require_once './Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
7 
9  {
10 
11  public static $startEventRequired = false;
12 
13  public function __construct()
14  {
15 
16  $_v_StartEvent_1 = new ilBasicNode($this);
17  $this->addNode($_v_StartEvent_1);
18 
19  $this->setStartNode($_v_StartEvent_1);
20 
21  $_v_ComplexGateway_2 = new ilPluginNode($this);
22  // Details how this works need to be further carved out.
23  $this->addNode($_v_ComplexGateway_2);
24 
25  $_v_EndEvent_2 = new ilBasicNode($this);
26  $this->addNode($_v_EndEvent_2);
27 
28  $_v_ComplexGateway_2_detector = new ilSimpleDetector($_v_ComplexGateway_2);
29  $_v_ComplexGateway_2->addDetector($_v_ComplexGateway_2_detector);
30  $_v_StartEvent_1_emitter = new ilActivationEmitter($_v_StartEvent_1);
31  $_v_StartEvent_1_emitter->setTargetDetector($_v_ComplexGateway_2_detector);
32  $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
33 
34  $_v_EndEvent_2_detector = new ilSimpleDetector($_v_EndEvent_2);
35  $_v_EndEvent_2->addDetector($_v_EndEvent_2_detector);
36  $_v_ComplexGateway_2_emitter = new ilActivationEmitter($_v_ComplexGateway_2);
37  $_v_ComplexGateway_2_emitter->setTargetDetector($_v_EndEvent_2_detector);
38  $_v_ComplexGateway_2->addEmitter($_v_ComplexGateway_2_emitter);
39 
40  }
41  }
42 
43 ?>
PhpIncludeInspection
addNode(ilNode $node)
This method adds a node to the workflow.
PhpIncludeInspection
PhpIncludeInspection
setStartNode(ilNode $node)
Sets the start node of the workflow.
PhpIncludeInspection