Extension Elements

The following elements are extension elements for the camunda namespace http://camunda.org/schema/1.0/cmmn.

caseExecutionListener

DescriptionAdd an execution listener to an event in the lifecycle of a case item.
AttributeseventThe type of the lifecycle event for which the listener is called
classsee camunda:class
expressionsee camunda:expression
delegateExpressionsee camunda:delegateExpression
ConstraintsThe event attribute is required and must be one of the lifecycle events that are valid for the plan item it is defined on. For regular tasks, these are: create, enable, disable, reenable, start, manualStart, complete, reactivate, terminate, exitparentTerminate, suspend, resume, parentSuspend, parentSuspend, close, occur
One of the attributes class, expression or delegateExpression is mandatory
Parent elementsCase, Human Task, Process Task, Case Task, Stage, Milestone,
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

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 elementscamunda:variableListener, camunda:caseExecutionListener
Child elementscamunda:expression, camunda:string

in

DescriptionThis element specifies variables which should be passed to the sub instance (process instance or case instance), see passing variables to called process or passing variables to called case for more information.
AttributessourceA name of a variable to be passed in
sourceExpressionAn expression to be evaluated and passed in
variablesCan be set to all to pass all variables in
targetName of the variable inside the sub instance
localCan be set to true to only pass local variables of the case execution that executes this case/process task instance.
businessKeySet the business key of the sub 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 elementsProcess Task, Case Task
Child elements

out

DescriptionThis element specifies variables which should be passed back from the sub instance (process instance or case instance), see passing variables to called process or passing variables to called case for more information.
AttributessourceA name of a variable to be passed back
sourceExpressionAn expression to be evaluated and passed back
variablesCan be set to all to pass all sub instance variables back
targetName of the variable inside the calling case instance
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 elementsProcess Task, Case Task
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:variableListener, camunda:caseExecutionListener
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

DescriptionAdd 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
ConstraintsThe event attribute is required and must be one of the task events: create, assignment, complete or delete
One of the attributes class, expression or delegateExpression is mandatory
Parent elementsHuman Task
Child elementscamunda:field, camunda:script

variableListener

DescriptionAdds custom code to listen to variable events such as the creation, update or deletion of a variable. A listener defined on a model scope (like the case plan model, a human task, etc.) is notified for all variable events that occur in this scope or any of its subordinate scopes.
AttributeseventThe type of the event for which the listener is called
classsee camunda:class
expressionsee camunda:expression
delegateExpressionsee camunda:delegateExpression
ConstraintsValid values for the event attribute are create, update and delete. This attribute is optional and if left out, the listener is notified for all kinds of events.
Either one of the attributes class, expression or delegateExpression, or a camunda:script child element is mandatory.
Parent elementsCase Plan Model, Stage, Human Task, Process Task, Case Task
Child elementscamunda:field, camunda:script

variableOnPart

DescriptionAdd variableOnPart to sentry. see variableOnPart.
AttributesvariableNamesee camunda:variableName
ConstraintsvariableEvent element and variableName attribute are mandatory fields when the variableOnPart is defined in a sentry.
Parent elementSentries
Child elementcamunda:variableEvent

variableEvent

DescriptionAdd variableEvent to a VariableOnPart. A sentry is evaluated when the variableEvent transition occurs.
ValueValid values are create,update or delete
Parent elementVariableOnPart