Discussion
Virtusa
IN
Last activity: 4 Nov 2015 0:50 EST
Dynamic stage based configuration
Can we change the sequential execution of stages ? I want to decide the sequence of stages at run time and the sequence can be changed dynamically ...
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pega
IN
Yes you can decide at runtime whether to go sequence of stages or not, but for this you may need to configure for change stage at design time.
By using local action called Work-.pxChangeStage you can decide at runtime which stage to go.
For a case with stages, this flow action allows the user to switch to either the next stage or a specified stage.
Virtusa
IN
Raghu,
Stages sequence is configurable and we want to show the stages in sequence when the stages sequence is configured and this sequence can be reordered/configurable..
Once the stages are defined in the design time, you cannot reorder them from run time. However you can choose to jump between one stage to another based on the requirements using pxChangeStage API or FA as Raghu mentioned.
Virtusa
IN
Is it not possible with any tweak/customization like modifying the declare page that will load the stages or is this is not at all recommended approach ? Please note this is a complete STP and stages are divided with related tasks and completely independet with other stages.
Stages are meant to show the life cycle of a case and the steps it goes through. The stages can be fulfilled based on the available information and a case can move back and forth between stages. Stages are loaded from the case type rule and it governs the stages gadet in runtime.
What exactly you mean by reorder the stages? You want to jump between stages and want the stages gadget on a case to reflect that?
I think Irrespective of the order the stages are performed the stages gadget will always show the order as shown in the design time.
Virtusa
IN
Vijay,
This is a complete STP Automation process and there won't be any assignments(no UI) in the flow and the sequence of stages can be reordered by the Business User that should take effect from next case onwards
Pega
IN
Hi BharatTeja,
As you mentioned that the stage process is STP and no assignments in any of the flow, so what is the need of reordering the stage sequence if you define any stage to enter based on when condition it would execute that stage or skip and next stage would be performed.
If the business user wants to reorder the current stages it would effect from next case, you need to think of existing cases as well if you remove any stage.