Свойство | Тип | Описание | |
---|---|---|---|
$activatedNodes | ezcWorkflowNode[] | Nodes of the workflow being executed that are activated. | |
$cancelled | boolean | Flag that indicates whether or not this execution has been cancelled. | |
$ended | boolean | Flag that indicates whether or not this execution has ended. | |
$id | integer | Execution ID. | |
$nextThreadId | integer | Sequence for thread ids. | |
$numActivatedEndNodes | integer | Number of activated end nodes. | |
$numActivatedNodes | integer | Number of activated nodes. | |
$plugins | array | Plugins registered for this execution. | |
$properties | array(string=>mixed) | Container to hold the properties | |
$resumed | boolean | Flag that indicates whether or not this execution has been resumed. | |
$suspended | boolean | Flag that indicates whether or not this execution has been suspended. | |
$threads | array | Nodes of the workflow that started a new thread of execution. | |
$variables | array | Workflow variables. | |
$waitingFor | array | Workflow variables the execution is waiting for. |
Метод | Описание | |
---|---|---|
__get ( string $propertyName ) : mixed | Property read access. | |
__isset ( string $propertyName ) : boolean | Property isset access. | |
__set ( string $propertyName, mixed $val ) | Property write access. | |
activate ( ezcWorkflowNode $node, boolean $notifyPlugins = true ) : boolean | Activates a node and returns true if it was activated, false if not. | |
addListener ( ezcWorkflowExecutionListener $listener ) : boolean | Adds a listener to this execution. | |
addPlugin ( ezcWorkflowExecutionPlugin $plugin ) : boolean | Adds a plugin to this execution. | |
addWaitingFor ( ezcWorkflowNode $node, string $variableName, ezcWorkflowCondition $condition ) | Adds a variable that an (input) node is waiting for. | |
cancel ( ezcWorkflowNode $node = null ) | Cancels workflow execution with the node $endNode. | |
end ( ezcWorkflowNode $node = null ) | Ends workflow execution with the node $endNode. | |
endThread ( integer $threadId ) | Ends the thread with id $threadId | |
getActivatedNodes ( ) : array | Returns the activated nodes. | |
getId ( ) : integer | Returns the execution ID. | |
getNumSiblingThreads ( integer $threadId ) : integer | Returns the number of siblings for a given thread. | |
getParentThreadId ( integer $threadId ) : integer | Returns the id of the parent thread for a given thread. | |
getSubExecution ( integer $id = null, boolean $interactive = true ) : ezcWorkflowExecution | Returns a new execution object for a sub workflow. | |
getVariable ( string $variableName ) | Returns a variable. | |
getVariables ( ) : array | Returns the variables. | |
getWaitingFor ( ) : array | Returns the variables that (input) nodes are waiting for. | |
hasEnded ( ) : boolean | Returns true when the workflow execution has ended. | |
hasVariable ( string $variableName ) : boolean | Checks whether or not a workflow variable has been set. | |
isCancelled ( ) : boolean | Returns true when the workflow execution has been cancelled. | |
isResumed ( ) : boolean | Returns true when the workflow execution has been resumed. | |
isSuspended ( ) : boolean | Returns true when the workflow execution has been suspended. | |
removeListener ( ezcWorkflowExecutionListener $listener ) : boolean | Removes a listener from this execution. | |
removePlugin ( ezcWorkflowExecutionPlugin $plugin ) : boolean | Removes a plugin from this execution. | |
resume ( array $inputData = [] ) | Resumes workflow execution of a suspended workflow. | |
setVariable ( string $variableName, mixed $value ) : mixed | Sets a variable. | |
setVariables ( array $variables ) | Sets the variables. | |
start ( integer $parentId = null ) : mixed | Starts the execution of the workflow and returns the execution id. | |
startThread ( integer $parentId = null, integer $numSiblings = 1 ) : integer | Start a new thread and returns the id of the new thread. | |
suspend ( ) | Suspends workflow execution. | |
unsetVariable ( string $variableName ) : true, | Unsets a variable. |
Метод | Описание | |
---|---|---|
doEnd ( ) | Called by end() when workflow execution is ended. | |
doGetSubExecution ( integer $id = null ) : ezcWorkflowExecution | Returns a new execution object for a sub workflow. | |
doResume ( ) | Called by resume() when workflow execution is resumed. | |
doStart ( integer $parentId ) | Called by start() when workflow execution is initiated. | |
doSuspend ( ) | Called by suspend() when workflow execution is suspended. | |
execute ( ) | The workflow engine's main execution loop. It is started by start() and resume(). | |
loadFromVariableHandlers ( ) | Loads data from variable handlers and merge it with the current execution data. | |
saveToVariableHandlers ( ) | Saves data to execution data handlers. |
public addListener ( ezcWorkflowExecutionListener $listener ) : boolean | ||
$listener | ezcWorkflowExecutionListener | |
Результат | boolean | true when the listener was added, false otherwise. |
public addWaitingFor ( ezcWorkflowNode $node, string $variableName, ezcWorkflowCondition $condition ) | ||
$node | ezcWorkflowNode | |
$variableName | string | |
$condition | ezcWorkflowCondition |
public cancel ( ezcWorkflowNode $node = null ) | ||
$node | ezcWorkflowNode |
abstract protected doEnd ( ) |
abstract protected doGetSubExecution ( integer $id = null ) : ezcWorkflowExecution | ||
$id | integer | |
Результат | ezcWorkflowExecution |
abstract protected doResume ( ) |
abstract protected doSuspend ( ) |
public end ( ezcWorkflowNode $node = null ) | ||
$node | ezcWorkflowNode |
protected execute ( ) |
public getActivatedNodes ( ) : array | ||
Результат | array |
public getNumSiblingThreads ( integer $threadId ) : integer | ||
$threadId | integer | The id of the thread for which to return the number of siblings. |
Результат | integer |
public getParentThreadId ( integer $threadId ) : integer | ||
$threadId | integer | The id of the thread for which to return the parent thread id. |
Результат | integer |
public getSubExecution ( integer $id = null, boolean $interactive = true ) : ezcWorkflowExecution | ||
$id | integer | |
$interactive | boolean | |
Результат | ezcWorkflowExecution |
public getVariable ( string $variableName ) | ||
$variableName | string |
public getVariables ( ) : array | ||
Результат | array |
public getWaitingFor ( ) : array | ||
Результат | array |
public hasVariable ( string $variableName ) : boolean | ||
$variableName | string | |
Результат | boolean | true when the variable exists and false otherwise. |
public isCancelled ( ) : boolean | ||
Результат | boolean |
public isSuspended ( ) : boolean | ||
Результат | boolean |
protected loadFromVariableHandlers ( ) |
public removeListener ( ezcWorkflowExecutionListener $listener ) : boolean | ||
$listener | ezcWorkflowExecutionListener | |
Результат | boolean | true when the listener was removed, false otherwise. |
public removePlugin ( ezcWorkflowExecutionPlugin $plugin ) : boolean | ||
$plugin | ezcWorkflowExecutionPlugin | |
Результат | boolean | true when the plugin was removed, false otherwise. |
protected saveToVariableHandlers ( ) |
public setVariables ( array $variables ) | ||
$variables | array |
public suspend ( ) |
public unsetVariable ( string $variableName ) : true, | ||
$variableName | string | |
Результат | true, |
protected ezcWorkflowNode[] $activatedNodes | ||
Результат | ezcWorkflowNode[] |
protected bool $cancelled | ||
Результат | boolean |
protected bool $ended | ||
Результат | boolean |
protected int $nextThreadId | ||
Результат | integer |
protected int $numActivatedEndNodes | ||
Результат | integer |
protected int $numActivatedNodes | ||
Результат | integer |
protected array $plugins | ||
Результат | array |
protected array(string=>mixed) $properties | ||
Результат | array(string=>mixed) |
protected bool $resumed | ||
Результат | boolean |
protected bool $suspended | ||
Результат | boolean |
protected array $threads | ||
Результат | array |
protected array $waitingFor | ||
Результат | array |