Manual / Reference / BPMN 2.0 Implementation Reference / Extension Reference Camunda BPMN Extension Elements The following attributes are extension attributes for the camunda namespace http://camunda.org/schema/1.0/bpmn.
Two namespaces are accepted, from 1.4.2-ee
From 1.4.2-ee onward (Enterprise Edition), extension attributes and elements may
equally be declared in EximeeBPMS’ own namespace,
http://eximeebpms.org/schema/1.0/bpmn. Both are accepted, including mixed
within a single document, and behave identically — only the namespace URI
matters, never the prefix that labels it. Earlier versions, 1.4.1-ee included,
accept only http://camunda.org/schema/1.0/bpmn, and silently ignore extensions
declared in any other namespace.
The BPMN Model API never moves an extension Camunda 7 knows into the EximeeBPMS
namespace: it writes such extensions in http://camunda.org/schema/1.0/bpmn,
so that files stay readable by tooling that only knows that namespace, such as
Camunda Modeler. An attribute that arrived in the EximeeBPMS namespace is updated
in place, in that namespace, so a round-tripped document can come back declaring
both.
The adHoc element of the ad-hoc subprocess is the exception: write it
as eximeebpms:adHoc, which Camunda Modeler keeps; without the
EximeeBPMS plugin , which converts
camunda:adHoc when a diagram is opened, the Modeler drops camunda:adHoc when it saves the
diagram. The BPMN Model API writes it as eximeebpms:adHoc too.
A child element the BPMN Model API adds to an element read in the EximeeBPMS namespace
is written in that namespace as well.
adHoc Description Configures the activation and the output of an
ad-hoc subprocess .
Write it, with its child elements, in the EximeeBPMS namespace as eximeebpms:adHoc: the engine
reads both forms, but Camunda Modeler without the EximeeBPMS plugin drops camunda:adHoc when it
saves the diagram. Attributes activeElementsCollectionAn expression that returns the ids of the elements to activate when the ad-hoc subprocess is entered outputCollectionThe name of a list variable, local to the ad-hoc subprocess, that collects one entry per completed inner
flow; set on the enclosing scope when the ad-hoc subprocess completes Constraints The outputElement child element requires the outputCollection attribute Parent elements Ad-hoc Subprocess Child elements eximeebpms:outputElement
connector connectorId Description The unique identifier of the connector type to instantiate. Attributes – Constraints The connector type has to be known to the process engine Parent elements camunda:connector Child elements –
constraint Description Metadata of an individual validation constraint for a form field (see Form Field Validation ). Attributes nameThe name of the form field constraint type configThe configuration of the form field constraint type Constraints The name attribute must be one of the known validators (required, minlength,
maxlength, min, max, readonly or validator) Parent elements camunda:validation Child elements –
entry Description A single entry of a map structure. The value can be a constant, expression, script, list or
another map. Attributes keyThe key of the entry in the map. Can be a string or an expression. Constraints The key attribute is required Parent elements camunda:map Child elements camunda:list ,
camunda:map ,
camunda:script
errorEventDefinition Description Definition of an error event that can be triggered by an expression.
This element extends the
errorEventDefinition
element from the bpmn namespace inheriting all of its attributes: id, errorRef Attributes expressionAn expression that will trigger the error if it evaluates to true. Constraints The errorRef attribute is required Parent elements Service Task of type externalChild elements –
executionListener Description Add an execution listener to an event. Attributes eventThe type of the event for which the listener is called classsee camunda:class expressionsee camunda:expression delegateExpressionsee camunda:delegateExpression Constraints The event attribute is required (except for transitions) and must be one of the task events: start or end One of the attributes class, expression or delegateExpression is mandatory Parent elements Process,
Task,
Service Task ,
Send Task ,
User Task ,
Business Rule Task ,
Script Task ,
Receive Task ,
Manual Task ,
Exclusive Gateway ,
Sequence Flow ,
Parallel Gateway ,
Inclusive Gateway ,
Event Based Gateway ,
Start Event ,
Intermediate Catch Event ,
Intermediate Throw Event ,
End Events ,
Boundary Events ,
Embedded Subprocess ,
Call Activity ,
Event Subprocess ,
Transaction Subprocess Child elements camunda:field ,
camunda:script
expression Description Defines an expression to inject in delegated classes (see Field Injection ). Attributes – Text Content The expression to inject Constraints – Parent elements camunda:field Child elements –
failedJobRetryTimeCycle Description Defines the custom retry schedule for a failed job (see Failed Jobs ). Attributes – Text Content The retry time cycle value or expression Constraints The configuration follows the ISO 8601 standard for repeating time intervals Parent elements Task,
Service Task ,
Send Task ,
User Task ,
Business Rule Task ,
Script Task ,
Receive Task ,
Timer Start Event ,
Timer Intermediate Catching Event ,
Timer Boundary Event ,
Intermediate Signal Throw Event ,
Embedded Subprocess ,
Call Activity ,
Transaction Subprocess ,
Multi Instance Loop Characteristics Child elements –
field Description Metadata to define a single form field (see Generated Task Forms ). Attributes idThe id of the form field, corresponding to the name of a process variable labelThe label to be displayed next to the form field typeThe type of the form field datePatternThe pattern of a date type form field defaultValueThe value to be used as a default (pre-selection) for the field Constraints The attribute id may not be empty The attribute type can be one of the known form field types (string, long, boolean, date or enum) or a custom one The attribute datePattern can only be used if the type attribute is set to date The child element camunda:properties is only allowed once The child element camunda:validation is only allowed once The child elements camunda:values can only be used if the type attribute is set to enum Parent elements camunda:formData Child elements camunda:properties ,
camunda:validation ,
camunda:value
Description Metadata to define a form field (Deprecated , use camunda:formData ). Attributes idThe key used to submit the property through the API nameThe display label of the property typeThe type of the property requiredTrue if the form field is required (default: false) readableTrue if the form field is readable and will be displayed (default: true) writeableTrue if the form field is writeable (default: true) variableSpecifies the process variable on which the variable is mapped expressionSpecifies an expression that maps the property, e.g., ${street.address} datePatternThe pattern of a date type form field defaultThe default value or expression of the property Constraints The id attribute is required The attribute type can be one of the known types (string, long, boolean, date or enum) or a custom one The attribute datePattern can only be used if the type attribute is set to date The child elements camunda:values can only be used if the type attribute is set to enum Parent elements Start Event ,
User Task Child elements camunda:value
in Description The element specifies variables which should be passed to the subprocess, see passing variables for more information. Attributes sourceA name of a process variable to be passed in sourceExpressionAn expression to be evaluated and passed in variablesCan be set to all to pass all process variables in targetName of the process variable inside the subprocess instance localCan be set to true to only pass local variables of the execution that executes the call activity. businessKeySet the business key of the subprocess process instance Constraints Only one of the attributes source, sourceExpression, variables or businessKey can be used The attribute target is required if the source or sourceExpression attribute is used Parent elements Call Activity ,
Signal Events (in Intermediate and End Throwing Events) Child elements –
Description An single input mapping for the activity. If the element has no child element, the text
content of this element is mapped into the activity. The text content can be a constant
string value or an expression. If no child element or text content exists, the variable
inside the activity is set to the special value null. Attributes nameThe name of the variable inside the activity. Constraints The name attribute is required. The element can have one child element, a constant string or an expression as text content. Parent elements camunda:inputOutput Child elements camunda:list ,
camunda:map ,
camunda:script
list Description A list structure. If the list contains multiple values, they should be added as
text content of child elements. Which child elements are used is arbitrary, e.g.,:
<camunda:list> <camunda:value>one</camunda:value> <camunda:value>two</camunda:value> <camunda:value>three</camunda:value> </camunda:list> A camunda:script element can also be used as a list element. The return value of the
script is added to the list. Furthermore, lists can contain nested lists and maps. Attributes – Constraints Multiple values have to be encapsulated in child elements. Parent elements camunda:inputParameter ,
camunda:outputParameter ,
camunda:outputElement ,
camunda:list ,
camunda:entry Child elements Any child element,
camunda:list ,
camunda:map
map out Description The element specifies variables which should be passed back from the subprocess, see passing variables for more information. Attributes sourceA name of a process variable to be passed back sourceExpressionAn expression to be evaluated and passed back variablesCan be set to all to pass all subprocess variables back targetName of the process variable inside the subprocess instance localCan be set to true to pass variables from the called case/process instance to local variables of the execution executing the call activity. Constraints Only one of the attributes source, sourceExpression or variables can be used The attribute target is required if the source or sourceExpression attribute is used Parent elements Call Activity Child elements –
outputElement Description The entry an inner flow of an ad-hoc subprocess adds to its output collection when it completes, evaluated in
the inner flow. The value is specified as for an input parameter: as text, or as a child element.
Write it, and the value elements inside it, in the EximeeBPMS namespace, like its parent
eximeebpms:adHoc. Attributes – Constraints At most one child element Parent elements eximeebpms:adHoc Child elements eximeebpms:list ,
eximeebpms:map ,
eximeebpms:script
outputParameter Description An single output mapping for the activity. If the element has no child element, the text
content of this element is mapped out of the activity. The text content can be a constant
string value or an expression. If no child element or text content exists, the variable
outside of the activity is set to the special value null. Attributes nameThe name of the variable outside of the activity. Constraints The name attribute is required. The element can have one child element, a constant string or an expression as text content. Parent elements camunda:inputOutput Child elements camunda:list ,
camunda:map ,
camunda:script
potentialStarter Description Defines which users or groups can start the process. Attributes – Constraints – Parent elements Process Child elements resourceAssignmentExpression
properties Description A key value list of properties which be can be interpreted freely. Attributes – Constraints – Parent elements Base Element,
camunda:formField Child elements camunda:property
property Description A key value pair which can be interpreted freely. Attributes idThe id of the form field property nameThe name of the property valueThe value of the property Constraints If the property belongs to a camunda:formField extension element, only
the attributes id and value are used. If the parent camunda:properties element is directly added as an extension element,
for example by the camunda Modeler, only the attributes name and value
are used. Parent elements camunda:properties Child elements –
script string Description Defines a String value to inject in delegated classes (see Field Injection ). Attributes – Text Content The String value to inject Constraints – Parent elements camunda:field Child elements –
taskListener Description Adds a task listener to a task event. Attributes eventThe type of the event for which the listener is called classsee camunda:class expressionsee camunda:expression delegateExpressionsee camunda:delegateExpression idThe id of the task listener in the parent scope, only required when event is set to timeout Constraints The event attribute is required and must be one of the task events:
create, assignment, update,
complete, delete or timeout One of the attributes class, expression or delegateExpression is mandatory If the attribute event is set to timeout, the attribute id and exactly one child element of type timerEventDefinition are mandatory Parent elements User Task Child elements camunda:field ,
camunda:script ,
timerEventDefinition
validation value Description Possible values of a form field with the type enum. Attributes idThe id of the value nameThe name of the value Constraints – Parent elements camunda:formField ,
camunda:formProperty Child elements –