Tasks are closed incomplete in workflow

Pintu2
Tera Expert

Tasks are closed Incomplete as soon they are created from workflow.

I have a requirement to close RITM manually by the user and here I have 3 automated tasks.

Here is the scenario : I have 3 check boxes,if Check box 1 is selected,it should trigger Task A, If user selects Check box 2 then it should trigger Task B and similarly if Check box 3 is selected Task C should be triggered.Once all these tasks are closed the requirement is RITM should remain in Work In Progress and should have capability of creating manual tasks and once all tasks are closed then user will select RITM state drop down to Closed Complete manually.So for this i made set state to WIP in workflow at end but the tasks are creating in Closed Incomplete state and workflow is getting cancelled not sure.

Please find the attached workflow.

1 ACCEPTED SOLUTION

Apeksha Joshi
Kilo Guru

Hi Pintu ,

 

you just need to add wait for condition in workflow after set Value activity , In the wait for condition select the condition as 'state is Closed Complete' . 

so this workflow will wait till the user sets the RITM to closed complete and will not instantly complete the workflow . 

 

Regards,

Apeksha

View solution in original post

9 REPLIES 9

welcome !

I have a concern here, the condition you mentioned is holding the workflow until RITM is closed manually but End activity is getting cancelled even though i select one check or two check boxes or 3 or none. It is setting to Cancelled in workflow.Please suggest.

Hi,

Since you will be having manual tasks.

You should use after update BR on sc_task so that when manual tasks are closed RITM should be closed

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

thanks ankur for the response.

RITM should be closed manually as well.So the workflow is waiting untill user closes ritm manually but in the end activity it is setting to  cancelled even though ritm closed by selecting closed complete dropdown.

Hi,

please redirect all your 'if' condition 'no' nodes to your join activity

 

Regards,

Apeksha