I have a flow with one assignment . There are 2 flow actions A and B associated with the assignment. The likelihood is A-60 and B- 40 . So A would be displayed by default when the Work item reaches this assignment . Later on i get a requirement like in some other scenario based on some condition i need to display flowaction B as default when the work object reaches this assignemnt . How can i implement this ?? .Can we set the likelihood dynamically ??
One way is to Customize PerformDefaults activity based on condition (access group or roles). You could specialize it in your work class. While customizing this, please make sure it should not affect other functionalities.
Another way is there is an activity Work-pyPopulateAsnActions. You could specialize it in your work class (or at some reusable layer) where you need this behavior and add an Obj-Sort step that sorts pyFlowActionsList using your probability property appropriately.