5require_once
'./Services/WorkflowEngine/interfaces/ilDetector.php';
7require_once
'./Services/WorkflowEngine/interfaces/ilWorkflowEngineElement.php';
83 $definitions = $this->
getContext()->getContext()->getInstanceVars();
87 foreach ($definitions as $definition) {
88 if ($definition[
'id'] ==
$name) {
89 if ($definition[
'reference']) {
90 $id = $definition[
'target'];
92 $name = $definition[
'name'];
101 $this->detection_state =
true;
119 $this->detection_state =
true;
120 $this->context->notifyDetectorSatisfaction($this);
An exception for terminatinating execution or to throw for unit testing.
@noinspection PhpIncludeInspection
__construct(ilNode $context)
Default constructor.
setSourceNode($source_node)
getDetectorState()
Returns if the current detector state is satisfied or not.
onActivate()
Method is called, when the parent node is activated.
getContext()
Returns the parent object.
onDeactivate()
Method is called, when the parent node is deactivated.
setDetectorState($new_state)
Sets a new detector state.
trigger($params)
Trigger this detector.
ilDetector Interface is part of the petri net based workflow engine.
@noinspection PhpIncludeInspection
ilWorkflowEngineElement Interface is part of the petri net based workflow engine.