cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom Configurations in Workflow Task

jbone128
Newcomer

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.



3 REPLIES 3

haris
Dynatrace Mentor
Dynatrace Mentor

Hi jbone!

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

Screenshot 2025-06-02 at 18.17.59.png

The best approach is the following syntax:

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



Developer Advocate,
Haris Hibic

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:

Screenshot 2025-09-09 at 09.13.45.png

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

Developer Advocate,
Haris Hibic

Featured Posts