Question
Truviq Systems Private Limited
IN
Last activity: 20 Nov 2018 12:55 EST
Skipping a stage
Hello everyone,
In my application, the first stage is registration stage where the user can register and the operator id gets created for that person automatically.
Later if that person logins, if he/she runs the case, the first stage i.e. Registration stage should be skipped from him and the case should start from the second stage. Can anyone help me out in resolving this?
Thanks and regards,
Vineeth.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hello Vineeth,
Thanks for posting query in PSC.
Please go through below articles which may help you.
https://collaborate.pega.com/question/how-skip-step-within-stage
Regards,
Durga
-
Vineeth Yerramsetti Pagidala Jaswanth Kumar Reddy Vishal Malviya Loganathan Ganapathi sneha Jillela and 4 More
Updated: 9 Jun 2018 7:47 EDT
EPAM Systems, Inc.
ES
Hello Vineeth,
Thanks for posting on PSC!!!
You need to have an alternate stage, Configure "Registration Stage" with a condition configured in the right-hand panel of Case type rule. Refer below,
There are two conditions which could be useful, "Skip stage when" this could be used to skip the registration stage in your case. This when rule could check the database(Data-Admin-Operator-ID) table if the operator entered already exists or not. If it exists, "OperatorExists" When rule should return true and this stage will be skipped.
Also, you could additionally check the "Set entry validation" according to your business logic.
Adding an alternate stage
Hello Vineeth,
Thanks for posting on PSC!!!
You need to have an alternate stage, Configure "Registration Stage" with a condition configured in the right-hand panel of Case type rule. Refer below,
There are two conditions which could be useful, "Skip stage when" this could be used to skip the registration stage in your case. This when rule could check the database(Data-Admin-Operator-ID) table if the operator entered already exists or not. If it exists, "OperatorExists" When rule should return true and this stage will be skipped.
Also, you could additionally check the "Set entry validation" according to your business logic.
Adding an alternate stage
Unlike primary stages, which are intended to be run for most – if not all – cases that are defined by a case type, alternate stages allow you to group exception actions or "ad hoc" steps. To add an alternate stage, click the Actions menu on the Case Type form and click Configure Alternate Stages. Alternate stages appear below the primary stages, and are indicated with a gold background, rather than a blue background.
Alternate stage for a case type, in this example, for a rejection
Alternate stage for a case type, as indicated by the gold background for the stage label
When considering the use of an alternate stage, keep the following points in mind:
Alternate stages do not support automatic transitions. To exit an alternate stage, you must configure a controlled transition.
Alternate stages should not be used in place of a child case.
An alternate stage can represent either an exception path or a primary stage that does not occur at a defined point in the overall case life cycle.
Refer for detailed configuration with the example: Configuring stages in application
Hope it helps, kindly notify if it does by marking this post as answered/helpful for larger Pega audience.
Regards,
Asif
-
Vineeth Yerramsetti
CollabPartnerz
IN
You can use Skipstage when condition.
CollabPartnerz
IN
In Case type rule at stage level you can you use skipwhen option there you can use your own when condition to skip that stage.
K L University
IN
Yes I used when rule to skip a stage in the 2 stage but in this stage there is a spin off case New register it should not get created ,but in the background it is getting created .How to resolve this problem ?When the stage is getting skipped how a step in the stage is getting executed?
-
Sal Marullo Shrikanth Nekkanti Michael Kurtz
EvonSys India Pvt Ltd
AU
Hi Vineeth
For your requirement implemented as above but one thing, I want add here, most of pega application were used for an internal business process where the user already having the login credentials. if not so someone will generate and route to them. In another scenario especially If your considering regular website where you need to give user form and back end by using some pega service It will create operatorid to user and then log in and proceed with regular case life cycle.
-
Vineeth Yerramsetti