How to create a Sequence that always returns success and stops when the first child returns failure? #449
Unanswered
seantcanavan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys! Very new here but have been spending the last two days steeped in this library but I can't figure this one out. I want specific child steps to show
[X]in thepost_tick_handlerprint so I know there was nothing to do in that step don't want thoseStatus.FAILUREvalues to cascade up the tree.I ended up overriding the
Sequenceclass with a customtickmethod:but this feels like a ton of work, probably has bugs in it, and would be out of date when the library version gets bumped and potentially new functionality is added to Sequences.
here's the output I have now which I really like:
You can see that I have blocked sub-seq 1 task 3 from even executing. I like the idea of cutting off entire branches of the logic during execution to keep bugs down. It also lets me know at a very high level, instantly, that sub-seq 1 task 2's conditions were not met (aka nothing to do) and 3 did not fire at all.
I tried everything I can think of including Parallel with a SuccessOnSome policy but that isn't working for me either unfortunately.
Beta Was this translation helpful? Give feedback.
All reactions