Service Development Help : Working with webMethods Messaging Triggers : Creating a webMethods Messaging Trigger : Creating Filters for Use with Universal Messaging : Examples of Universal Messaging Provider Filters for Use with Protocol Buffers
Examples of Universal Messaging Provider Filters for Use with Protocol Buffers
Following are examples of provider filters for protocol buffer encoded documents. The Universal Messaging server applies the filter when it receives an instance of a document in the trigger condition that contains the provider filter.
Filter
Evaluates to true when...
stringField = ‘abc’
The value of stringField is “abc”.
stringField < ‘B’
The value of the stringField is less than B
stringField < ‘5’
The value of the stringField is less than 5.
stringField = ‘1’
The value of the stringField is “1”.
document.stringField=’abc’
In the Document field named document, the value of the stringField is “abc”.
stringList[1] = ‘b’
The value of the second element in stringList is “b”
documentList[0].stringField = ‘a’
In the first element of the Document list named documentList, the value of stringField is “a”.
stringField1 = ‘a’ and stringField2 = ‘b’
The value of stringField1 is “a” and the value of stringField2 is “b”.
stringField1 = ‘a’ or stringField2 = ‘b’
The value of stringField1 is “a” or the value of stringField2 is “b”.
stringField1 = stringField2
The value of stringField1 is the same as the value of stringField2.
integerField = 5
Where integerField is an Object field with the Java wrapper type java.lang.Integer applied.
The value of integerField is “5”.
integerField > 1
Where integerField is an Object field with the Java wrapper type java.lang.Integer applied.
The value of integerField is greater than 1.
boolean1 = true and boolean2 = false
Where boolean1 and boolean2 are Object fields with the Java wrapper type java.lang.Boolean applied.
The value of boolean1 is true and the value of boolean2 is false.
For more information about server-side filtering on Universal Messaging, including syntax, see the Universal Messaging documentation.
Copyright © 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback