I try to jump to the "Cleanup" group of the calling sequence if a simple boolean value is "false", but I can't find the right solution.
In my case, I have a master sequence (test_caller.seq) wich calls another sequence (test_caller_sub.seq). Now, if the boolean value (Locals.gotoNextStep) is false - this will be checked in the Statement-Step of test_caller_sub, the next step must be the Cleanup-Group of the master sequence (test_caller.seq). The qppended code is just a simple example and not the real structure, it just focus my problem.
2 solutions will be possible for my problem:
Is there a simple expression to do this?
Without looking into the attached example:
Please take a look into Post Actions with custom condition.
Simply select <Cleanup> from the dropdown.
Use the same post action for the sequence call step.
Sorry Norbert, I was a little slow last week. The solution is really quite easy and absolutely clear....
but, in my case there are hundrets of calls of this sequence. To change the post action of the calling sequence is in fact simple, but it is the overkill to change this in my case. It is much faster or more effective to add a working jump expression, this I just have to add it in the called sequence (one time).
Or is there a batch-processing to do that changes? (Post-Actions / activate Use Custom Condition / add expression for custom condition / set custom condition for True/False)
If this change affects ALL sequence call steps, i recommend you to do the following:
1. Customize a sequence call step including that post action as custom step type
2. Write a tool which replaces all sequence call steps in your sequences with the new type
I recommend a custom written tool as you can make sure to read out sequence call step configurations and apply it to the replacement step.
I don't match the advantage in my case of a "custom step type". It is hundrets of times the same sequence i have to call and I only want to add a expression wich jump back to the callers "Cleanup" group.
But, I resolved the problem by another way, little effortfull, but working well.
At first I changed the sequence format to ".xml" and then replaced the code (post actions / custom condition) in every calling sequence.
Nevertheless, If anybody know an expression for my wish, I'm very pleased to know it.