Microsoft BizTalk Server 2002 - Add a channel filtering expression
- On the Inbound Document page of the Channel Wizard, select the Filter inbound document check box and click Filtering.
The Channel Filtering Expressions dialog box appears.
- In the Select field tree, double-click any node to expand the view.
- Click a specification field that you want to use to create a filtering expression and click Add.
The Expression Properties dialog box appears.
- In the Operator list, click an operator:
Operator Symbol Equal to (Default) = Not equal to != Less than < Equal to or less than <= Greater than > Equal to or greater than >=
- In the Value box, type a value for the expression and click OK.
To continue setting inbound document properties, go to Set inbound document properties.
- A channel filtering expression must be a valid XPath expression. The Add button can be used to create a clause that contains a specification field and to insert it into an expression; however, it does not generate the correct syntax needed for a valid XPath expression. For more information about XPath expressions, see Channel Filtering; you can also go to the MSDN Online Library Web site (msdn.microsoft.com/library/default.asp) and search on the keyword "XPath."
- You can type an expression directly into the Expressions list.
- To select a specification field for a channel filtering expression, the field must have a data type assigned in the specification. For more information about assigning a data type to a field, see Set declaration properties.
- If the specification field that you are using to create an expression has a Boolean data type, you cannot use the text string "true" or "false" in the expression value. You must use a numerical value instead, "-1" for true and "0" for false.
- If the specification field that you are using to create an expression has a date data type, you must type the value in the following format, including the hyphens: YYYY-MM-DD.
- If you want to use a filter for a date/time type (dateTime, dateTime.tz, time, time.tz), you must type it manually in the XPath expression. For example,
self::node()[@ATTDATETIME = "2000-03-15T10:10:10"]where ATTDATETIME is the date/time format type.
Did you find this information useful? Please send your suggestions and comments about the documentation to BizTalk Server Documentation Feedback@microsoft.com