01-08-2016 01:57 PM
ProcessDefinitionEntity processDefinition =
(ProcessDefinitionEntity) ((RepositoryServiceImpl) repositoryService).getDeployedProcessDefinition(processInstance.getProcessDefinitionId());
if (processDefinition != null) {
for (ActivityImpl activity : processDefinition.getActivities()) {
String type = (String) activity.getProperty("type");
String name = (String) activity.getProperty("name");
String taskId = activity.getId();
System.out.println("type: "+type+" name: "+name + " id: " + taskId);
}
}
01-08-2016 05:08 PM
01-10-2016 09:18 PM