Handle Multiple Tasks in a single job

I have a file with multiple users that a task needs to be created for each user. The number of users is dynamic.

I want to create one task per user to fill a form and submit it but I don’t want to put the activity “Wait for Form Task and Resume” in a for each loop, because one user can submit the form earlier than another user and I want to process each task separately.

I’m not sure how and when to use Wait for Form Task and Resume activity.

Any Advise?

@andreas.theodoridis

use wait inside parallel for each

then for any form submitted it would resume

cheers

Greetings,

Yes the issue here i dont have a specific number of owners to use the parallel for each so that is not going to work for me.

I want to etarate to each user but they come in an excel file and the number of users is not standard.

@andreas.theodoridis

Yes read the excel and pass the datatable in parallel for each…what is the problem in it?

cheers

Hello,

I tried a different approach and it worked for me.

I created two processes, a Dispatser and a Performer, so the Dispatser is reading the file and filtering the rows per Owner that I wanted and for each User I used a start job activity to trigger the Performer process to create a task in Action Center for each User.

So if i have 10 Users, it create 10 jobs, one per user.

Thank you for your input.

1 Like