Examples of object-set expression

The following examples show valid syntax that can be used in object-set expressions:
  • id.222.response.TCRMPersonSearchResultBObj

    Loops through all the TCRMPersonSearchResultBObj objects from the response that has a correlator ID 222.

  • id.333.TCRMPersonBObj.TCRMPartyAddressBObj[where AddressUsageType = 1].TCRMPartyLocationPrivPrefBObj

    Loops through all the TCRMPartyLocationPrivPrefBObj objects from the TCRMPartyAddressBObj object where the AddressUsageType is 1. The TCRMPersonBObj object comes from the response that has a correlator ID 333.

  • id.111.request.TCRMPersonBObj.TCRMPartyAddressBObj[2]. TCRMPartyLocationPrivPrefBObj

    Loops through all the TCRMPartyLocationPrivPrefBObj objects from the third TCRMPartyAddressBObj object. The TCRMPersonBObj object comes from the response that has a correlator ID 111.

  • id.111.request.TCRMPersonBObj.TCRMPartyAddressBObj. TCRMPartyLocationPrivPrefBObj

    Loops through all the TCRMPartyLocationPrivPrefBObj objects from all the TCRMPartyAddressBObj objects in the TCRMPersonBObj object. The TCRMPersonBObj object comes from the response that has a correlator ID 111.

The following are some examples of invalid object-set expression, which will cause exception to be thrown either during parsing or transaction:
  • id.234.response.TCRMPersonBObj.PartyId

    This example is syntactically correct and can be parsed successfully. However, this expression resolves to an attribute name, and not an object. Therefore, this example will throw an exception at transaction time.

  • id.333.response.TCRMPersonBObj.TCRMPersonNameBObj[2]

    This example is syntactically incorrect because an object-set expression cannot end with an index. This example will throw an exception at parsing time.

  • id.234.response.TCRMPersonBObj.TCRMFinancialProfileBObj

    This example is syntactically correct and can be parsed successfully. However, the TCRMPersonBObj object can have zero or one instance of TCRMFinancialProfileBObj object; the TCRMFinancialProfileBObj does not exist as a collection under the TCRMPersonBObj object. Therefore, this example will throw an exception at transaction time.