05-09-2018 06:59 AM
Hey,
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?
05-09-2018 07:37 AM
Without looking into the attached example:
Please take a look into Post Actions with custom condition.
05-09-2018 08:10 AM
I need the expression for this... the different ways to do this are totaly clear, but not the right expression
05-09-2018 08:11 AM
Simply select <Cleanup> from the dropdown.
05-09-2018 08:26 AM
but I won't go to cleanup of THIS sequence... the target is the Cleanup from the calling sequence!
05-09-2018 09:59 AM - edited 05-09-2018 09:59 AM
Use the same post action for the sequence call step.
05-13-2018 11:28 PM - edited 05-13-2018 11:45 PM
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)
Thx
05-16-2018 01:34 AM
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.
05-16-2018 11:49 PM
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.