From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-05-2016 08:35 AM
How do I make a failing step go to cleanup in the sequential model using multithreading?
Here is what I'm doing in the main sequence:
step 1
step 2
execute sequence A in new thread
step 3
step 4
step 5
wait for execute sequence A to finish
step 6
...
If step 4 fails, what I think I want is for the threads to synchronize before proceeding to cleanup, otherwise the cleanup steps might impact sequence A's steps.
The "wait for execute sequency A to finish" step can fail, but I think that happens only if one of it's steps fails; step 4 failing won't do it.
Maybe I should insert a custom condition expression in the wait step like
AnyOf(RunState.SequenceFailed, RunState.ErrorReported)
07-06-2016 10:19 AM
Hello stephenb2
I was thinking that, I mean use the RunState then create a custom condition.
That is a good idea
07-06-2016 12:01 PM
That worked, although the expression should have been negated for the execute if false case.
! AnyOf(RunState.SequenceFailed, RunState.ErrorReported)
Thanks. I just was wondering if I had missed a better approach.