PHP Класс ezcWorkflowNodeSynchronization, Workflow

The Synchronization workflow pattern synchronizes multiple parallel threads of execution into a single thread of execution. Workflow execution continues once all threads of execution that are to be synchronized have finished executing (exactly once). Use Case Example: After the confirmation email has been sent and the shipping process has been completed, the order can be archived. Incoming nodes: 2..* Outgoing nodes: 1
Наследование: extends ezcWorkflowNodeMerge
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
activate ( ezcWorkflowExecution $execution, ezcWorkflowNode $activatedFrom = null, integer $threadId ) Activate this node.
execute ( ezcWorkflowExecution $execution ) : boolean Executes this node.

Описание методов

activate() публичный Метод

Activate this node.
public activate ( ezcWorkflowExecution $execution, ezcWorkflowNode $activatedFrom = null, integer $threadId )
$execution ezcWorkflowExecution
$activatedFrom ezcWorkflowNode
$threadId integer

execute() публичный Метод

Executes this node.
public execute ( ezcWorkflowExecution $execution ) : boolean
$execution ezcWorkflowExecution
Результат boolean true when the node finished execution, and false otherwise