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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Possibly your workflow is reaching end from one of the Catalog Task path.

Are you having any BR which sets RITM State once all tasks are completed?

Regards
Ankur

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

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Looking at your workflow design, the task being canceled is valid. This is due to the path with the Set Values utility which immediately goes to End. Therefore, other paths will be canceled. So this is completely according to your design.

Consider using a join for example.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

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

Thank You Apesksha. It worked like a charm.