Update extension element attributes from JAVA code

{Camunda: multi-tenancy-shared-defination}

Hi,

Can we update bpmn.xml extension element attributes from camunda process variables in java.

I have created following bpmn.xml associated to service task. Can we update the dynamic value from process variables into the xml.

bpmn2:serviceTask id=“ServiceTask_2”
bpmn2:extensionElements
camunda:properties
camunda:property id=“property1” value="${text2}" name="${text1}"
/camunda:properties
camunda:field name=“text1”
camunda:string>String</camunda:string
camunda:expression>${text1}</camunda:expression
/camunda:field
camunda:field name=“text2”
camunda:string>String</camunda:string
camunda:expression>${text2}</camunda:expression
/camunda:field
/bpmn2:extensionElements
</bpmn2:serviceTask>

Kindly help, if there any process to create modification in the bpmn.xml.

Hi @Karandeep_Singh,

Could you please elaborate your use case a bit more in detail?

Cheers,
Roman