Iterating Over User Dynamic List

It's been a while since I've asked an actual workflow question, but I would like to get some opinions on how other people approach this basic requirement. I already have a functional workflow, I just want to see what others would do in this scenario.

 

Let's say we have a workflow task called "Message" that needs to go to multiple users. The user simply opens the view, makes changes, and closes the view. The stage has a dismiss button which drops the workflow to archive. One user's dismissal does not dismiss the tasks from the other users.

 

The users are determined by a dynamic method call to a web service using an id parameter.

Each user is assigned a different role.

 

To summarize in pseudo:

 

UserList = GetUsersFrom3Roles(int id)

FOREACH user in UserList CREATE task for user

 

I'm doing something like the pseudo above, but a bit more abstracted. I don't want to reveal my exact implementation to avoid skewing responses. I'm not looking for 3 flag actions called for 3 different workflow paths with 3 different roles assigned to them. I'm trying to avoid duplication of workflow.

 

thanks,

 

...aaron

Tagged: