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';
17 $this->
addNode($_v_StartEvent_1);
18 $_v_StartEvent_1->setName(
'$_v_StartEvent_1');
23 $this->
addNode($_v_ScriptTask_1);
24 $_v_ScriptTask_1->setName(
'$_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);
33 $_v_EndEvent_1->setName(
'$_v_EndEvent_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);
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);
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);
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);
58 require_once
'./Services/WorkflowEngine/test/parser/006_Task/class.test_006_Task.php';
_v_ScriptTask_1_script($context)
addNode(ilNode $node)
This method adds a node to the workflow.
static triggerMe($context="", $params="")
static $startEventRequired
setStartNode(ilNode $node)
Sets the start node of the workflow.