This function extracts a bean's property under a given key name (the
property( msg!properties, nameOfProperty, [valueIfMissing] )
bean: (Bean) Bean to retrieve the property from.
nameOfProperty: (Text) Property to retrieve from the bean.
valueIfMissing: (Any Type) Default value to return if the property is not present in the bean.
If the named property is not present, then the value for the valueIfMissing parameter is returned instead.
The value type of the valueIfMissing parameter should be the same type as the expected property’s type.
property(msg!properties,"someStringProperty","Missing Text") returns
"Missing Text" if
someStringProperty does not exist.
You can copy and paste these examples into the Expression Rule Designer to see how this works.
property(msg!properties,"name","no name was sent") returns
no name was sent when the
name property is not received in a message
index(): This function acts as an alias to the
property() function especially when applied over custom data types.