How to get a graph
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2013 08:28 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2013 04:46 AM
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.
