cancel
Showing results for 
Search instead for 
Did you mean: 

Custom XML-Data Objects

cocojack42
Champ in-the-making
Champ in-the-making
I've searched for a method to add Data to my process.
There are several questions, asking to add custom data object, such as an xml type, to the explorer/engin.
For example this post back in 2013 http://forums.activiti.org/content/support-declaring-dataobjects-bpmn-xml-default-values
But this post never got an answer.

My question now is, how do I add a complex data object to my BPMN Process ( i need it for configuration ).
I'm using the Activiti-Explorer, so it needs to be changeable without the need of engin-restart.

I've noticed, that the the function org.activiti.bpmn.converter.BpmnXMLConverter #addConverter() is now public, so is this the best way to add a data object type?

Are there examples of custom data objects?

1 REPLY 1

jbarrez
Star Contributor
Star Contributor
You will need to implement the org.activiti.engine.impl.variable.VariableType interface and register it with the process engine. All the current supported variable types are implemented that way, so they should give you a good way to get going.

> I'm using the Activiti-Explorer, so it needs to be changeable without the need of engin-restart.

What do you mean by this? You will need config changes - which needs a restart.

> I've noticed, that the the function org.activiti.bpmn.converter.BpmnXMLConverter #addConverter() is now public, so is this the best way to add a data object type?


No, this is the class that converts the BPMN 2.0 xml to Java.