Yes, you are correct. But say I have steps 2.3 and 2.4. Now once step 2.3 has been executed, i want to exit the iteration(using the transition). Since that is not available, I'll have to set a pre-condition in step 2.4 to exit iteration. I hope I'm clear with my point.
Mmm, interesting point, I never had to do any similar functionality and as such only just noticed. I suppose then you have no other choice but to configure a When Condition on the following step to skip that step. I see this can be a hassle if there are multiple steps after the step that should terminate the iteration. Maybe this is something Pega could look into implementing.
Posted: 5 years ago
Updated: 5 years ago
Posted: 17 Feb 2016 4:48 EST Updated: 19 Feb 2016 2:36 EST
I just tried to select the Jump to Later Step option of the Jump and I gave it a Label corresponding to a previous step. It did not throw an error and I was able to save. I haven't tested it functionally to know if it actually works or not. Have you tried such a scenario?
In Pega 7.1.9 , I have used a label jump for a similar scenario which refers to the previous step label. It works perfectly. I wondered why there is no "Exit Iteration" at Jump. As, that is the exact scenario I used the label jump for.
If within-loop post conditions allow jumping back and not-within-loop post conditions only allow jumping forward, I wonder how the name space of tags is handled. For jumping forward, it’s clear what to do about multiple tags of the same name (you just jump forward to the nearest one of that name). But what happens when the same tag appears in a loop and outside the loop ?
By the way, if any of what you are observing is disagreeing with documentation, or the documentation is lacking, please report it so we remember to fix it. Let me know if the reporting mechanism is not clear, and I will find out what it is.
I'm using 7.1.6, and the activity throws an error when I try to use same label for two different steps (no matter if they are within a loop or outside). I remember that this used to be a warning and not an error in PRPC 6.2.
This record has 1 error
This activity contains duplicate label names [AB]. Only the first matching label following a Jump will be used.
Also, in documentation I can only find that jump is allowed only to a higher numbered steps. No where it is mentioned that we can jump to a lower numbered step.