At an assignment shape, how to dynamically set a flow action as the default one so that when user open the assignment, use will see that default flow action without the need to switch first.
Is there any property that we can set in pyWorkPage, or pyWorkPage.pxFlow page that can indicate the flow action to show?
User case: at a particular assignment shape, there are 5 flow actions, 3 of them are local flow actions. In certain scenario, we want user to work one of the local flow actions first, before using another flow action to proceed in flow. How to achieve that?
As Ken mentioned, PerformDefault activity is the correct place to put this logic. But directly setting default index or other property might not work since they could be overridden by some other processing down the engine. We can actually set param.TaskStatus and param.TaskIndex in this activity.
You can loop over newAssignPage.pyAssignActions and moment you find your default flow action you can set these parameters.
Let us know if this helps :)
Posted: 5 years ago
Posted: 1 Feb 2017 11:22 EST
Ken Marin (MARIK)
Fellow, Software Architect, Case Runtime