07-01-2011 04:01 PM
Caused by: java.lang.NullPointerException
at org.activiti.engine.impl.persistence.entity.TaskEntity.getIdentityLinks(TaskEntity.java:339)
at org.activiti.engine.impl.persistence.entity.TaskEntity.getCandidates(TaskEntity.java:281)
Task t = engine.getTaskService()
.createTaskQuery()
.taskId(id).singleResult();
String names = assignee(t);
String assignee(Task task) {
String assignee = task.getAssignee();
if (assignee != null)
return user(assignee);
if (!(task instanceof TaskEntity))
return null;
List<String> candidates = new ArrayList<String>();
for (IdentityLink c : ((TaskEntity) task).getCandidates()) {
if (c.getGroupId() != null)
candidates.add(group(c.getGroupId()));
else if (c.getUserId() != null)
candidates.add(user(c.getUserId()));
}
return join(candidates.toArray(strings), ", ");
}
Activiti v5.6.07-04-2011 03:26 AM
07-04-2011 06:27 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.