05-07-2013 11:09 AM
05-08-2013 03:47 AM
05-08-2013 06:44 AM
05-08-2013 06:59 AM
05-09-2013 04:36 AM
05-13-2013 04:04 AM
ProcessDefinitionEntity pde = (ProcessDefinitionEntity) ((RepositoryServiceImpl)
ActivitiUtil.getRepositoryService()).getDeployedProcessDefinition(pi.getProcessDefinitionId());
if (pde != null && pde.isGraphicalNotationDefined()) {
BpmnModel bpmnModel = ActivitiUtil.getRepositoryService().getBpmnModel(pde.getId());
InputStream resource = ProcessDiagramGenerator.generateDiagram(bpmnModel, "png", ActivitiUtil.getRuntimeService().getActiveActivityIds(processInstanceId));
InputRepresentation output = new InputRepresentation(resource, MediaType.IMAGE_PNG);
return output;
} else {
throw new ActivitiException("Process instance with id " + processInstanceId + " has no graphic description");
}
[code]
08-05-2015 07:48 PM
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.