Extension Elements

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

caseExecutionListener

Description Add an execution listener to an event in the lifecycle of a case item.
Attributes event The type of the lifecycle event for which the listener is called
class see camunda:class
expression see camunda:expression
delegateExpression see camunda: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, exitparentTerminate, 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 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

field

Description Defines the value to inject in delegated classes (see Field Injection).
Attributes name The name of the field
expression The value of the field as expression
stringValue The 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 camunda:variableListener, camunda:caseExecutionListener
Child elements camunda:expression, camunda: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.
Attributes source 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.
Attributes source 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.
Attributes scriptFormat The format identifier, normally the language of the script source code
resource equivalent to camunda:resource
Constraints The scriptFormat attribute is required
If the resource attribute is used, no source code text content is allowed
Parent elements camunda:variableListener, camunda: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 elements camunda:field
Child elements

taskListener

Description Add a task listener to a task event.
Attributes event The type of the event for which the listener is called
class see camunda:class
expression see camunda:expression
delegateExpression see camunda: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 elements Human Task
Child elements camunda:field, camunda: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.
Attributes event The type of the event for which the listener is called
class see camunda:class
expression see camunda:expression
delegateExpression see camunda: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 camunda:script child element is mandatory.
Parent elements Case Plan Model, Stage, Human Task, Process Task, Case Task
Child elements camunda:field, camunda:script

variableOnPart

Description Add variableOnPart to sentry. see variableOnPart.
Attributes variableName see camunda:variableName
Constraints variableEvent element and variableName attribute are mandatory fields when the variableOnPart is defined in a sentry.
Parent element Sentries
Child element camunda: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 element VariableOnPart

目录: