AnsweredAssumed Answered

complete the task at once after it created

Question asked by woodfox on Sep 10, 2014
Latest reply on Sep 10, 2014 by woodfox
so, my requirement is :

we are using many multi instance human task to create task instance dynamically and we have a custom subclass of ParallelMultiInstanceBehavior to call a userhandler for retrieving the assignees from our database to Collection property before task user assignment, it works fine in this way.

however, in some cases, our  userhandler may found no man for the task node, in this case,  we hope :

1, don't create any task instance so we can just skip the task node, and to the next node.

or 2, we can still create only one task instance with an assignee : "SKIP" or "AUTO", and then complete it at once.

we have no idea for first way so we just using the second way, the problem is :

when can we complete the task just created ?    I have tried to complete it in activitieventListener at "TASK_CREATED" event, however it will cause the task data corrupted, so we have to use a time scheduler to do this behavior for now,

we still hope there is a event point so that we can use it to complete the task.

any suggestion ? thanks !