Each rule component object generates a piece of the output transaction by manipulating the data in a field object with a filter object or, alternatively, defining a literal value to place into the output transaction.
A rule component object can also manipulate the rule object’s blob, affecting the output transaction up to and including its own contribution to the blob.
For example, if a rule has four components:
Component 1 makes all letters in the input lower case.
Component 2 reverses the order of the characters in the input.
Component 3 adds “zzz” to the end of the input, and makes all letters in the output transaction up to that point upper case.
Component 4 adds “abc” to the beginning of the transaction.
When the components act on a field with the data “123JKLM,” each component’s output would be:
Component 1 – 123jklm
Component 2 – mlkj321
Component 3 – mlkj321zzz, then MLKJ321ZZZ
Component 4 – abcMLKJ123ZZZ
The output of the rule object would be “abcMLKJ321ZZZ”.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |