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/detectors/class.ilEventDetector.php';
5 require_once
'./Services/WorkflowEngine/classes/emitters/class.ilActivationEmitter.php';
6 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
18 $_v_EndEvent_1->setName(
'$_v_EndEvent_1');
21 $this->
addNode($_v_StartEvent_1);
22 $_v_StartEvent_1->setName(
'$_v_StartEvent_1');
26 $_v_IntermediateCatchEvent_2 =
new ilBasicNode($this);
27 $this->
addNode($_v_IntermediateCatchEvent_2);
28 $_v_IntermediateCatchEvent_2->setName(
'$_v_IntermediateCatchEvent_2');
30 $_v_IntermediateCatchEvent_2_detector =
new ilEventDetector($_v_IntermediateCatchEvent_2);
31 $_v_IntermediateCatchEvent_2_detector->setName(
'$_v_IntermediateCatchEvent_2_detector');
32 $_v_IntermediateCatchEvent_2_detector->setEvent(
"time_passed",
"time_passed");
33 $_v_IntermediateCatchEvent_2_detector->setEventSubject(
"none",
"0");
34 $_v_IntermediateCatchEvent_2_detector->setEventContext(
"none",
"0");
35 $_v_IntermediateCatchEvent_2_detector->setListeningTimeframe(1299841994, 0);
36 $_v_IntermediateCatchEvent_2->addDetector($_v_IntermediateCatchEvent_2_detector);
38 $_v_IntermediateCatchEvent_2_detector =
new ilSimpleDetector($_v_IntermediateCatchEvent_2);
39 $_v_IntermediateCatchEvent_2_detector->setName(
'$_v_IntermediateCatchEvent_2_detector');
40 $_v_IntermediateCatchEvent_2_detector->setSourceNode($_v_StartEvent_1);
41 $_v_IntermediateCatchEvent_2->addDetector($_v_IntermediateCatchEvent_2_detector);
43 $_v_StartEvent_1_emitter->setName(
'$_v_StartEvent_1_emitter');
44 $_v_StartEvent_1_emitter->setTargetDetector($_v_IntermediateCatchEvent_2_detector);
45 $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
48 $_v_EndEvent_1_detector->setName(
'$_v_EndEvent_1_detector');
49 $_v_EndEvent_1_detector->setSourceNode($_v_IntermediateCatchEvent_2);
50 $_v_EndEvent_1->addDetector($_v_EndEvent_1_detector);
51 $_v_IntermediateCatchEvent_2_emitter =
new ilActivationEmitter($_v_IntermediateCatchEvent_2);
52 $_v_IntermediateCatchEvent_2_emitter->setName(
'$_v_IntermediateCatchEvent_2_emitter');
53 $_v_IntermediateCatchEvent_2_emitter->setTargetDetector($_v_EndEvent_1_detector);
54 $_v_IntermediateCatchEvent_2->addEmitter($_v_IntermediateCatchEvent_2_emitter);
addNode(ilNode $node)
This method adds a node to the workflow.
setStartNode(ilNode $node)
Sets the start node of the workflow.