12-05-2018 05:43 AM - edited 12-05-2018 05:46 AM
Hi,
I found a way how to get the termination state during an execution (RunState.Execution.GetStates()).
Nice to know. But it is per execution, so if a wrapper calls another Sequence "as a new execution", the termination state inside
the new sequence is different than outside (in the wrapper).
I know that there is the run state which is available also for a previous step (and from inside of a new execution):
RunState.PreviousStep.Result.Status
But is there something similar also for the termination state (I could not find it)?
Thanks a lot.
Best Regards
Matthias
12-05-2018 06:14 AM
Hi,
I found a kind of workaround for that problem:
Inside of the cleanup phase of the inner sequence write a stationGlobal variable with the result of the RunState.Execution.GetStatus() call.
This variable is accessible also in the wrapper (calling execution).
Caution: the variable is not resettet between runs, so cleanup is needed....
I do not like those workarounds, but passing parameters out of new executions with the use of Process Modells does not work (at least in TS2016).
Best regards
Matthias