cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate Process Diagram to view in JSP

raveera
Champ in-the-making
Champ in-the-making
I Want show the relevant process diagram to the user in JSP view

repositoryService=processEngine.getRepositoryService();
InputStream is=repositoryService.getProcessDiagram("processID");


I used these code snippet, but don't know how to convert this input stream to a image at the JSP page. Is there any built in method.
Please can anyone point out some good resources.

Also I have seen that in activity explorer current position(process) where the workflow now is will be highlighted in the process diagram. Can we do something similar by using activiti api.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
The image question is basic jsp/servlets question, this is not Activiti related.
Any google query gets you going with it … eg my first hit: http://stackoverflow.com/questions/1232591/displaying-image-in-html-and-jsp-code

> Also I have seen that in activity explorer current position(process) where the workflow now is will be highlighted in the process diagram

This is done by the ProcessDiagramGenerator class.