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?
1 comment
Comment actions Permalink
Unfortunately states visibility in state machine aren't supported yet in workflow - JT-12684

Now the [condition] just allows/disallows to perform transition.

PS support speak russian?

Yep, support speaks Russian.
0

Please sign in to leave a comment.