> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aseeflow.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Extension Elements

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

## caseExecutionListener

<table>
  <tr> <th>Description</th> <td colspan="2"> Add an execution listener to an event in the lifecycle of a case item. </td> </tr>
  <tr> <th>Attributes</th> <td>`event`</td> <td> The type of the lifecycle event for which the listener is called </td> </tr>
  <tr> <td /> <td>`class`</td> <td> see [camunda:class](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-attributes.md#class) </td> </tr>
  <tr> <td /> <td>`expression`</td> <td> see [camunda:expression](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-attributes.md#expression) </td> </tr>
  <tr> <td /> <td>`delegateExpression`</td> <td> see [camunda:delegateExpression](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-attributes.md#delegateexpression) </td> </tr>
  <tr> <th>Constraints</th> <td colspan="2"> 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` </td> </tr>
  <tr> <td /> <td colspan="2"> One of the attributes `class`, `expression` or `delegateExpression` is mandatory </td> </tr>
  <tr> <th>Parent elements</th> <td colspan="2"> Case, [Human Task](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/human-task.md), [Process Task](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/process-task.md), [Case Task](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/case-task.md), [Stage](https://docs.aseeflow.org/1.x/reference/cmmn11/grouping-tasks/stage.md), [Milestone](https://docs.aseeflow.org/1.x/reference/cmmn11/milestone.md), </td> </tr>
  <tr> <th>Child elements</th> <td colspan="2"> [camunda:field](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#field), [camunda:script](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#script) </td> </tr>
</table>

## expression

<table>
  <tr> <th>Description</th> <td colspan="2"> Defines an expression to inject in delegated classes (see [Field Injection](https://docs.aseeflow.org/1.x/user-guide/process-engine/delegation-code.md#field-injection)). </td> </tr>
  <tr> <th>Attributes</th> <td colspan="2"> – </td> </tr>
  <tr> <th>Text Content</th> <td colspan="2"> The expression to inject </td> </tr>
  <tr> <th>Constraints</th> <td colspan="2"> – </td> </tr>
  <tr> <th>Parent elements</th> <td colspan="2"> [camunda:field](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#field) </td> </tr>
  <tr> <th>Child elements</th> <td colspan="2"> – </td> </tr>
</table>

## field

<table>
  <tr> <th>Description</th> <td colspan="2"> Defines the value to inject in delegated classes (see [Field Injection](https://docs.aseeflow.org/1.x/user-guide/process-engine/delegation-code.md#field-injection)). </td> </tr>
  <tr> <th>Attributes</th> <td>`name`</td> <td> The name of the field </td> </tr>
  <tr> <td /> <td>`expression`</td> <td>The value of the field as expression</td> </tr>
  <tr> <td /> <td>`stringValue`</td> <td>The value of the field as String</td> </tr>
  <tr> <th>Constraints</th> <td colspan="2"> Only one attribute of `stringValue` and `expression` or one of the child elements `string` and `expression` can be used </td> </tr>
  <tr> <th>Parent elements</th> <td colspan="2"> [camunda:variableListener](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#variablelistener), camunda:caseExecutionListener </td> </tr>
  <tr> <th>Child elements</th> <td colspan="2"> [camunda:expression](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#expression), [camunda:string](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#string) </td> </tr>
</table>

## in

<table>
  <tr> <th>Description</th> <td colspan="2"> This element specifies variables which should be passed to the sub instance (process instance or case instance), see [passing variables to called process](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/process-task.md#exchange-variables) or [passing variables to called case](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/case-task.md#exchange-variables) for more information. </td> </tr>
  <tr> <th>Attributes</th> <td>`source`</td> <td> A name of a variable to be passed in </td> </tr>
  <tr> <td /> <td>`sourceExpression`</td> <td> An expression to be evaluated and passed in </td> </tr>
  <tr> <td /> <td>`variables`</td> <td> Can be set to `all` to pass all variables in </td> </tr>
  <tr> <td /> <td>`target`</td> <td> Name of the variable inside the sub instance </td> </tr>
  <tr> <td /> <td>`local`</td> <td> Can be set to `true` to only pass local variables of the case execution that executes this case/process task instance. </td> </tr>
  <tr> <td /> <td>`businessKey`</td> <td> Set the business key of the sub instance </td> </tr>
  <tr> <th>Constraints</th> <td colspan="2"> Only one of the attributes `source`, `sourceExpression`, `variables` or `businessKey` can be used </td> </tr>
  <tr> <td /> <td colspan="2"> The attribute `target` is required if the `source` or `sourceExpression` attribute is used </td> </tr>
  <tr> <th>Parent elements</th> <td colspan="2"> [Process Task](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/process-task.md), [Case Task](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/case-task.md) </td> </tr>
  <tr> <th>Child elements</th> <td colspan="2"> – </td> </tr>
</table>

## out

<table>
  <tr> <th>Description</th> <td colspan="2"> This element specifies variables which should be passed back from the sub instance (process instance or case instance), see [passing variables to called process](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/process-task.md#exchange-variables) or [passing variables to called case](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/case-task.md#exchange-variables) for more information. </td> </tr>
  <tr> <th>Attributes</th> <td>`source`</td> <td> A name of a variable to be passed back </td> </tr>
  <tr> <td /> <td>`sourceExpression`</td> <td> An expression to be evaluated and passed back </td> </tr>
  <tr> <td /> <td>`variables`</td> <td> Can be set to `all` to pass all sub instance variables back </td> </tr>
  <tr> <td /> <td>`target`</td> <td> Name of the variable inside the calling case instance </td> </tr>
  <tr> <th>Constraints</th> <td colspan="2"> Only one of the attributes `source`, `sourceExpression` or `variables` can be used </td> </tr>
  <tr> <td /> <td colspan="2"> The attribute `target` is required if the `source` or `sourceExpression` attribute is used </td> </tr>
  <tr> <th>Parent elements</th> <td colspan="2"> [Process Task](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/process-task.md), [Case Task](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/case-task.md) </td> </tr>
  <tr> <th>Child elements</th> <td colspan="2"> – </td> </tr>
</table>

## script

<table>
  <tr> <th>Description</th> <td colspan="2"> A script element. The script is executed and the return value is used as mapping value. </td> </tr>
  <tr> <th>Attributes</th> <td>`scriptFormat`</td> <td> The format identifier, normally the language of the script source code </td> </tr>
  <tr> <td /> <td>`resource`</td> <td> equivalent to [ camunda:resource](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-attributes.md#resource) </td> </tr>
  <tr> <th>Constraints</th> <td colspan="2"> The `scriptFormat` attribute is required </td> </tr>
  <tr> <td /> <td colspan="2"> If the `resource` attribute is used, no source code text content is allowed </td> </tr>

  <tr />

  <tr> <th>Parent elements</th> <td colspan="2"> [ camunda:variableListener](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#variablelistener), camunda:caseExecutionListener </td> </tr>
  <tr> <th>Child elements</th> <td colspan="2"> – </td> </tr>
</table>

## string

<table>
  <tr> <th>Description</th> <td colspan="2"> Defines a String value to inject in delegated classes (see [Field Injection](https://docs.aseeflow.org/1.x/user-guide/process-engine/delegation-code.md#field-injection)). </td> </tr>
  <tr> <th>Attributes</th> <td colspan="2"> – </td> </tr>
  <tr> <th>Text Content</th> <td colspan="2"> The String value to inject </td> </tr>
  <tr> <th>Constraints</th> <td colspan="2"> – </td> </tr>
  <tr> <th>Parent elements</th> <td colspan="2"> [camunda:field](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#field) </td> </tr>
  <tr> <th>Child elements</th> <td colspan="2"> – </td> </tr>
</table>

## taskListener

<table>
  <tr> <th>Description</th> <td colspan="2"> Add a task listener to a task event. </td> </tr>
  <tr> <th>Attributes</th> <td>`event`</td> <td> The type of the event for which the listener is called </td> </tr>
  <tr> <td /> <td>`class`</td> <td> see [camunda:class](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-attributes.md#class) </td> </tr>
  <tr> <td /> <td>`expression`</td> <td> see [camunda:expression](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-attributes.md#expression) </td> </tr>
  <tr> <td /> <td>`delegateExpression`</td> <td> see [camunda:delegateExpression](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-attributes.md#delegateexpression) </td> </tr>
  <tr> <th>Constraints</th> <td colspan="2"> The `event` attribute is required and must be one of the task events: `create`, `assignment`, `complete` or `delete` </td> </tr>
  <tr> <td /> <td colspan="2"> One of the attributes `class`, `expression` or `delegateExpression` is mandatory </td> </tr>
  <tr> <th>Parent elements</th> <td colspan="2"> [Human Task](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/human-task.md) </td> </tr>
  <tr> <th>Child elements</th> <td colspan="2"> [camunda:field](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#field), [camunda:script](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#script) </td> </tr>
</table>

## variableListener

<table>
  <tr> <th>Description</th> <td colspan="2"> 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. </td> </tr>
  <tr> <th>Attributes</th> <td>`event`</td> <td> The type of the event for which the listener is called </td> </tr>
  <tr> <td /> <td>`class`</td> <td> see [camunda:class](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-attributes.md#class) </td> </tr>
  <tr> <td /> <td>`expression`</td> <td> see [camunda:expression](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-attributes.md#expression) </td> </tr>
  <tr> <td /> <td>`delegateExpression`</td> <td> see [camunda:delegateExpression](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-attributes.md#delegateexpression) </td> </tr>
  <tr> <th>Constraints</th> <td colspan="2"> 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. </td> </tr>
  <tr> <td /> <td colspan="2"> Either one of the attributes `class`, `expression` or `delegateExpression`, or a `camunda:script` child element is mandatory. </td> </tr>
  <tr> <th>Parent elements</th> <td colspan="2"> Case Plan Model, [Stage](https://docs.aseeflow.org/1.x/reference/cmmn11/grouping-tasks/stage.md), [Human Task](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/human-task.md), [Process Task](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/process-task.md), [Case Task](https://docs.aseeflow.org/1.x/reference/cmmn11/tasks/case-task.md) </td> </tr>
  <tr> <th>Child elements</th> <td colspan="2"> [camunda:field](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#field), [camunda:script](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#script) </td> </tr>
</table>

## variableOnPart

<table>
  <tr> <th>Description</th> <td colspan="2"> Add variableOnPart to sentry. see [variableOnPart. ](https://docs.aseeflow.org/1.x/reference/cmmn11/sentry.md#variableonpart)</td> </tr>
  <tr> <th>Attributes</th> <td>`variableName`</td> <td> see [camunda:variableName ](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-attributes.md#variablename)</td> </tr>
  <tr> <th>Constraints</th> <td colspan="2"> `variableEvent` element and `variableName` attribute are mandatory fields when the variableOnPart is defined in a sentry. </td> </tr>
  <tr> <th>Parent element</th> <td colspan="2"> [Sentries](https://docs.aseeflow.org/1.x/reference/cmmn11/sentry.md) </td> </tr>
  <tr> <th>Child element</th> <td colspan="2"> [camunda:variableEvent](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#variableevent) </td> </tr>
</table>

## variableEvent

<table>
  <tr> <th>Description</th> <td colspan="2"> Add variableEvent to a VariableOnPart. A sentry is evaluated when the variableEvent transition occurs. </td> </tr>
  <tr> <th>Value</th> <td> Valid values are `create`,`update` or `delete` </td> </tr>
  <tr> <th>Parent element</th> <td colspan="2"> [VariableOnPart](https://docs.aseeflow.org/1.x/reference/cmmn11/custom-extensions/camunda-elements.md#variableonpart) </td> </tr>
</table>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.