in flow designer, once all the tasks are closedcomplete then RIM state should change to fulfilled

Purushotham Ga2
Tera Contributor

HI Experts,

 

in flow designer, once all the tasks are closedcomplete then RIM state should change to fulfilled. could you please assist me step by step.

4 REPLIES 4

SAI VENKATESH
Tera Sage
Tera Sage

Hi @Purushotham Ga2 

 

As per your image, adding the following step after 9 step in new action (not in the do the following in the parallel action)

SAIVENKATESH_0-1734802191522.png

 

Thanks and Regards

Sai Venkatesh

 

Purushotham Ga2
Tera Contributor

HI Sai,

thanks for the update

is there any validation script/flow from like wait for condition in workflow

 

Wait for all tasks closed :

___________________________

 

// Set the variable 'answer' to true or false to indicate if the condition has been met or not
var gr=new GlideRecord('sc_task');
gr.addEncodedQuery('request_item='+current.sys_id);
gr.query();
var all_tsk=gr.getRowCount();
gs.log('count is'+all_tsk);
var gr1=new GlideRecord('sc_task');
gr1.addQuery('request_item', current.sys_id);
gr1.addEncodedQuery('stateIN3,4,16');
gr1.query();
var clsd_tsk=gr1.getRowCount();
gs.log('count of closed task'+clsd_tsk);

if(all_tsk==clsd_tsk){
answer = true;
}
 
please assist me

Hi @Purushotham Ga2 

 

When you are using the create catalog task action, there will be a wait check box that means the flow will wait until the task is complete, then it will go to the next task.

 

SAIVENKATESH_0-1734814208586.png

Thanks and Regards

Sai Venkatesh

 

Runjay Patel
Giga Sage

Hi @Purushotham Ga2 ,

 

The ideal scenario should be state should be closed and stage marked as fulfilled.

at the end just add stage as fulfilled.