Camunda BPMN Extension Elements

The following attributes are extension attributes for the camunda namespace http://camunda.org/schema/1.0/bpmn.

connector

DescriptionThe configuration of a camunda connector.
Attributes
ConstraintsThe camunda:connectorId child element is required and must identify a connector implementation known to the process engine
Parent elementsService Task, Business Rule Task, Send Task, Message Event Definition of Message Intermediate Throwing Event or Message End Event,
Child elementscamunda:inputOutput, camunda:connectorId

connectorId

DescriptionThe unique identifier of the connector type to instantiate.
Attributes
ConstraintsThe connector type has to be known to the process engine
Parent elementscamunda:connector
Child elements

constraint

DescriptionMetadata of an individual validation constraint for a form field (see Form Field Validation).
AttributesnameThe name of the form field constraint type
configThe configuration of the form field constraint type
ConstraintsThe name attribute must be one of the known validators (required, minlength, maxlength, min, max, readonly or validator)
Parent elementscamunda:validation
Child elements

entry

DescriptionA single entry of a map structure. The value can be a constant, expression, script, list or another map.
AttributeskeyThe key of the entry in the map. Can be a string or an expression.
ConstraintsThe key attribute is required
Parent elementscamunda:map
Child elementscamunda:list, camunda:map, camunda:script

errorEventDefinition

DescriptionDefinition 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
AttributesexpressionAn expression that will trigger the error if it evaluates to true.
ConstraintsThe errorRef attribute is required
Parent elementsService Task of type external
Child elements

executionListener

DescriptionAdd an execution listener to an event.
AttributeseventThe type of the event for which the listener is called
classsee camunda:class
expressionsee camunda:expression
delegateExpressionsee camunda:delegateExpression
ConstraintsThe 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 elementsProcess, 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 elementscamunda:field, camunda:script

expression

DescriptionDefines an expression to inject in delegated classes (see Field Injection).
Attributes
Text ContentThe expression to inject
Constraints
Parent elementscamunda:field
Child elements

failedJobRetryTimeCycle

DescriptionDefines the custom retry schedule for a failed job (see Failed Jobs).
Attributes
Text ContentThe retry time cycle value or expression
ConstraintsThe configuration follows the ISO 8601 standard for repeating time intervals
Parent elementsTask, 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

DescriptionDefines the value to inject in delegated classes (see Field Injection).
AttributesnameThe name of the field
expressionThe value of the field as expression
stringValueThe value of the field as String
ConstraintsOnly one attribute of stringValue and expression or one of the child elements string and expression can be used
Parent elementsService Task, Business Rule Task, Send Task, Message Event Definition of Message Intermediate Throwing Event or Message End Event, camunda:taskListener, camunda:executionListner
Child elementscamunda:expression, camunda:string

formData

DescriptionMetadata to define fields of a form, which are used to generate task forms (see Generated Task Forms).
Attributes
Constraints
Parent elementsStart Event, User Task
Child elementscamunda:formField

formField

DescriptionMetadata to define a single form field (see Generated Task Forms).
AttributesidThe 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
ConstraintsThe 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 elementscamunda:formData
Child elementscamunda:properties, camunda:validation, camunda:value

formProperty

DescriptionMetadata to define a form field (Deprecated, use camunda:formData).
AttributesidThe 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
ConstraintsThe 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 elementsStart Event, User Task
Child elementscamunda:value

in

DescriptionThe element specifies variables which should be passed to the subprocess, see passing variables for more information.
AttributessourceA 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
ConstraintsOnly 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 elementsCall Activity, Signal Events (in Intermediate and End Throwing Events)
Child elements

inputParameter

DescriptionAn 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.
AttributesnameThe name of the variable inside the activity.
ConstraintsThe name attribute is required.
The element can have one child element, a constant string or an expression as text content.
Parent elementscamunda:inputOutput
Child elementscamunda:list, camunda:map, camunda:script

inputOutput

DescriptionThe element describes an input/output mapping for the activity.
Attributes
Constraints
Parent elementsAll Tasks, All Events (except Start and Boundary Events), Call Activity, Embedded Subprocess, Transaction Subprocess, camunda:connector
Child elementscamunda:inputParameter, camunda:outputParameter

list

DescriptionA 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
ConstraintsMultiple values have to be encapsulated in child elements.
Parent elementscamunda:inputParameter, camunda:outputParameter, camunda:list, camunda:entry
Child elementsAny child element, camunda:list, camunda:map

map

DescriptionA map structure. The entries can be constants, expressions, scripts, nested maps and lists.
Attributes
Constraints
Parent elementscamunda:inputParameter, camunda:outputParameter, camunda:list, camunda:entry
Child elementscamunda:entry

out

DescriptionThe element specifies variables which should be passed back from the subprocess, see passing variables for more information.
AttributessourceA 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.
ConstraintsOnly 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 elementsCall Activity
Child elements

outputParameter

DescriptionAn 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.
AttributesnameThe name of the variable outside of the activity.
ConstraintsThe name attribute is required.
The element can have one child element, a constant string or an expression as text content.
Parent elementscamunda:inputOutput
Child elementscamunda:list, camunda:map, camunda:script

potentialStarter

DescriptionDefines which users or groups can start the process.
Attributes
Constraints
Parent elementsProcess
Child elementsresourceAssignmentExpression

properties

DescriptionA key value list of properties which be can be interpreted freely.
Attributes
Constraints
Parent elementsBase Element, camunda:formField
Child elementscamunda:property

property

DescriptionA key value pair which can be interpreted freely.
AttributesidThe id of the form field property
nameThe name of the property
valueThe value of the property
ConstraintsIf 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 elementscamunda:properties
Child elements

script

DescriptionA script element. The script is executed and the return value is used as mapping value.
AttributesscriptFormatThe format identifier, normally the language of the script source code
resourceequivalent to camunda:resource
ConstraintsThe scriptFormat attribute is required
If the resource attribute is used, no source code text content is allowed
Parent elementscamunda:inputParameter, camunda:outputParameter, camunda:entry, camunda:list, camunda:executionListener, camunda:taskListener
Child elements

string

DescriptionDefines a String value to inject in delegated classes (see Field Injection).
Attributes
Text ContentThe String value to inject
Constraints
Parent elementscamunda:field
Child elements

taskListener

DescriptionAdds a task listener to a task event.
AttributeseventThe 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
ConstraintsThe 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 elementsUser Task
Child elementscamunda:field, camunda:script, timerEventDefinition

validation

DescriptionMetadata to define a list of validation constraints for form fields (see Form Field Validation).
Attributes
Constraints
Parent elementscamunda:formField
Child elementscamunda:constraint

value

DescriptionPossible values of a form field with the type enum.
AttributesidThe id of the value
nameThe name of the value
Constraints
Parent elementscamunda:formField, camunda:formProperty
Child elements