cancel
Showing results for 
Search instead for 
Did you mean: 

Task elements

zze_one
Champ on-the-rise
Champ on-the-rise
Hi there,

Let say I'm working with a workflow that has
- a start event
- 2 user tasks
- a end event

When, or after, deploying the workflow, is there a way to retrieve the task elements  ?
I'm talking about elements as I don't want the task instances.

If not, my guess is that I'll have to parse the bpmn file

Thanks in advance,

Yohann

2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Yohann,


      BpmnModel bpmnModel = repositoryService.getBpmnModel(processDefinitionId);

you can get flow elements from e.g. bpmnModel.getProcess().get(0).getFlowElements()

Regards
Martin

zze_one
Champ on-the-rise
Champ on-the-rise
You guys are the best, thanks Martin