Method | Description | |
---|---|---|
__construct ( |
||
initialize ( string $token = null ) : |
Initializes the workflow with a given token. | |
next ( Alterway\Component\Workflow\ContextInterface $context ) : |
Moves the current token to the next node of the workflow. |
public __construct ( |
||
$start | ||
$nodes | ||
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface |
public initialize ( string $token = null ) : |
||
$token | string | |
return |
public next ( Alterway\Component\Workflow\ContextInterface $context ) : |
||
$context | Alterway\Component\Workflow\ContextInterface | |
return |