TransitionBlocker
class TransitionBlocker
A reason why a transition cannot be performed for a subject.
Constants
BLOCKED_BY_MARKING |
|
BLOCKED_BY_EXPRESSION_GUARD_LISTENER |
|
UNKNOWN |
|
Methods
No description
Create a blocker that says the transition cannot be made because it is not enabled.
Creates a blocker that says the transition cannot be made because it has been blocked by the expression guard listener.
Creates a blocker that says the transition cannot be made because of an unknown reason.
No description
No description
No description
Details
static TransitionBlocker
createBlockedByMarking(Marking $marking)
Create a blocker that says the transition cannot be made because it is not enabled.
It means the subject is in wrong place (i.e. status): * If the workflow is a state machine: the subject is not in the previous place of the transition. * If the workflow is a workflow: the subject is not in all previous places of the transition.
static TransitionBlocker
createBlockedByExpressionGuardListener(string $expression)
Creates a blocker that says the transition cannot be made because it has been blocked by the expression guard listener.
static TransitionBlocker
createUnknown()
Creates a blocker that says the transition cannot be made because of an unknown reason.
This blocker code is chiefly for preserving backwards compatibility.