ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
DataInput_RepositoryObjectSelector_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/detectors/class.ilDataDetector.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  $this->defineInstanceVar("DataInput_1", "dataInput", false, "", "integer", "objId" );
17  $this->registerInputVar("DataInput_1", array("type" => "text","requirement" => "required","caption" => "ID des Vorgangs-Gegenstands","description" => "Geben Sie bitte die Ref-ID des Vorgangs-Gegenstands an."));
18 
19  $this->defineInstanceVar("DataInput_2", "dataInput", false, "", "integer", "crsRefId" );
20  $this->registerInputVar("DataInput_2", array("type" => "robjselect","allowedtype" => "crs","requirement" => "required","caption" => "Kurs","description" => "Bitte wählen Sie einen Kurs für den Prozess aus."));
21 
22  $_v_Task_1 = new ilBasicNode($this);
23  $this->addNode($_v_Task_1);
24  $_v_Task_1->setName('$_v_Task_1');
25 
26  $_v_Task_1_inputDataDetector = new ilDataDetector($_v_Task_1);
27  $_v_Task_1_inputDataDetector->setVarName("DataInput_1");
28  $_v_Task_1_inputDataDetector->setName($_v_Task_1_inputDataDetector);
29  $_v_Task_1->addDetector($_v_Task_1_inputDataDetector);
30 
31  $_v_Task_1_inputDataDetector = new ilDataDetector($_v_Task_1);
32  $_v_Task_1_inputDataDetector->setVarName("DataInput_2");
33  $_v_Task_1_inputDataDetector->setName($_v_Task_1_inputDataDetector);
34  $_v_Task_1->addDetector($_v_Task_1_inputDataDetector);
35 
36  $_v_EndEvent_1 = new ilBasicNode($this);
37  $this->addNode($_v_EndEvent_1);
38  $_v_EndEvent_1->setName('$_v_EndEvent_1');
39 
40  $_v_StartEvent_1 = new ilBasicNode($this);
41  $this->addNode($_v_StartEvent_1);
42  $_v_StartEvent_1->setName('$_v_StartEvent_1');
43 
44  $this->setStartNode($_v_StartEvent_1);
45 
46  $_v_EndEvent_1_detector = new ilSimpleDetector($_v_EndEvent_1);
47  $_v_EndEvent_1_detector->setName('$_v_EndEvent_1_detector');
48  $_v_EndEvent_1_detector->setSourceNode($_v_Task_1);
49  $_v_EndEvent_1->addDetector($_v_EndEvent_1_detector);
50  $_v_Task_1_emitter = new ilActivationEmitter($_v_Task_1);
51  $_v_Task_1_emitter->setName('$_v_Task_1_emitter');
52  $_v_Task_1_emitter->setTargetDetector($_v_EndEvent_1_detector);
53  $_v_Task_1->addEmitter($_v_Task_1_emitter);
54 
55  $_v_Task_1_detector = new ilSimpleDetector($_v_Task_1);
56  $_v_Task_1_detector->setName('$_v_Task_1_detector');
57  $_v_Task_1_detector->setSourceNode($_v_StartEvent_1);
58  $_v_Task_1->addDetector($_v_Task_1_detector);
59  $_v_StartEvent_1_emitter = new ilActivationEmitter($_v_StartEvent_1);
60  $_v_StartEvent_1_emitter->setName('$_v_StartEvent_1_emitter');
61  $_v_StartEvent_1_emitter->setTargetDetector($_v_Task_1_detector);
62  $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
63 
64  }
65  }
66 
67 ?>
defineInstanceVar($id, $name, $reference=false, $reference_target='', $type='mixed', $role='undefined')
PhpIncludeInspection
PhpIncludeInspection
addNode(ilNode $node)
This method adds a node to the workflow.
PhpIncludeInspection
Create styles array
The data for the language used.
registerInputVar($name, $definition)
setStartNode(ilNode $node)
Sets the start node of the workflow.
PhpIncludeInspection