how to configure wait for condition in flow designer based on state and custom variable value

Harrys09
Tera Contributor

Hi,

i needed some help please as i'm configuring a wait for condition in flow designer where the conditions that must be met are:

  1. variable value is Yes 

Or

2. The state is complete

if one of these conditions are met then the the next catalog task will be created.

 

i have configured this like this so far (see screenshots below):  where i look for the variable from the sc_item_option_mtom (variable ownership) table then i look up the options table to where the sys id of the dependent item of the previous step and then created a wait for condition that waits till the variable value is set to 'Yes' on the catalog task. How could i adapt what i have created so the same wait for condition also works if the state on the catalog task is set to 'closed complete'? Like in first look up action how do I adapt it to also look up the state of the catalog task from the 

 

sc_item_option_mtom table

 

i would really value any help on this. Thank you 

Harrys09_0-1692769389403.png

 

 

 

Harrys09_1-1692769389405.png

 

 

 

Harrys09_2-1692769389684.png

 

 

 

 

Harrys09_3-1692769389414.png

 

Thank you,

Harry

 

6 REPLIES 6

Samaksh Wani
Giga Sage
Giga Sage

Hello @Harrys09 

 

I have attach the image below in this way you can achieve your req.

 

Screenshot 2023-08-23 at 11.33.33 AM.png

 

Consider Configuration Item is your custom variable which you need to set to yes.

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

Hi @Samaksh Wani , Thank you very much for your reply and help!

IMG_2792.jpeg

I have configured the wait for condition as suggested but what I noticed when testing the flow is that the wait for action works fine when I set the state to closed complete but for my custom variable when I set it to ‘Yes’ it takes a very long time to execute like over 1 hour. Do you have any suggestions on what I should do in this please?

Hello @Harrys09 

 

check the operation of field very well on the form.

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

Can you tell me how you managed to get "variables...." in your conditions?  I have struggled with this for a long time and that does not show up as an option for me when selecting my trigger sc_req_item as the record.