ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
EndEvent_Signal_Simple Class Reference
+ Inheritance diagram for EndEvent_Signal_Simple:
+ Collaboration diagram for EndEvent_Signal_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

Definition at line 8 of file EndEvent_Signal_Simple_goldsample.php.

Constructor & Destructor Documentation

◆ __construct()

EndEvent_Signal_Simple::__construct ( )

Definition at line 13 of file EndEvent_Signal_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_EndEvent_1 = new ilBasicNode($this);
23  $this->addNode($_v_EndEvent_1);
24  $_v_EndEvent_1->setName('$_v_EndEvent_1');
25 
26  $_v_EndEvent_1_throwEventActivity = new ilEventRaisingActivity($_v_EndEvent_1);
27  $_v_EndEvent_1_throwEventActivity->setName('$_v_EndEvent_1_throwEventActivity');
28  $_v_EndEvent_1_throwEventActivity->setEventType("Course");
29  $_v_EndEvent_1_throwEventActivity->setEventName("UserLeft");
30  $_v_EndEvent_1->addActivity($_v_EndEvent_1_throwEventActivity);
31 
32  $_v_EndEvent_1_detector = new ilSimpleDetector($_v_EndEvent_1);
33  $_v_EndEvent_1_detector->setName('$_v_EndEvent_1_detector');
34  $_v_EndEvent_1_detector->setSourceNode($_v_StartEvent_1);
35  $_v_EndEvent_1->addDetector($_v_EndEvent_1_detector);
36  $_v_StartEvent_1_emitter = new ilActivationEmitter($_v_StartEvent_1);
37  $_v_StartEvent_1_emitter->setName('$_v_StartEvent_1_emitter');
38  $_v_StartEvent_1_emitter->setTargetDetector($_v_EndEvent_1_detector);
39  $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
40 
41  }
addNode(ilNode $node)
This method adds a node to the workflow.
PhpIncludeInspection
setStartNode(ilNode $node)
Sets the start node of the workflow.
PhpIncludeInspection
+ Here is the call graph for this function:

Field Documentation

◆ $startEventRequired

EndEvent_Signal_Simple::$startEventRequired = false
static

Definition at line 11 of file EndEvent_Signal_Simple_goldsample.php.


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