ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Task_CallActivity_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/activities/class.ilStaticMethodCallActivity.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_Task_1 = new ilBasicNode($this);
17  $this->addNode($_v_Task_1);
18  $_v_Task_1->setName('$_v_Task_1');
19 
20  $_v_Task_1_callActivity = new ilStaticMethodCallActivity($_v_Task_1);
21  $_v_Task_1_callActivity->setName('$_v_Task_1_callActivity');
22  $_v_Task_1_callActivity->setIncludeFilename("Services/WorkflowEngine/test/parser/006_Task/class.test_006_Task.php");
23  $_v_Task_1_callActivity->setClassAndMethodName("test_006_Task::triggerMe");
24  $_v_Task_1_callActivity_params = array();
25  $_v_Task_1_callActivity->setParameters($_v_Task_1_callActivity_params);
26  $_v_Task_1_callActivity_outputs = array();
27  $_v_Task_1_callActivity->setOutputs($_v_Task_1_callActivity_outputs);
28  $_v_Task_1->addActivity($_v_Task_1_callActivity);
29 
30  $_v_EndEvent_4 = new ilBasicNode($this);
31  $this->addNode($_v_EndEvent_4);
32  $_v_EndEvent_4->setName('$_v_EndEvent_4');
33 
34  $_v_StartEvent_2 = new ilBasicNode($this);
35  $this->addNode($_v_StartEvent_2);
36  $_v_StartEvent_2->setName('$_v_StartEvent_2');
37 
38  $this->setStartNode($_v_StartEvent_2);
39 
40  $_v_EndEvent_4_detector = new ilSimpleDetector($_v_EndEvent_4);
41  $_v_EndEvent_4_detector->setName('$_v_EndEvent_4_detector');
42  $_v_EndEvent_4_detector->setSourceNode($_v_Task_1);
43  $_v_EndEvent_4->addDetector($_v_EndEvent_4_detector);
44  $_v_Task_1_emitter = new ilActivationEmitter($_v_Task_1);
45  $_v_Task_1_emitter->setName('$_v_Task_1_emitter');
46  $_v_Task_1_emitter->setTargetDetector($_v_EndEvent_4_detector);
47  $_v_Task_1->addEmitter($_v_Task_1_emitter);
48 
49  $_v_Task_1_detector = new ilSimpleDetector($_v_Task_1);
50  $_v_Task_1_detector->setName('$_v_Task_1_detector');
51  $_v_Task_1_detector->setSourceNode($_v_StartEvent_2);
52  $_v_Task_1->addDetector($_v_Task_1_detector);
53  $_v_StartEvent_2_emitter = new ilActivationEmitter($_v_StartEvent_2);
54  $_v_StartEvent_2_emitter->setName('$_v_StartEvent_2_emitter');
55  $_v_StartEvent_2_emitter->setTargetDetector($_v_Task_1_detector);
56  $_v_StartEvent_2->addEmitter($_v_StartEvent_2_emitter);
57 
58  }
59  }
60 
61 ?>
PhpIncludeInspection
addNode(ilNode $node)
This method adds a node to the workflow.
PhpIncludeInspection
Create styles array
The data for the language used.
setStartNode(ilNode $node)
Sets the start node of the workflow.
PhpIncludeInspection