AnsweredAssumed Answered

split array into multiple tasks

Question asked by Jeremy Schmidt on Apr 22, 2011

I have a task that runs on a workflow transition in EPDM.  As far as I can tell, if multiple files are sent through the transition at the same time, only one task is executed.  I am able to handle all of the documents in the array, but I would prefer to split this into one task per file for easier error handling and notification processes.  For example, if there is a failure for 1 document, but the other 2 pass, I don't want to show an error for the total process, just the one that failed.  I tried setting up a loop where I close the task and then start a new one, but each time I create the IEdmTaskInstance, it is given the same ID as the previous task.  Is there a way to programmatically start a new task?  Am I asking for too much, or is this possible and I'm just now seeing how to do it?