Skip to main content

Parenthesis () Syntax

Describes how to use parenthesis () syntax to access virtual properties.

Where Applicable

You can use this syntax in business rules and in DTL transformations.

Details

To use parenthesis syntax to access a virtual property, use the following syntax:

message.(multi-valued-property-path)

Where:

  • message is a variable that refers to the current message. The name of this variable depends upon the context.

  • multi-valued-property-path is a virtual property path that uses the repeating field shortcut () to iterate through every instance of a repeating field, as described earlier in this reference.

The preceding syntax is equivalent to the following method call:

message.GetValueAt("multi-valued-property-path")

If the syntax returns multiple values a, b, and c, they appear in a single string enclosed in <> angle brackets, like this:

<a><b><c>

Example

For example, in an HL7 routing rule, the syntax HL7.(NK1():1) finds the values of the first field in all of the multiple NK1 segments in the HL7 message object represented by the special variable HL7.

FeedbackOpens in a new tab