Entering Unary Expressions Using the Builder Option

Before you begin

These instructions assume you are creating or editing an XQuery conditional expression in the XQuery Condition Editor, as described in Creating and Editing Inline XQuery and XPath Expressions.

To enter an XQuery comparison expression:

  1. In the XQuery Condition Editor, select Builder (located under the workspace button bar), if it is not already selected. option.
  2. In the Expression Builder box, select Unary Expression if it is not already selected.
  3. Select the Not check box to make this a negative expression, or leave it blank.
  4. Enter a context variable, namespace definition or XQuery function in the Expression field.
  5. To build the expression, you can paste XQuery functions from the XQuery Functions palette and namespaces from the Namespace Definitions palette. See step 3 and step 4 in Building Expressions in the Editor Workspace Text Fields.

  6. Click Add to add the text to the Expressions pane.
  7. Repeat steps 3-5 to build additional conditions. Each condition is added to the end of the list of conditions.
  8. Consider the following when building unary expressions.

    • When you build additional expressions, make sure to select the And or the Or options in the Conjunction field.
    • You can select a condition and click the  Up arrow to move it up in the list of conditions, click the  Down arrow to move it down the list of conditions, click the  Edit icon to update it, or click the  Delete icon to delete it.
    • Unary expressions may be intermixed with Comparison expressions in the overall definition of a condition.
  9. Optionally, do either or both of the following:
    • Click Validate. A message is displayed if the expression is validated successfully.
    • Click Test to test the expression. See Performing XQuery Testing.
  10. Click Save to close the editor and insert the expression in the action.

After you finish

Continue configuring the action, as described in Adding and Editing Actions in Message Flows.