Workflow
class Workflow implements WorkflowInterface
Methods
__construct(Definition $definition, MarkingStoreInterface $markingStore = null, EventDispatcherInterface $dispatcher = null, string $name = 'unnamed')
No description
getMarking(object $subject)
Returns the object's Marking.
bool
can(object $subject, string $transitionName)
Returns true if the transition is enabled.
buildTransitionBlockerList($subject, string $transitionName)
Builds a TransitionBlockerList to know why a transition is blocked.
getEnabledTransitions(object $subject)
Returns all enabled transitions.
string
getName()
No description
getDefinition()
No description
getMarkingStore()
No description
getMetadataStore()
No description
Details
__construct(Definition $definition, MarkingStoreInterface $markingStore = null, EventDispatcherInterface $dispatcher = null, string $name = 'unnamed')
TransitionBlockerList
buildTransitionBlockerList($subject, string $transitionName)
Builds a TransitionBlockerList to know why a transition is blocked.