This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

How to test for existence of a task?

Using the with-items pattern in tasks in Orquesta workflow. Sometimes we pass in an empty array to with-items, causing the task to not be created and execution to just move to next task. With size(array) > 0, the task is instantiated in the flow.

  1. How can I later in the workflow test for the existence of that task? I have:
    Jinja: “{% if task(parallel_task_1) %}” - errors out with ‘UndefinedError: ‘parallel_task_1’ is undefined’. Great - I want to test it, not have it blow up my flow.
    YAQL - trying <% not task(parallel)_task_1 %> but that’s not working / not ever evaluating to true.