From 209bdd38a75cd487c741921d30ac17e726a90a43 Mon Sep 17 00:00:00 2001 From: Tijs Rademakers Date: Wed, 19 Mar 2014 11:39:05 +0100 Subject: [PATCH] DataObject documentation --- .../src/en/chapters/ch07b-BPMN-Constructs.xml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/userguide/src/en/chapters/ch07b-BPMN-Constructs.xml b/userguide/src/en/chapters/ch07b-BPMN-Constructs.xml index 9ac9eb5ecc..025f8351e0 100644 --- a/userguide/src/en/chapters/ch07b-BPMN-Constructs.xml +++ b/userguide/src/en/chapters/ch07b-BPMN-Constructs.xml @@ -6159,4 +6159,48 @@ Exactly the same way, the list of groups that is configured as a potential start + +
+ Data objects + + [EXPERIMENTAL] + + + BPMN provides the possibility to define data objects as part of a process or sub process element. According to the BPMN specification it's possible to include complex XML structures + that might be imported from XSD definitions. As a first start to support data objects in Activiti the folowing XSD types are supported: + + + + <dataObject id="dObj1" name="StringTest" itemSubjectRef="xsd:string"/> + + + <dataObject id="dObj2" name="BooleanTest" itemSubjectRef="xsd:boolean"/> + + + <dataObject id="dObj3" name="DateTest" itemSubjectRef="xsd:datetime"/> + + + <dataObject id="dObj4" name="DoubleTest" itemSubjectRef="xsd:double"/> + + + <dataObject id="dObj5" name="IntegerTest" itemSubjectRef="xsd:int"/> + + + <dataObject id="dObj6" name="LongTest" itemSubjectRef="xsd:long"/> + + + + The data object definitions will be automatically converted to process variables using the 'name' attribute value as the name for the new variable. + In addition to the definition of the data object Activiti also provides an extension element to assign a default value to the variable. The following BPMN snippet provides an example: + + + <process id="dataObjectScope" name="Data Object Scope" isExecutable="true"> + <dataObject id="dObj123" name="StringTest123" itemSubjectRef="xsd:string"> + <extensionElements> + <activiti:value>Testing123</activiti:value> + </extensionElements> + </dataObject> + +
+ -- GitLab