AnsweredAssumed Answered

ActivitiObjectNotFoundException

Question asked by risto45 on Jul 24, 2014
Latest reply on Jul 25, 2014 by frederikheremans1
I have the following code, which throws "org.activiti.engine.ActivitiObjectNotFoundException: task 1298828 doesn't exist". If taskService.createTaskQuery() returns a task, how can taskService.getVariableLocal() say milliseconds later that such task doesn't exist? Any ideas?

List<Task> tasks = taskService.createTaskQuery().taskAssignee(user.getName()).list();
for (Task task : tasks) {
    notified = (Boolean) taskService.getVariableLocal(task.getId(), "notified");
}

Outcomes