ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
PhpIncludeInspection More...
Public Member Functions | |
__construct (ilWorkflow $context) | |
Default constructor. More... | |
activate () | |
Activates the node. More... | |
deactivate () | |
Deactivates the node. More... | |
trigger ($a_type, $a_params=null) | |
Passes a trigger to attached detectors. More... | |
checkTransitionPreconditions () | |
Checks, if the preconditions of the node to transit are met. More... | |
attemptTransition () | |
Attempts to transit the node. More... | |
executeTransition () | |
Executes the 'then'-transition of the node. More... | |
addEmitter (ilEmitter $emitter, $else_emitter=false) | |
Adds an emitter to one of the lists attached to the node. More... | |
addActivity (ilActivity $activity, $else_activity=false) | |
Adds an activity to one of the lists attached to the node. More... | |
setEvaluationExpression ($a_expression) | |
notifyDetectorSatisfaction (ilDetector $detector) | |
This method is called by detectors, that just switched to being satisfied. More... | |
getActivities ($else=false) | |
Returns all currently set activites. More... | |
getEmitters ($else=false) | |
Returns all currently set emitters. More... | |
Public Member Functions inherited from ilBaseNode | |
addDetector (ilDetector $detector) | |
Adds a detector to the list of detectors. More... | |
getDetectors () | |
Returns all currently set detectors. More... | |
addEmitter (ilEmitter $emitter) | |
Adds an emitter to the list of emitters. More... | |
getEmitters () | |
Returns all currently set emitters. More... | |
addActivity (ilActivity $activity) | |
Adds an activity to the list of activities. More... | |
getActivities () | |
Returns all currently set activities. More... | |
getContext () | |
Returns a reference to the parent workflow object. More... | |
setName ($name) | |
getName () | |
getRuntimeVars () | |
setRuntimeVars ($runtime_vars) | |
getRuntimeVar ($name) | |
setRuntimeVar ($name, $value) | |
onActivate () | |
Method called on activation of the node. More... | |
onDeactivate () | |
Method calles on deactivation of the node. More... | |
isActive () | |
Returns the activation status of the node. More... | |
attemptTransition () | |
checkTransitionPreconditions () | |
executeTransition () | |
activate () | |
deactivate () | |
notifyDetectorSatisfaction (ilDetector $detector) | |
Private Member Functions | |
executeActivities () | |
Executes all 'then'-activities attached to the node. More... | |
executeEmitters () | |
Executes all 'then'-emitters attached to the node. More... | |
Private Attributes | |
$else_emitters | |
$else_activities | |
$evaluation_expression = "return null;" | |
Additional Inherited Members | |
Protected Attributes inherited from ilBaseNode | |
$context | |
$detectors | |
$emitters | |
$activities | |
$active = false | |
$name | |
$runtime_vars | |
PhpIncludeInspection
Plugin node of the petri net based workflow engine.
The plugin node is a deciding node. It features a multiple set of emitters and activities.
/
Definition at line 18 of file class.ilPluginNode.php.
ilPluginNode::__construct | ( | ilWorkflow | $context | ) |
Default constructor.
ilWorkflow | $context | Reference to the parent workflow. |
Definition at line 49 of file class.ilPluginNode.php.
References ilBaseNode\$context, and array.
ilPluginNode::activate | ( | ) |
Activates the node.
Implements ilNode.
Definition at line 62 of file class.ilPluginNode.php.
References attemptTransition(), and ilBaseNode\onActivate().
ilPluginNode::addActivity | ( | ilActivity | $activity, |
$else_activity = false |
|||
) |
Adds an activity to one of the lists attached to the node.
ilActivity | $activity | |
boolean | $else_activity | True, if the activity should be an 'else'-activity. |
Definition at line 213 of file class.ilPluginNode.php.
ilPluginNode::addEmitter | ( | ilEmitter | $emitter, |
$else_emitter = false |
|||
) |
Adds an emitter to one of the lists attached to the node.
ilEmitter | $emitter | |
boolean | $else_emitter | True, if the emitter should be an 'else'-emitter. |
Definition at line 198 of file class.ilPluginNode.php.
ilPluginNode::attemptTransition | ( | ) |
Attempts to transit the node.
Basically, this checks for preconditions and transits, returning true or false if preconditions are not met, aka detectors are not fully satisfied.
Implements ilNode.
Definition at line 138 of file class.ilPluginNode.php.
References ilBaseNode\$detectors, and executeTransition().
Referenced by activate(), notifyDetectorSatisfaction(), and trigger().
ilPluginNode::checkTransitionPreconditions | ( | ) |
Checks, if the preconditions of the node to transit are met.
Please note, that in a conditional node, this means the node can transit to one or another outcome. This method only returns false, if the return value of the method is neither true nor false.
Implements ilNode.
Definition at line 112 of file class.ilPluginNode.php.
References ilBaseNode\$detectors.
ilPluginNode::deactivate | ( | ) |
Deactivates the node.
Implements ilNode.
Definition at line 75 of file class.ilPluginNode.php.
References ilBaseNode\onDeactivate().
Referenced by executeTransition().
|
private |
Executes all 'then'-activities attached to the node.
Definition at line 161 of file class.ilPluginNode.php.
Referenced by executeTransition().
|
private |
Executes all 'then'-emitters attached to the node.
Definition at line 173 of file class.ilPluginNode.php.
Referenced by executeTransition().
ilPluginNode::executeTransition | ( | ) |
Executes the 'then'-transition of the node.
Implements ilNode.
Definition at line 185 of file class.ilPluginNode.php.
References deactivate(), executeActivities(), and executeEmitters().
Referenced by attemptTransition().
ilPluginNode::getActivities | ( | $else = false | ) |
Returns all currently set activites.
boolean | $else | True, if else activities should be returned. |
Definition at line 285 of file class.ilPluginNode.php.
References ilBaseNode\$activities, and $else_activities.
ilPluginNode::getEmitters | ( | $else = false | ) |
Returns all currently set emitters.
boolean | $else | True, if else emitters should be returned. |
Definition at line 300 of file class.ilPluginNode.php.
References $else_emitters, and ilBaseNode\$emitters.
ilPluginNode::notifyDetectorSatisfaction | ( | ilDetector | $detector | ) |
This method is called by detectors, that just switched to being satisfied.
ilDetector | $detector | ilDetector which is now satisfied. |
Implements ilNode.
Definition at line 271 of file class.ilPluginNode.php.
References attemptTransition(), and ilBaseNode\isActive().
ilPluginNode::setEvaluationExpression | ( | $a_expression | ) |
Definition at line 258 of file class.ilPluginNode.php.
ilPluginNode::trigger | ( | $a_type, | |
$a_params = null |
|||
) |
Passes a trigger to attached detectors.
type | $a_type | |
type | $a_params |
Definition at line 91 of file class.ilPluginNode.php.
References $a_type, and attemptTransition().
|
private |
Definition at line 34 of file class.ilPluginNode.php.
Referenced by getActivities().
|
private |
Definition at line 26 of file class.ilPluginNode.php.
Referenced by getEmitters().
|
private |
Definition at line 42 of file class.ilPluginNode.php.