Skip to main content

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

caseExecutionListener

Description

Add an execution listener to an event in the lifecycle of a case item.

Attributesevent

The type of the lifecycle event for which the listener is called

class

see operaton:class

expression

see operaton:expression

delegateExpression

see operaton:delegateExpression

Constraints

The 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, exit, parentTerminate, suspend, resume, parentSuspend, parentSuspend, close, occur

One of the attributes class, expression or delegateExpression is mandatory

Parent elements

Case, Human Task, Process Task, Case Task, Stage, Milestone,

Child elements

operaton:field, operaton:script

expression

Description

Defines an expression to inject in delegated classes (see Field Injection).

Attributes

–

Text Content

The expression to inject

Constraints

–

Parent elementsoperaton:field
Child elements

–

field

Description

Defines the value to inject in delegated classes (see Field Injection).

Attributesname

The name of the field

expressionThe value of the field as expression
stringValueThe value of the field as String
Constraints

Only one attribute of stringValue and expression or one of the child elements string and expression can be used

Parent elements

operaton:variableListener, operaton:caseExecutionListener

Child elements

operaton:expression, operaton:string

in

Description

This 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.

Attributessource

A name of a variable to be passed in

sourceExpression

An expression to be evaluated and passed in

variables

Can be set to all to pass all variables in

target

Name of the variable inside the sub instance

local

Can be set to true to only pass local variables of the case execution that executes this case/process task instance.

businessKey

Set the business key of the sub 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

Process Task, Case Task

Child elements

–

out

Description

This 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.

Attributessource

A name of a variable to be passed back

sourceExpression

An expression to be evaluated and passed back

variables

Can be set to all to pass all sub instance variables back

target

Name of the variable inside the calling case instance

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

Process Task, Case Task

Child elements

–

script

Description

A script element. The script is executed and the return value is used as mapping value.

AttributesscriptFormat

The format identifier, normally the language of the script source code

resource

equivalent to operaton:resource

Constraints

The scriptFormat attribute is required

If the resource attribute is used, no source code text content is allowed

Parent elements

operaton:variableListener, operaton:caseExecutionListener

Child elements

–

string

Description

Defines a String value to inject in delegated classes (see Field Injection).

Attributes

–

Text Content

The String value to inject

Constraints

–

Parent elementsoperaton:field
Child elements

–

taskListener

Description

Add a task listener to a task event.

Attributesevent

The type of the event for which the listener is called

class

see operaton:class

expression

see operaton:expression

delegateExpression

see operaton:delegateExpression

Constraints

The 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 elements

operaton:field, operaton:script

variableListener

Description

Adds 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.

Attributesevent

The type of the event for which the listener is called

class

see operaton:class

expression

see operaton:expression

delegateExpression

see operaton:delegateExpression

Constraints

Valid 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 operaton:script child element is mandatory.

Parent elements

Case Plan Model, Stage, Human Task, Process Task, Case Task

Child elements

operaton:field, operaton:script

variableOnPart

Description

Add variableOnPart to sentry. see variableOnPart.

AttributesvariableName

see operaton:variableName

Constraints

variableEvent element and variableName attribute are mandatory fields when the variableOnPart is defined in a sentry.

Parent elementSentries
Child elementoperaton:variableEvent

variableEvent

Description

Add variableEvent to a VariableOnPart. A sentry is evaluated when the variableEvent transition occurs.

Value

Valid values are create,update or delete

Parent elementVariableOnPart