|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
@noinspection PhpIncludeInspection More...
Inheritance diagram for ilBaseWorkflow:
Collaboration diagram for ilBaseWorkflow:Public Member Functions | |
| __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 | |
| handleEvent ($params) | |
| addNode (ilNode $node) | |
| setStartNode (ilNode $node) | |
| registerDetector (ilDetector $detector) | |
| startWorkflow () | |
| stopWorkflow () | |
| isActive () | |
| onStartWorkflow () | |
| onStopWorkflow () | |
| onWorkflowFinished () | |
| getWorkflowData () | |
| getWorkflowSubject () | |
| getWorkflowContext () | |
| getWorkflowClass () | |
| getWorkflowLocation () | |
| setDbId ($id) | |
| getDbId () | |
| hasDbId () | |
| isDataPersistenceRequired () | |
| resetDataPersistenceRequirement () | |
| defineInstanceVar ($id, $name) | |
| hasInstanceVarByName ($name) | |
| hasInstanceVarById ($id) | |
| getInstanceVarByName ($name) | |
| getInstanceVarById ($id) | |
| setInstanceVarByName ($name, $value) | |
| setInstanceVarById ($id, $value) | |
| getInstanceVars () | |
| flushInstanceVars () | |
Static Public Member Functions | |
| static | autoload ($class_name) |
| Autoloader function to dynamically include files for instantiation of objects during deserialization. More... | |
Protected Attributes | |
| $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 | |
@noinspection PhpIncludeInspection
@noinspection PhpIncludeInspection @noinspection PhpIncludeInspection ilBaseWorkflow is part of the petri net based workflow engine.
The base workflow class is the ancestor for all concrete workflow implementations.
/
Definition at line 21 of file class.ilBaseWorkflow.php.
| ilBaseWorkflow::__construct | ( | ) |
Default constructor.
Here the definition of the workflow is to be done.
Reimplemented in ilEmptyWorkflow, StartEvent_Blank, StartEvent_Message, StartEvent_Multistart, StartEvent_Signal, StartEvent_Timer_Date, ParallelGateway_Forking, ParallelGateway_Joining, ParallelGateway_Simple, InclusiveGateway_Simple, ExclusiveGateway_Fork_Simple, ExclusiveGateway_Join_Simple, Task_CallActivity_Simple, Task_ManualTask_Simple, Task_ReadLearnersFromCourse, Task_ScriptTask_Simple, Task_Simple, IntermediateCatchEvent_Message_Simple, IntermediateCatchEvent_Signal_Simple, IntermediateCatchEvent_Timer_Simple, IntermediateThrowEvent_Message_Simple, IntermediateThrowEvent_Signal_Simple, EndEvent_Blanko_Simple, EndEvent_Message_Simple, EndEvent_Signal_Simple, EndEvent_Terminate_Simple, ComplexGateway_Blanko_Simple, EventBasedGateway_Blanko_Simple, DataInput_RepositoryObjectSelector, DataInput_Simple, DataInput_WithProperties, DataOutput_Simple, DataObject_Role, DataObject_Simple, Data_Wiring_Input_Task, DataObject_Wiring_Input_Object_Output, and Booking_System_FullDiagram.
Definition at line 149 of file class.ilBaseWorkflow.php.
| ilBaseWorkflow::addNode | ( | ilNode | $node | ) |
This method adds a node to the workflow.
| ilNode | $node |
Implements ilWorkflow.
Definition at line 355 of file class.ilBaseWorkflow.php.
Referenced by StartEvent_Blank\__construct(), StartEvent_Message\__construct(), StartEvent_Multistart\__construct(), StartEvent_Signal\__construct(), StartEvent_Timer_Date\__construct(), ParallelGateway_Forking\__construct(), ParallelGateway_Joining\__construct(), ParallelGateway_Simple\__construct(), InclusiveGateway_Simple\__construct(), ExclusiveGateway_Fork_Simple\__construct(), ExclusiveGateway_Join_Simple\__construct(), Task_CallActivity_Simple\__construct(), Task_ManualTask_Simple\__construct(), Task_ReadLearnersFromCourse\__construct(), Task_ScriptTask_Simple\__construct(), Task_Simple\__construct(), IntermediateCatchEvent_Message_Simple\__construct(), IntermediateCatchEvent_Signal_Simple\__construct(), IntermediateCatchEvent_Timer_Simple\__construct(), IntermediateThrowEvent_Message_Simple\__construct(), IntermediateThrowEvent_Signal_Simple\__construct(), EndEvent_Blanko_Simple\__construct(), EndEvent_Message_Simple\__construct(), EndEvent_Signal_Simple\__construct(), EndEvent_Terminate_Simple\__construct(), ComplexGateway_Blanko_Simple\__construct(), EventBasedGateway_Blanko_Simple\__construct(), DataInput_RepositoryObjectSelector\__construct(), DataInput_Simple\__construct(), DataInput_WithProperties\__construct(), DataOutput_Simple\__construct(), DataObject_Role\__construct(), DataObject_Simple\__construct(), Data_Wiring_Input_Task\__construct(), DataObject_Wiring_Input_Object_Output\__construct(), and Booking_System_FullDiagram\__construct().
Here is the caller graph for this function:
|
static |
Autoloader function to dynamically include files for instantiation of objects during deserialization.
| string | $class_name |
Definition at line 424 of file class.ilBaseWorkflow.php.
References $filename.
| ilBaseWorkflow::defineInputVar | ( | $name | ) |
Definition at line 664 of file class.ilBaseWorkflow.php.
References $name.
| ilBaseWorkflow::defineInstanceVar | ( | $id, | |
| $name, | |||
$reference = false, |
|||
$reference_target = '', |
|||
$type = 'mixed', |
|||
$role = 'undefined' |
|||
| ) |
| string | $id | |
| string | $name | |
| bool | $reference | |
| string | $reference_target | |
| string | $type | |
| string | $role |
Definition at line 489 of file class.ilBaseWorkflow.php.
References $id, $name, and $type.
Referenced by Task_ReadLearnersFromCourse\__construct(), DataInput_RepositoryObjectSelector\__construct(), DataInput_Simple\__construct(), DataInput_WithProperties\__construct(), DataOutput_Simple\__construct(), DataObject_Role\__construct(), DataObject_Simple\__construct(), Data_Wiring_Input_Task\__construct(), DataObject_Wiring_Input_Object_Output\__construct(), and Booking_System_FullDiagram\__construct().
Here is the caller graph for this function:| ilBaseWorkflow::defineOutputVar | ( | $name | ) |
Definition at line 673 of file class.ilBaseWorkflow.php.
References $name.
| ilBaseWorkflow::flushInstanceVars | ( | ) |
Empties the instance variables.
Implements ilWorkflow.
Definition at line 652 of file class.ilBaseWorkflow.php.
| ilBaseWorkflow::getDbId | ( | ) |
Returns the database id of the detector if set.
ilWorkflowObjectStateException
Implements ilWorkflow.
Definition at line 317 of file class.ilBaseWorkflow.php.
References $db_id.
| ilBaseWorkflow::getInputVars | ( | ) |
| ilBaseWorkflow::getInstanceVarById | ( | $id | ) |
Returns the given instance variables content.
| string | $name | Name of the variable. |
Implements ilWorkflow.
Definition at line 567 of file class.ilBaseWorkflow.php.
References $id, and getInstanceVarById().
Referenced by getInstanceVarById().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBaseWorkflow::getInstanceVarByName | ( | $name | ) |
Returns the given instance variables content.
| string | $name | Name of the variable. |
Implements ilWorkflow.
Definition at line 547 of file class.ilBaseWorkflow.php.
References $name, and getInstanceVarByName().
Referenced by getInstanceVarByName().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBaseWorkflow::getInstanceVars | ( | ) |
Returns an array with all set instance variables.
Implements ilWorkflow.
Definition at line 644 of file class.ilBaseWorkflow.php.
References $instance_vars.
| ilBaseWorkflow::getNodes | ( | ) |
Returns all nodes attached to the workflow.
Definition at line 413 of file class.ilBaseWorkflow.php.
References $nodes.
| ilBaseWorkflow::getOutputVars | ( | ) |
| ilBaseWorkflow::getWorkflowClass | ( | ) |
Returns the currently set workflow class definition name.
Implements ilWorkflow.
Definition at line 379 of file class.ilBaseWorkflow.php.
References $workflow_class.
| ilBaseWorkflow::getWorkflowContext | ( | ) |
Get the event context set to the workflow.
Implements ilWorkflow.
Definition at line 296 of file class.ilBaseWorkflow.php.
| ilBaseWorkflow::getWorkflowData | ( | ) |
Returns the workflow type and content currently set to the workflow.
Implements ilWorkflow.
Definition at line 276 of file class.ilBaseWorkflow.php.
| ilBaseWorkflow::getWorkflowLocation | ( | ) |
Returns the currently set path to the workflow definition.
Implements ilWorkflow.
Definition at line 403 of file class.ilBaseWorkflow.php.
References $workflow_location.
| ilBaseWorkflow::getWorkflowSubject | ( | ) |
Get the workflow subject set to the workflow.
Implements ilWorkflow.
Definition at line 286 of file class.ilBaseWorkflow.php.
| ilBaseWorkflow::handleEvent | ( | $params | ) |
Handles an event.
The event is passed to all active event handlers.
| string[] | $params |
Implements ilWorkflow.
Definition at line 239 of file class.ilBaseWorkflow.php.
References PHPMailer\PHPMailer\$params, and onWorkflowFinished().
Here is the call graph for this function:| ilBaseWorkflow::hasDbId | ( | ) |
Returns, if the detector has a database id.
Implements ilWorkflow.
Definition at line 331 of file class.ilBaseWorkflow.php.
| ilBaseWorkflow::hasInputVar | ( | $name | ) |
Definition at line 693 of file class.ilBaseWorkflow.php.
References $name.
| ilBaseWorkflow::hasInstanceVarById | ( | $id | ) |
Returns if an instance variable of the given id is set.
| string | $id |
Implements ilWorkflow.
Definition at line 531 of file class.ilBaseWorkflow.php.
References $id.
| ilBaseWorkflow::hasInstanceVarByName | ( | $name | ) |
Returns if an instance variable of the given name is set.
| string | $name |
Implements ilWorkflow.
Definition at line 514 of file class.ilBaseWorkflow.php.
References $name.
| ilBaseWorkflow::hasOutputVar | ( | $name | ) |
Definition at line 701 of file class.ilBaseWorkflow.php.
References $name.
| ilBaseWorkflow::isActive | ( | ) |
Returns the activation status of the workflow.
Implements ilWorkflow.
Definition at line 227 of file class.ilBaseWorkflow.php.
References $active.
| ilBaseWorkflow::isDataPersistenceRequired | ( | ) |
Implements ilWorkflow.
Definition at line 456 of file class.ilBaseWorkflow.php.
References $require_data_persistence.
| ilBaseWorkflow::onStartWorkflow | ( | ) |
Method called on start of the workflow, prior to activating the first node.
Implements ilWorkflow.
Definition at line 193 of file class.ilBaseWorkflow.php.
Referenced by startWorkflow().
Here is the caller graph for this function:| ilBaseWorkflow::onStopWorkflow | ( | ) |
Method called on stopping of the workflow, after deactivating all nodes.
Please note: Stopping a workflow 'cancels' the execution. The graceful end of a workflow is handled with
Implements ilWorkflow.
Definition at line 205 of file class.ilBaseWorkflow.php.
Referenced by stopWorkflow().
Here is the caller graph for this function:| ilBaseWorkflow::onWorkflowFinished | ( | ) |
Method called after workflow is finished, after detecting no more nodes are active.
This is the graceful end of the workflow. Forced shutdown of a workflow is handled in
Implements ilWorkflow.
Definition at line 217 of file class.ilBaseWorkflow.php.
Referenced by handleEvent().
Here is the caller graph for this function:| ilBaseWorkflow::readInputVar | ( | $name | ) |
Definition at line 682 of file class.ilBaseWorkflow.php.
References $name.
| ilBaseWorkflow::readOutputVar | ( | $name | ) |
Definition at line 718 of file class.ilBaseWorkflow.php.
References $name.
| ilBaseWorkflow::registerDetector | ( | ilDetector | $detector | ) |
| \ilDetector | $detector |
Implements ilWorkflow.
Definition at line 263 of file class.ilBaseWorkflow.php.
| ilBaseWorkflow::registerInputVar | ( | $name, | |
| $definition | |||
| ) |
| string | $name | |
| mixed | $definition |
Definition at line 752 of file class.ilBaseWorkflow.php.
References $name.
Referenced by Task_ReadLearnersFromCourse\__construct(), DataInput_RepositoryObjectSelector\__construct(), DataInput_Simple\__construct(), DataInput_WithProperties\__construct(), Data_Wiring_Input_Task\__construct(), and DataObject_Wiring_Input_Object_Output\__construct().
Here is the caller graph for this function:| ilBaseWorkflow::registerOutputVar | ( | $name | ) |
| string | $name |
Definition at line 761 of file class.ilBaseWorkflow.php.
References $name.
Referenced by DataOutput_Simple\__construct(), and DataObject_Wiring_Input_Object_Output\__construct().
Here is the caller graph for this function:| ilBaseWorkflow::resetDataPersistenceRequirement | ( | ) |
Implements ilWorkflow.
Definition at line 464 of file class.ilBaseWorkflow.php.
| ilBaseWorkflow::setDbId | ( | $id | ) |
Sets the database id of the detector.
| integer | $id |
Implements ilWorkflow.
Definition at line 306 of file class.ilBaseWorkflow.php.
References $id.
| ilBaseWorkflow::setInstanceVarById | ( | $id, | |
| $value | |||
| ) |
Sets the given instance var with the given content.
| string | $id | Name of the variable |
| mixed | $value |
Implements ilWorkflow.
Definition at line 605 of file class.ilBaseWorkflow.php.
References $id, and setInstanceVarById().
Referenced by setInstanceVarById(), setInstanceVarByName(), and setInstanceVarByRole().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBaseWorkflow::setInstanceVarByName | ( | $name, | |
| $value | |||
| ) |
Sets the given instance var with the given content.
| string | $name | Name of the variable |
| mixed | $value |
Implements ilWorkflow.
Definition at line 586 of file class.ilBaseWorkflow.php.
References $name, and setInstanceVarById().
Here is the call graph for this function:| ilBaseWorkflow::setInstanceVarByRole | ( | $role, | |
| $value | |||
| ) |
Sets the given instance var with the given content.
only during startup to write event params
| string | $role | Role of the variable |
| mixed | $value |
Definition at line 625 of file class.ilBaseWorkflow.php.
References setInstanceVarById().
Here is the call graph for this function:| ilBaseWorkflow::setStartNode | ( | ilNode | $node | ) |
Sets the start node of the workflow.
This node is activated, when the workflow is started.
| ilNode | $node |
Implements ilWorkflow.
Definition at line 345 of file class.ilBaseWorkflow.php.
Referenced by StartEvent_Blank\__construct(), StartEvent_Multistart\__construct(), ParallelGateway_Forking\__construct(), ParallelGateway_Joining\__construct(), ParallelGateway_Simple\__construct(), InclusiveGateway_Simple\__construct(), ExclusiveGateway_Fork_Simple\__construct(), ExclusiveGateway_Join_Simple\__construct(), Task_CallActivity_Simple\__construct(), Task_ManualTask_Simple\__construct(), Task_ReadLearnersFromCourse\__construct(), Task_ScriptTask_Simple\__construct(), Task_Simple\__construct(), IntermediateCatchEvent_Message_Simple\__construct(), IntermediateCatchEvent_Signal_Simple\__construct(), IntermediateCatchEvent_Timer_Simple\__construct(), IntermediateThrowEvent_Message_Simple\__construct(), IntermediateThrowEvent_Signal_Simple\__construct(), EndEvent_Blanko_Simple\__construct(), EndEvent_Message_Simple\__construct(), EndEvent_Signal_Simple\__construct(), EndEvent_Terminate_Simple\__construct(), ComplexGateway_Blanko_Simple\__construct(), EventBasedGateway_Blanko_Simple\__construct(), DataInput_RepositoryObjectSelector\__construct(), DataInput_Simple\__construct(), DataInput_WithProperties\__construct(), DataOutput_Simple\__construct(), DataObject_Role\__construct(), DataObject_Simple\__construct(), Data_Wiring_Input_Task\__construct(), and DataObject_Wiring_Input_Object_Output\__construct().
Here is the caller graph for this function:| ilBaseWorkflow::setWorkflowClass | ( | $class | ) |
Sets the classname of the workflow definition.
| string | $class |
Definition at line 367 of file class.ilBaseWorkflow.php.
| ilBaseWorkflow::setWorkflowLocation | ( | $path | ) |
Sets the location of the workflow definition file as relative path.
| string | $path | e.g. Services/WorkflowEngine |
Definition at line 391 of file class.ilBaseWorkflow.php.
References $path.
| ilBaseWorkflow::startWorkflow | ( | ) |
Starts the workflow, activating the start_node.
Implements ilWorkflow.
Definition at line 156 of file class.ilBaseWorkflow.php.
References onStartWorkflow().
Here is the call graph for this function:| ilBaseWorkflow::stopWorkflow | ( | ) |
Stops the workflow, deactivating all nodes.
Implements ilWorkflow.
Definition at line 180 of file class.ilBaseWorkflow.php.
References onStopWorkflow().
Here is the call graph for this function:| ilBaseWorkflow::writeInputVar | ( | $name, | |
| $value | |||
| ) |
Definition at line 709 of file class.ilBaseWorkflow.php.
References $name.
| ilBaseWorkflow::writeOutputVar | ( | $name, | |
| $value | |||
| ) |
Definition at line 729 of file class.ilBaseWorkflow.php.
References $name.
|
protected |
Holds the activation state of the workflow.
Definition at line 49 of file class.ilBaseWorkflow.php.
Referenced by isActive().
|
protected |
Definition at line 136 of file class.ilBaseWorkflow.php.
Referenced by getInputVars().
|
protected |
Definition at line 139 of file class.ilBaseWorkflow.php.
Referenced by getOutputVars().
|
protected |
This holds the database id of the workflow.
Definition at line 56 of file class.ilBaseWorkflow.php.
Referenced by getDbId().
|
protected |
Definition at line 35 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 133 of file class.ilBaseWorkflow.php.
Referenced by getInstanceVars().
|
protected |
Definition at line 28 of file class.ilBaseWorkflow.php.
Referenced by getNodes().
|
protected |
Definition at line 142 of file class.ilBaseWorkflow.php.
Referenced by isDataPersistenceRequired().
|
protected |
Definition at line 42 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 85 of file class.ilBaseWorkflow.php.
Referenced by getWorkflowClass().
|
protected |
Definition at line 79 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 126 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 117 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 91 of file class.ilBaseWorkflow.php.
Referenced by getWorkflowLocation().
|
protected |
Definition at line 108 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 100 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 68 of file class.ilBaseWorkflow.php.