AnsweredAssumed Answered

DelegateTask through TaskService

Question asked by dharmesh on Sep 19, 2014
Latest reply on Oct 17, 2014 by trademak
Hi,

I need permissions stored in XML as activiti:candidateGroup into my code.

Task task = taskService.createTaskQuery().processInstanceId(processInstanceId).taskDefinitionKey(taskId).singleResult();
String permissionName = ((DelegateTask)task).getCandidates().iterator().next().getGroupId();

Above throws NullPointer at getIdentityLinks in TaskEntity.

java.lang.NullPointerException
   at org.activiti.engine.impl.persistence.entity.TaskEntity.getIdentityLinks(TaskEntity.java:449)
   at org.activiti.engine.impl.persistence.entity.TaskEntity.getCandidates(TaskEntity.java:391)

Thanks

Outcomes