Extension Attributes

Custom extensions are a standardized way to extend the DMN model. The Camunda extension attrributes are fully implemented in the DMN model API.

Every DMN Decision element can have attributes historyTimeToLive and versionTag. To access the extension attributes you have to call the Decision#getCamundaHistoryTimeToLiveString() and Decision#getVersionTag() methods.

String historyTimeToLive = decision.getCamundaHistoryTimeToLiveString();
String versionTag = decision.getVersionTag();

To set attributes, use Decision#setCamundaHistoryTimeToLiveString() and Decision#setVersionTag()

decision.setCamundaHistoryTimeToLiveString("1000");
decision.setVersionTag("1.0.0");

Every Input element can have an attribute inputVariable. This attribute specifies the variable name which can be used to access the result of the input expression in an input entry expression. It can be set and fetched similarly calling Input#setCamundaInputVariable() and Input#getCamundaInputVariable():

input.setCamundaInputVariable("camundaInput");
String camundaInput = input.getCamundaInputVariable();

On this Page: