Skip to content

Why are non-permitted transitions allowed? #623

Answered by efonsell
mfdewit asked this question in Q&A
Discussion options

You must be logged in to vote

(nflow.illegal.state.change.action is documented here)

Indeed, setting any workflow state (from state methods and via APIs) is intentionally allowed, as it may be needed in some cases. nflow.illegal.state.change.action is not currently checked when the state change is made via APIs. It could be added though.

We could also consider adding support to control this on request level, possibly by adding a parameter like expectedStates in WorkflowInstanceService.wakeupWorkflowInstance, or actionOnIllegalStateChange similar to nflow.illegal.state.change.action with additional option to deny the change. Please create an issue if you think this sounds like a good idea and would solve your problem.

F…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@mfdewit
Comment options

@RealZimboGuy
Comment options

@mfdewit
Comment options

@efonsell
Comment options

Answer selected by mfdewit
@mfdewit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants