cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow progress graphic?

frecklefoot
Champ in-the-making
Champ in-the-making
jBPM5 has a nifty feature where you can see a workflow in progress and it will show you a graphic of the workflow and show you what node (or nodes) the workflow is on. I know Activiti can show you which workflows are in progress, but I haven't seen a graphical feature like this. Does Activiti have this feature, and, if not, is it a planned feature for sometime in the future?

Thanks in advance!
4 REPLIES 4

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Yes, Activiti has the same.

workflowuser
Champ in-the-making
Champ in-the-making
Yes, Activiti has the same.
I was interested to know about this utility too. Could you point to the documentation or how to launch the utility?

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
there is no 'utility' it's in the Activiti Explorer

gant
Champ in-the-making
Champ in-the-making
Hi,

Ready to use it in a Primefaces <p:graphicImage />:


public StreamedContent getProcessImage() {

  String processDefinitionId = taskService.createTaskQuery().taskId(getCurrentTaskId()).singleResult()
    .getProcessDefinitionId();
  String processInstanceId = taskService.createTaskQuery().taskId(getCurrentTaskId()).singleResult()
    .getProcessInstanceId();

  ProcessDefinitionEntity processDefinitionEntity = (ProcessDefinitionEntity) ((RepositoryServiceImpl) repositoryService)
    .getDeployedProcessDefinition(processDefinitionId);

  InputStream imageStream = ProcessDiagramGenerator.generateDiagram(processDefinitionEntity, "png",
    runtimeService.getActiveActivityIds(processInstanceId));

  return new DefaultStreamedContent(imageStream, "image/png");

}

Regards,
michael