I am working on a project where I want to have a user go through several steps in a workflow process, and at a certain point in the process, assign a number of parallel user tasks. I’d like to have each task represented by its own called BPMN so that I may re-use the same tasks across other workflow possibilities. I know that I can call specific BPMNs dynamically, but what I want to be able to do is to call a number of specific BPMNs that each carry their own tasks that can be done in parallel.
The only way I’ve found to do this is to create BPMNs for every possible task combination I have, which is pretty cumbersome. My ideal would be that, if I have BPMNs X, Y and Z, that based upon the user’s workflow responses up until that point, we assign any combination of X, Y and Z to them.
Can the below work, or is it bad practice?
In reading the docs, I know that I can modify a running process instance and remove/delete specific tasks from a workflow before the user encounters them in the workflow…so I had the thought that I could have ALL of my possible tasks in the workflow, with the default assumption that they will ALL be assigned to the user when their running instance reaches that point in the flow, but based upon certain variables at that point, I remove a number of the tasks.
Is this sloppy, or a bad pattern to try to make work? Any help would be great…thanks!