Create Custom BpmnModelElementInstance

Hi Experts,

I’m planning to add custom elements to capture addition data in User Task definition.

ex:    
<customNameSpace:taskConfiguration>
   <customNameSpace:notificationConfiguration isEnabled="true">
     <customNameSpace:onAssign>>AssignMustacheTemplate.tmpl</customNameSpace:onAssign>
   </customNameSpace:notificationConfiguration>
 </customNameSpace:taskConfiguration>

So I want to create TaskConfiguration & NotificationConfiguration as BpmnModelElementInstance Elements and register these elements with Camunda engine. So that at runtime I can extract this information using execution.getBpmnModelElementInstance().getChildElementsByType(TaskConfiguration.class).

So any pointer to an example will be a great help.

Thanks,
Suhas.

Hi,

Any solution or pointers?

Best regards,
Suhas

Hi Suhas,
You can add custom extension elements to the model but you need to access them as element extensions. For more information see:

https://docs.camunda.org/manual/latest/user-guide/model-api/bpmn-model-api/extension-elements/

Joe