Referencing a property from another

A property can reference another using the format ${otherPropertyName}.

We've seen an example of this in the multiple roles process, where the status property is defined using a statusReference and statusName.

Referencing one propery from another

In this example, this allows the statusReference to be used as part of a flow specification, without entering its value in two places.

There are two aspects of propery referencing that work together to let you override properties set at a higher level of precedence.

  • If a property refers to itself as a placeholder, this will search for the property at lower levels of specification.

  • A propery reference can define a default, by putting the default after a comma.

If, for example, the statusName was coded as:

${statusName,Please complete form}

This would search for a statusName property at a lower level of precedence, and apply the default "Please complete form" if one isn't found. This means you can create process models with default properties that can be overridden by values in the propery node, parameterising the process.