Look Up Item by Index Position Assertion
The Look Up Item by Index Position Assertion looks up a value based on index position in a multivalued context variable. If a value is found, it is stored in another context variable.
gateway90
The
Look Up Item by Index Position Assertion
looks up a value based on index position in a multivalued context variable. If a value is found, it is stored in another context variable.This assertion is designed to work with the Look Up Item by Value Assertion, which creates a context variable containing the index position.
Example
:The (Non-SOAP) Verify XML Element Assertion stores information about the XML element across several context variables. Using the Look Up Item by Value Assertion, you determine that the element you need is in the third position in the
elementsVerified
variable. With this knowledge, you can use the Look Up Item by Index Position assertion to look up more information about the XML element:- The signature method that was used (third position in thesignatureMethodUrisvariable)
- The digest method employed (third position in thedigestMethodUrisvariable)
Using the Assertion
- Do one of the following:
- To add the assertion to the Policy Development window, see Add an Assertion.
- To change the configuration of an existing assertion, proceed to step 2 below.
- Right-clickLook Up Item by Index Positionin the policy window and selectLook Up Item by Index Position Propertiesor double-click the assertion in the policy window. The assertion properties are displayed.
- Complete the properties:SettingDescriptionExtract value with indexEnter the index position of the value to extract from the multivalued context variable (specified in the next field). You may enter a fixed value (such as "3") or may specify a context variable that contains the position. For example, to extract the first item in the variable, enter0; to extract the second item, enter1.(1) Use the variable from the "Store matching index(es) in variable named" field in the Look Up Item by Value Assertion. (2) If you specify a context variable, be sure to enclose it with the "${ }" characters.Extract from multivalued variable namedEnter the name of the multivalued context variable from which to extract. The "${ }" delimiters are not required.Store extracted value in variable namedSpecify the name of the context variable that holds the extracted value. The "${ }" delimiters are not required. Default:output
- Click [OK].