ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Task_ScriptTask_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.ilScriptActivity.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  $_v_StartEvent_1->setName('$_v_StartEvent_1');
19 
20  $this->setStartNode($_v_StartEvent_1);
21 
22  $_v_ScriptTask_1 = new ilBasicNode($this);
23  $this->addNode($_v_ScriptTask_1);
24  $_v_ScriptTask_1->setName('$_v_ScriptTask_1');
25 
26  $_v_ScriptTask_1_scriptActivity = new ilScriptActivity($_v_ScriptTask_1);
27  $_v_ScriptTask_1_scriptActivity->setName('$_v_ScriptTask_1');
28  $_v_ScriptTask_1_scriptActivity->setMethod('_v_ScriptTask_1_script');
29  $_v_ScriptTask_1->addActivity($_v_ScriptTask_1_scriptActivity);
30 
31  $_v_EndEvent_1 = new ilBasicNode($this);
32  $this->addNode($_v_EndEvent_1);
33  $_v_EndEvent_1->setName('$_v_EndEvent_1');
34 
35  $_v_ScriptTask_1_detector = new ilSimpleDetector($_v_ScriptTask_1);
36  $_v_ScriptTask_1_detector->setName('$_v_ScriptTask_1_detector');
37  $_v_ScriptTask_1_detector->setSourceNode($_v_StartEvent_1);
38  $_v_ScriptTask_1->addDetector($_v_ScriptTask_1_detector);
39  $_v_StartEvent_1_emitter = new ilActivationEmitter($_v_StartEvent_1);
40  $_v_StartEvent_1_emitter->setName('$_v_StartEvent_1_emitter');
41  $_v_StartEvent_1_emitter->setTargetDetector($_v_ScriptTask_1_detector);
42  $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
43 
44  $_v_EndEvent_1_detector = new ilSimpleDetector($_v_EndEvent_1);
45  $_v_EndEvent_1_detector->setName('$_v_EndEvent_1_detector');
46  $_v_EndEvent_1_detector->setSourceNode($_v_ScriptTask_1);
47  $_v_EndEvent_1->addDetector($_v_EndEvent_1_detector);
48  $_v_ScriptTask_1_emitter = new ilActivationEmitter($_v_ScriptTask_1);
49  $_v_ScriptTask_1_emitter->setName('$_v_ScriptTask_1_emitter');
50  $_v_ScriptTask_1_emitter->setTargetDetector($_v_EndEvent_1_detector);
51  $_v_ScriptTask_1->addEmitter($_v_ScriptTask_1_emitter);
52 
53  }
54 
55  public function _v_ScriptTask_1_script($context)
56  {
57 
58  require_once './Services/WorkflowEngine/test/parser/006_Task/class.test_006_Task.php';
60 
61  }
62 
63  }
64 
65 ?>
PhpIncludeInspection
PhpIncludeInspection
addNode(ilNode $node)
This method adds a node to the workflow.
PhpIncludeInspection
static triggerMe($context="", $params="")
setStartNode(ilNode $node)
Sets the start node of the workflow.
PhpIncludeInspection