Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: feanor0Hi
I'd like to be able to control which part of a graph runs given some
runtime condition. For example, let's say I have a split-node with outputs True and False, and True goes to do some computation (X), and False goes to do some computation (Y). The results of X and Y are concatenated at Z.
Computation Y is complicated enough that even if the number of records at False is zero, it takes a long while to run through. So I'd like to somehow be able to disable computation Y and pipe the 0-record output from False directly to the concatenation at Z. If not, the concatenation at Z will not complete because it will be waiting for all its inputs to be satisfied.
I thought I could use a Meta Check node and set minimum records to 1. This works to disable computation Y when there are no outputs at False. But I can't figure out how to still connect up to the concatenation at Z.
Please see attached graph.
Furthermore, in general, I'd like the runtime condition to be some expression rather than just a record count. Is this doable?
Thanks,
Attachments:
runtime path select.brg