return getTasksForExample(example);
}
@Override
public synchronized void finishTask(Task task) throws WorkflowException {
InternalWorkflowEvent finishedEvent = new InternalWorkflowEvent(task);
Task t = Task.createTaskWithAllValuesSetToNull();
t.setTaskId(task.getTaskId());
List<Task> old = getTasksForExample(t);
if (old.size() > 0) {
try {