Activiti 5.6The process was fetched using the ExecutionQuery:
…
RuntimeService Execution execution = executionService.createExecutionQuery().processInstanceId(processID).singleResult();
((ExecutionEntity)execution).end();
…
The result of the call to end() was NPE. Stack is listed below:
java.lang.NullPointerException
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:481)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.end(ExecutionEntity.java:299)
I used one of the processes provided in the activiti test suite
..modules\activiti-engine\src\test\resources\org\activiti\examples\bpmn\usertask\taskassignee\TaskAssigneeTest.testTaskAssignee.bpmn20.xml
best regards!