06-28-2016 05:48 AM
ProcessInstanceHighlightsResource
class (ps: in the org.activiti.rest.diagram.services
package.) has that code snippet:
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(processInstanceId).singleResult();
ProcessDefinitionEntity processDefinition = (ProcessDefinitionEntity) repositoryService.getProcessDefinition(processInstance.getProcessDefinitionId());
NullPointException
because the processInstance = null
.
if (processInstance == null) {
HistoricProcessInstance historicProcessInstance = historyService.createHistoricProcessInstanceQuery()
.processInstanceId(processInstanceId).singleResult();
ProcessDefinitionEntity processDefinition = (ProcessDefinitionEntity) repositoryService
.getProcessDefinition(historicProcessInstance.getProcessDefinitionId());
responseJSON.put("processDefinitionId", historicProcessInstance.getProcessDefinitionId());
highLightedActivities = Collections.emptyList();
highLightedFlows = getHighLightedFlows(processDefinition, processInstanceId);
} else {//TODO
}
06-29-2016 05:20 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.