Posted: 4 Mar 2016 7:50 EST Last activity: 9 Mar 2016 3:02 EST
What OOTB functionality can I use to achieve the following behaviour: If a flow action has a condition, I would like the system to open Work in review mode (no lock) if the condition is not met ?
Currently, if I have a condition on the flow action, the system opens the Work for perform (with lock, using Perform Harness) and displays following message: "Either no actions are specified for this assignment or you do not have the permission to access any of them."
I would like to open Work for review only (with some message) and not lock it.
In my case, the user opens the assignment with click on the row of a grid with results of type Assign-WorkBasket. The grid is configured with action "OpenAssignment" which doesn't allow me to provide a condition (like when to perform the action).
I found a solution for this situation, overriding PerformDefaults activity:
- I use pzNoActionsToPerform WHEN rule to see if PEGA found an assignment action to perform,
- If there is no assignment (action), I change the harness for the assignment to review (or another read-only harness for the Work Object), set some message property to be able to show message to end-user, and unlock the work object