09-01-2015 10:25 AM
List<HistoricProcessInstance> historicProcessInstanceList = historyService.createHistoricProcessInstanceQuery().processDefinitionKey("websalesWorkflow") .variableValueEquals("username", execute.getVariable("customer")) .orderByProcessInstanceEndTime().desc() .list();
HistoricProcessInstance lastWebsalesWorkflow = (HistoricProcessInstance)historicProcessInstanceList.get(0);
System.out.println("Last End Event" + lastWebsalesWorkflow.getEndActivityId());
09-08-2015 06:05 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.