/* Get task assigned to queues */
Collection<BpmTask> queueTasks = getProcessTaskInQueues(ctx, processInstance);
for(BpmTask queueTask: queueTasks)
{
MutableBpmTask mutableTask = new MutableBpmTask(queueTask);
mutableTask.setAssignee(task.getAssignee());
mutableTask.setProcessInstance(processInstance);
/* Inform queue manager about task assigne */
ctx.getUserProcessQueueManager().onQueueAssigne(mutableTask);
}
MutableBpmTask mutableTask = new MutableBpmTask(task);
mutableTask.setFinished(true);
mutableTask.setProcessInstance(processInstance);
userTask = mutableTask;
}
broadcastEvent(ctx, new ViewEvent(ViewEvent.Type.ACTION_COMPLETE));