JBoss Community

Visualize workflow and it's current state

reply from HuiSheng Xu in jBPM - View the full discussion

Hi Eugene,

 

First you could get process picture from repostitoryService.

 

 

            String imageName = processDefinition.getImageResourceName();
 
            InputStream imageInputStream = repositoryService
                .getResourceAsStream(processDefinition.getDeploymentId(),
                    imageName);

 

 

Second you could get activityCoordinates from repositoryService.

 

 

ActivityCoordinates ac = repositoryService
                .getActivityCoordinates(processDefinitionId, activityName);

Reply to this message by going to Community

Start a new discussion in jBPM at Community