Delivery task is not triggered even though workflow is working.

ND7
Kilo Sage

Dear Experts, 

 

I have a catalog item called Miscellaneous: 

 

The issue is that the delivery task is not always triggered by the workflow, even though it is using the same workflow for every order. This causes some tickets to remain open even though the workflow shows that they are completed.  

Sometimes workflow is completed as seen "close by" with the technician name, and sometimes workflow is not triggered so the close by remains empty., because the workflow was not triggered. Not sure what is causing this. Please Help. 

ND7_0-1685033332064.png

 

same workflow, but different results. 

 

ND7_1-1685033412003.png

 

Thank you, appreciated. 

 

1 ACCEPTED SOLUTION

Steven Parker
Giga Sage

Has the "Wait for completion" been unchecked from the Delivery task?  It's possible the workflow is reaching the end prior to all task being closed.

 

We end ALL of our workflows the same way...with a script that checks and waits for any open tasks to close and then the workflow moves forward once all tasks are closed and the workflow then closes.

StevenParker_1-1685034009966.png

 

 

This is the Wait For Condition script:

 

 

var g= new GlideRecord('sc_task');
g.addQuery("request_item",current.sys_id);
g.addQuery("active",true);
g.query();
if(g.next())
	{
		answer=false;
	}else{
        answer=true;
    }

 

 


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

View solution in original post

5 REPLIES 5

On the Fulfillment Task, is the "Wait for completion" checkbox checked?

StevenParker_0-1685040586317.png

 


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven