Need help with Join activity workflow for parallel tasks

lisaO
Giga Contributor

Hi all,

I need some help here. I created a catalog item with the intention of achieving the below:

1) Requester submits a request

2) Request goes to approval, depending on type of request

3) Respective fulfiller picks the task and identify whether need to trigger subtasks to another group of fulfiller

4) They can choose not to trigger any subtask, OR trigger 1 subtask OR trigger 2 subtasks. The subtasks will run in parallel and I put in  Join workflow to wait for all subtasks to complete before continuing.

5) Once all subtasks are completed, another group of fulfiller will perform a last action before the flow is completed

This is how my workflow looks like. Somehow when the flow reaches the Join activity, it always go through Incomplete flow although I have completed all my subtasks. When I closed my 2nd subtask, it straight away close all my request as Request Incomplete and there is a message saying 1 workflow is cancelled.

Not sure what have I missed out? Appreciate your help here. Thanks!

Lisa

4 REPLIES 4

Allen Andreas
Administrator
Administrator

Hello,

Image isn't showing, please reattach.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi Allen,

I am attaching the screenshot here. From the screenshot, it looks like although I have completed both tasks, at the Join activity, it goes to Incomplete state. Within Incomplete stage, the condition is set to activity.result == 'incomplete'.

Not sure what am I missing?

lisaO
Giga Contributor

I came across this article about join activity - https://www.servicenowguru.com/graphical-workflow/workflow-join-activity/

It says if there is an If statement, only 1 path will actually run, so the Join will always exit as Incomplete although I have completed all tasks. 

Any suggestion on how to overcome this with my scenario?

For anyone that should come across this, there is a working solution at the link below. Just create log message activity and point both the task and "no" of the condition to the log message. Then point the log message at the join.

 

https://www.servicenow.com/community/now-platform-forum/closed-incomplete-when-tasked-is-not-created...