cancel
Showing results for 
Search instead for 
Did you mean: 

Parse BPMN XML and get the Required attribute Value

chandanmb1
Champ on-the-rise
Champ on-the-rise
Hello,

I am designing a BPMN process and inserting it to Activiti DB.
Process XML contains multiple UserTasks


  <bpmn2:userTask id="WF12345001" name="JIRA">
      <bpmn2:incoming>SequenceFlow_08yji0e</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_1bptsxy</bpmn2:outgoing>
    </bpmn2:userTask>


When i get to know the first activiti as Jira from ACT_RU_TASK table, i need to get the correspoding ID present in the XML not the ID which is generated in TASK table.

Is there any parsing available ? Or how to get the id of UserTask present in XML ?
In this case, i need to get this ID -WF12345001

Regards,
Chandan
2 REPLIES 2

warper
Star Contributor
Star Contributor
Hi Chandan!
Have you tried ACT_RU_TASK.TASK_DEF_KEY_?

chandanmb1
Champ on-the-rise
Champ on-the-rise
Hello Warper,
Thanks!!