ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
IntermediateCatchEvent_Message_Simple Class Reference
+ Inheritance diagram for IntermediateCatchEvent_Message_Simple:
+ Collaboration diagram for IntermediateCatchEvent_Message_Simple:

Public Member Functions

 __construct ()
 
- Public Member Functions inherited from ilBaseWorkflow
 __construct ()
 Default constructor. More...
 
 startWorkflow ()
 Starts the workflow, activating the start_node. More...
 
 stopWorkflow ()
 Stops the workflow, deactivating all nodes. More...
 
 onStartWorkflow ()
 Method called on start of the workflow, prior to activating the first node. More...
 
 onStopWorkflow ()
 Method called on stopping of the workflow, after deactivating all nodes. More...
 
 onWorkflowFinished ()
 Method called after workflow is finished, after detecting no more nodes are active. More...
 
 isActive ()
 Returns the activation status of the workflow. More...
 
 handleEvent ($params)
 Handles an event. More...
 
 registerDetector (ilDetector $detector)
 
 getWorkflowData ()
 Returns the workflow type and content currently set to the workflow. More...
 
 getWorkflowSubject ()
 Get the workflow subject set to the workflow. More...
 
 getWorkflowContext ()
 Get the event context set to the workflow. More...
 
 setDbId ($id)
 Sets the database id of the detector. More...
 
 getDbId ()
 Returns the database id of the detector if set. More...
 
 hasDbId ()
 Returns, if the detector has a database id. More...
 
 setStartNode (ilNode $node)
 Sets the start node of the workflow. More...
 
 addNode (ilNode $node)
 This method adds a node to the workflow. More...
 
 setWorkflowClass ($class)
 Sets the classname of the workflow definition. More...
 
 getWorkflowClass ()
 Returns the currently set workflow class definition name. More...
 
 setWorkflowLocation ($path)
 Sets the location of the workflow definition file as relative path. More...
 
 getWorkflowLocation ()
 Returns the currently set path to the workflow definition. More...
 
 getNodes ()
 Returns all nodes attached to the workflow. More...
 
 isDataPersistenceRequired ()
 
 resetDataPersistenceRequirement ()
 
 defineInstanceVar ( $id, $name, $reference=false, $reference_target='', $type='mixed', $role='undefined')
 
 hasInstanceVarByName ($name)
 Returns if an instance variable of the given name is set. More...
 
 hasInstanceVarById ($id)
 Returns if an instance variable of the given id is set. More...
 
 getInstanceVarByName ($name)
 Returns the given instance variables content. More...
 
 getInstanceVarById ($id)
 Returns the given instance variables content. More...
 
 setInstanceVarByName ($name, $value)
 Sets the given instance var with the given content. More...
 
 setInstanceVarById ($id, $value)
 Sets the given instance var with the given content. More...
 
 setInstanceVarByRole ($role, $value)
 Sets the given instance var with the given content. More...
 
 getInstanceVars ()
 Returns an array with all set instance variables. More...
 
 flushInstanceVars ()
 Empties the instance variables. More...
 
 defineInputVar ($name)
 
 defineOutputVar ($name)
 
 readInputVar ($name)
 
 hasInputVar ($name)
 
 hasOutputVar ($name)
 
 writeInputVar ($name, $value)
 
 readOutputVar ($name)
 
 writeOutputVar ($name, $value)
 
 getInputVars ()
 
 getOutputVars ()
 
 registerInputVar ($name, $definition)
 
 registerOutputVar ($name)
 
- Public Member Functions inherited from ilWorkflow
 defineInstanceVar ($id, $name)
 

Static Public Attributes

static $startEventRequired = false
 

Additional Inherited Members

- Static Public Member Functions inherited from ilBaseWorkflow
static autoload ($class_name)
 Autoloader function to dynamically include files for instantiation of objects during deserialization. More...
 
- Protected Attributes inherited from ilBaseWorkflow
 $nodes
 
 $detectors
 
 $start_node
 
 $active
 Holds the activation state of the workflow. More...
 
 $db_id
 This holds the database id of the workflow. More...
 
 $workflow_type
 
 $workflow_content
 
 $workflow_class
 
 $workflow_location
 
 $workflow_subject_type
 
 $workflow_subject_identifier
 
 $workflow_context_type
 
 $workflow_context_identifier
 
 $instance_vars = array()
 
 $data_inputs
 
 $data_outputs
 
 $require_data_persistence = false
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

IntermediateCatchEvent_Message_Simple::__construct ( )

Definition at line 13 of file IntermediateCatchEvent_Message_Simple_goldsample.php.

References ilBaseWorkflow\addNode(), and ilBaseWorkflow\setStartNode().

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_IntermediateCatchEvent_1 = new ilBasicNode($this);
23  $this->addNode($_v_IntermediateCatchEvent_1);
24  $_v_IntermediateCatchEvent_1->setName('$_v_IntermediateCatchEvent_1');
25 
26  $_v_IntermediateCatchEvent_1_detector = new ilEventDetector($_v_IntermediateCatchEvent_1);
27  $_v_IntermediateCatchEvent_1_detector->setName('$_v_IntermediateCatchEvent_1_detector');
28  $_v_IntermediateCatchEvent_1_detector->setEvent( "Course", "UserWasAssigned");
29  $_v_IntermediateCatchEvent_1_detector->setEventSubject( "usr", "0");
30  $_v_IntermediateCatchEvent_1_detector->setEventContext( "crs", "0");
31  $_v_IntermediateCatchEvent_1_detector->setListeningTimeframe(0, 0);
32  $_v_IntermediateCatchEvent_1->addDetector($_v_IntermediateCatchEvent_1_detector);
33 
34  $_v_EndEvent_1 = new ilBasicNode($this);
35  $this->addNode($_v_EndEvent_1);
36  $_v_EndEvent_1->setName('$_v_EndEvent_1');
37 
38  $_v_IntermediateCatchEvent_1_detector = new ilSimpleDetector($_v_IntermediateCatchEvent_1);
39  $_v_IntermediateCatchEvent_1_detector->setName('$_v_IntermediateCatchEvent_1_detector');
40  $_v_IntermediateCatchEvent_1_detector->setSourceNode($_v_StartEvent_1);
41  $_v_IntermediateCatchEvent_1->addDetector($_v_IntermediateCatchEvent_1_detector);
42  $_v_StartEvent_1_emitter = new ilActivationEmitter($_v_StartEvent_1);
43  $_v_StartEvent_1_emitter->setName('$_v_StartEvent_1_emitter');
44  $_v_StartEvent_1_emitter->setTargetDetector($_v_IntermediateCatchEvent_1_detector);
45  $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
46 
47  $_v_EndEvent_1_detector = new ilSimpleDetector($_v_EndEvent_1);
48  $_v_EndEvent_1_detector->setName('$_v_EndEvent_1_detector');
49  $_v_EndEvent_1_detector->setSourceNode($_v_IntermediateCatchEvent_1);
50  $_v_EndEvent_1->addDetector($_v_EndEvent_1_detector);
51  $_v_IntermediateCatchEvent_1_emitter = new ilActivationEmitter($_v_IntermediateCatchEvent_1);
52  $_v_IntermediateCatchEvent_1_emitter->setName('$_v_IntermediateCatchEvent_1_emitter');
53  $_v_IntermediateCatchEvent_1_emitter->setTargetDetector($_v_EndEvent_1_detector);
54  $_v_IntermediateCatchEvent_1->addEmitter($_v_IntermediateCatchEvent_1_emitter);
55 
56  }
addNode(ilNode $node)
This method adds a node to the workflow.
PhpIncludeInspection
setStartNode(ilNode $node)
Sets the start node of the workflow.
PhpIncludeInspection
PhpIncludeInspection
+ Here is the call graph for this function:

Field Documentation

◆ $startEventRequired

IntermediateCatchEvent_Message_Simple::$startEventRequired = false
static

The documentation for this class was generated from the following file: