Custom Configurations in Workflow Task

I have a custom configuration at the beginning of a HTTP task (sn-prod-inc-creation). The condition is:
{{ result(“parse_entity_tags”).prime_alert_type == ‘inc’ }} and validates as ‘true’ in the “preview”.

The result is from a javascript task and the HTTP task waits for the javascript task to complete before it is run.

However, when I run the workflow I get the following error:

Unhandled failed task(s) during workflow execution:

sn-prod-inc-creation:
Error evaluating custom condition. Undefined variables: prime_alert_type.

Hi jbone!

Can you please send a screenshot of the JavaScript task Result tab?

The best approach is the following syntax:

{{result("run_javascript_1")["boolean"] == True}}

I have workflow , having task1 as dql task that provides app_id in its output.
task 1 has output like this,
[
{
“app_id”: “sample_app_1”
}
]

i want to write condition for the task 2 , if previous task has value for app_id then only run task2

How Can I write that condition?

Hi Heramb,

in the step afterwards, you can have a condition for the result such as this:

{{result("task_1")["app_id"] == "sample_app"}}

And you’d put it in the task 2 in the condition on the right side:

Let me know if you can get it working or if you have issues with it.