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';
18 $_v_Task_1->setName(
'$_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);
32 $_v_EndEvent_4->setName(
'$_v_EndEvent_4');
35 $this->
addNode($_v_StartEvent_2);
36 $_v_StartEvent_2->setName(
'$_v_StartEvent_2');
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);
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);
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);
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);
static $startEventRequired
addNode(ilNode $node)
This method adds a node to the workflow.
Create styles array
The data for the language used.
setStartNode(ilNode $node)
Sets the start node of the workflow.