how to install State depending on the user's role
i try in statemachine this code
state Complete {
on Reopen[loggedInUser.hasRole("engeneer")] do {<define statements>} transit to Reopened
on Verify[loggedInUser.hasRole("engeneer")] do {<define statements>} transit to Verified
}
but the events "Reopen" and "Verify" are visible to users with other roles
PS support speak russian?
state Complete {
on Reopen[loggedInUser.hasRole("engeneer")] do {<define statements>} transit to Reopened
on Verify[loggedInUser.hasRole("engeneer")] do {<define statements>} transit to Verified
}
but the events "Reopen" and "Verify" are visible to users with other roles
PS support speak russian?
Please sign in to leave a comment.
Now the [condition] just allows/disallows to perform transition.
Yep, support speaks Russian.