Look Up Item by Index Position Assertion
The Look Up Item by Index Position assertion looks up an item based on index position in a multivalued context variable and then stores the value in another context variable.
gateway83
The Look Up Item by Index Position assertion looks up an item based on index position in a multivalued context variable and then stores the value 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 creates several context variables. Using the Look Up Item by Value assertion, you find that a particular element is in the third position in the elementsVerified context variable. With this knowledge, you can use the Look Up Item by Index Position assertion to look up the signature method that was used (in the signatureMethodUris variable), as well as the digest method employed (in the digestMethodUris variable).
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.
- Enter the index position to interpolate a previously-set variable that contains the index, such as ${index}. To extract the first item in the variable, enter0, to extract the second item, enter1, etc.
- Enter the name of the context variable from which to extract.
- Enter the name of the context variable that will hold the extracted value. The default name "output" is offered.You do not need to enclose the variable name within the wrapper characters "${ }".
- Click [OK].