cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a graph

newbie374
Champ in-the-making
Champ in-the-making
Hi,

I created a process with Activiti and now i want to get all the steps (tasks) to show its progression by building a Swing graph. Is it possible to get all tasks ? How ?
(I saw a few topics talking about this but i didn't understand)


Thank you
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Use the repositoryService:


**
   * Returns the {@link BpmnModel} corresponding with the process definition with
   * the provided process definition id. The {@link BpmnModel} is a pojo versions
   * of the BPMN 2.0 xml and can be used to introspect the process definition
   * using regular Java.
   */
  BpmnModel getBpmnModel(String processDefinitionId);
[code]

With some looping over the flow-elements in the Model, you can generate a graph for any process-definition.