FilterFiltering is choosing specific object instances or component instances, while leaving out others that are irrelevant. A filter is a specification of the conditions that must be met to include a particular object or component in the synchronization scope. For example, only includes orders having status 'released'. Or only include order lines having a planned date filled in. The filter will result in excluding irrelevant business object instances or component instances. A filter is used for performance optimization, because it avoids data being sent that is irrelevant for any client. Filtering is done by attaching an XML text to the synchronization object. This is done in the Synchronization Objects (danch2510m000) session. If a synchronization object is created automatically via the PublishChanges method, the filter text is generated. You can specify a filter by defining a ComparisonExpression or by combining multiple ComparisonExpressions using a LogicalExpression. The filter in the PublishList and PublishChanges request is equal to the filter used for the List and Show methods. Example Assume the following filters must be applied on the components of an Order business object:
Then the filter XML will be: <LogicalExpression> <logicalOperator>and</logicalOperator> <LogicalExpression> <logicalOperator>or</logicalOperator> <ComparisonExpression> <comparisonOperator>eq</comparisonOperator> <attributeName>lifeCycle</attributeName> <instanceValue>approved</instanceValue> </ComparisonExpression> <ComparisonExpression> <comparisonOperator>eq</comparisonOperator> <attributeName>lifeCycle</attributeName> <instanceValue>toBePlanned</instanceValue> </ComparisonExpression> </LogicalExpression> <ComparisonExpression> <comparisonOperator>le</comparisonOperator> <attributeName>deliveryDate</attributeName> <instanceValue>2004-01-01T00:00:00Z</instanceValue> </ComparisonExpression> </LogicalExpression> Important!
For other details on filtering, including a procedure on how to define a filter, refer to the Synchronization and Event Publishing Deployment Guide. More information For more information, refer to:
| |||