07-11-2014 08:44 AM
Hi
I am using nested Sub seqs in my Main Seq.
If an error or Failure Occurs I go to respective callbacks
SequenceFilePostStepFailure SequenceFilePostStepRuntimeError
From here I have to go directly to Main seq Cleanup
If I use
RunState.Caller.RunState.GotoCleanup=True I just go to the Cleanup of the Calling -Sub Seq
how can I acheive this with one statement! & a solution which is also clean !
(Changing the Option for each Sub seq: On step Failure -> i wan t to avoid)
07-14-2014 08:37 AM
I think
RunState.Main.GotoCleanup=True
ought to do what you want?
07-28-2014 12:46 PM
Just trying to understand your use case better. Do you want to skip the cleanup steps of the subsequences? Why?
-Doug
07-29-2014 02:49 AM
thanks Doug,
bcos I dont do any thing in those Subseq cleanups,
well thts also not the issue if the execution pointer jumps from cleanup to cleanup
but if the error occurs in subseq or nested -Sub-seqs the pointer jumps to cleanup of the seq where the error occurs (caller of SequenceFilePostStepRuntimeError) in this callback i am setting (RunState.Caller.RunState.ErrorReported =True)
now I expect tht the error shld run thr the callchain till mainsequence but may be I have to set also some other flag?
well On ru n time Error in Station Options = Ignore buit thts cos I handle the errors in callback.
07-31-2014 04:15 PM - edited 07-31-2014 04:16 PM
I'm still not clear on what you are trying to accomplish. Why is it a problem that all of the cleanups of the subsequences are called? It seems like if there are any steps in those cleanups, they really should get called or it won't cleanup properly, and if there aren't any steps then it's harmless.
-Doug
08-01-2014 02:04 AM
there r no steps in sub seq cleanup
but only in the main seq cleanup
the isuue is i want to jump only thr all cleanups that will make my day
04-05-2018 06:49 AM
Hello Aparab,
I have the same problem like you. Maybe your issue is solved now?
There are 3 Sub-Seq in the Main-Seq. If one step of the first Sub-Seq fails, I want to skip the procedure in this way:
Could you help me?
04-05-2018 07:03 AM
Hello Flobias,
unfortunately I am not able to recollect the solution and I have also changed the company in between.
so cannot give you a specific answer.
regards
Akshay