wait for condition getting cancelled

deepika46
Tera Contributor

Hello Experts,

 

In my workflow i am using the Wait for Condition. Till the time it is waiting for answer to be true, it is waiting. As soon as the answer becomes TRUE, the Wait for Condition is getting cancelled. Any idea where i am doing wrong or how to debug this.

15 REPLIES 15

Amit Gujarathi
Giga Sage
Giga Sage

HI @deepika46 ,
I trust you are doing fine . 

Try to evaluate the wait for condition for that record from the background script and see whereexactly its breaking.


Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi



when asnswer=truewhen asnswer=truebefore answer=true;before answer=true;

Any way to debug this

Hi @deepika46 ,

 

May I know any specific reason to create task from run script?

 

As OOTB there Create Task activity & catalog task activity present which have an inbuilt wait for condition.

You can use that instead of this run script.

 

Thanks,

Danish

 

it is not cataog task. The main what  i am checking in that run script is that i have one field called status

 

in the wait for condition i am checking if the staus==success||status==failure.{answer=true}

 

By default status is in ready .

 

Till the time the status is in ready the wait for activity is green. As soon as the status becomes faillure , insted of going forward, the activity becomes red.