Parallel flow -> multiple Approval Activity skipping

bryanjurgensmey
Kilo Contributor

Here's my use case:

When a new record is added to pc_software_cat_item run an Approval Activity for each Company using our instance.   If approved the item is added to their employee user criteria so that it becomes available in Portal.   Each company can choose to approve or deny and they're independent of each other.

The issue:

I can create ~20 stand-alone workflows (1 per company) and it works, however, ideally this would be dynamic and just need 1 workflow that accepts param's for the approval group and user criteria record.  

This seemed like a good use case for Parallel Flow so I created a workflow (New Catalog Item Approval - Parent) that runs a Parallel Flow Launcher for my approval workflow (New Catalog Item Approval).   I'm triggering this with an on-after business rule and passing an input with the array containing an approval group and the user criteria record from the parent workflow to the approval workflow.   This works and the inputs are correctly passed, however, only 1 instance of the approval activity will hold 'executing' and the rest just skip (attached).   The skipped workflows are receiving correct inputs.

I added the timer, which does seem to occasionally allow more than 1 flow to stay executing but I have no idea why that helps.

Any idea's why this is failing?

19 REPLIES 19

1. No they reference the workflow context table [wf_context], sorry if it was not explicit

2. Yes, that script include is used by both since Catalog Task is actually extending the Create Task activity

Thank you for the clarifications!

Hi Laurent,

This doesn't seem to be working at all...

After completing the 1st Catalog Task in the top level workflow, the 2nd task and all subsequent tasks are not generated (at least they don't show up on the Requested Item form on the Tasks related list and the workflow jumps to the Parallel Flow Launcher activity. The same thing happens in the sub-workflow called by the Parallel Flow Launcher activity. Only the 1st task is generated all others are just skipped.

Any thoughts on what I might still be missing?

 

Something about this customization breaks all workflows in our instance. Only the 1st Approval and 1st Task are generated, all other Catalog Task and Approval activities are skipped. Run Scripts are still executing as they are intended.

Hi Kent, could you reply with a copy-paste of your full script include "WFCreateTaskActivityUtils"?

From my end I've done regression testing and we use ATF a lot and I haven't seen any issue with a sequence of tasks / approvals.

I'm asking for create task only to focus on only one of the two since it is probably the same issue with the approvals.