Custom XML-Data Objects
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2014 02:35 AM
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?
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?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2014 01:59 PM
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.
> 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.
