Try OpenEdge Now
skip to main content
BP Server Developer's Guide
JMS based event publisher : Event filters : Post-filter conditions
 

Post-filter conditions

JMS supports message selectors to allow a JMS consumer more selectivity about the message it receives from a particular destination. Message selectors are based on a subset of the SQL92 conditional expression syntax. Message selectors use message properties and headers as criteria in conditional expressions. JMS clients can use message properties to filter messages.
The Event Publisher adds the following properties to each published JMS message.
*EVENT_TYPE
*EVENT_VALUE
*PROCESSTEMPLATE
*PROCESSINSTANCEID
*WORKSTEPNAME
*CREATOR
The above values are keys of the property value added to each JMS message. A JMS client may use the following query to filter messages from a destination.
String selector = "PROCESSTEMPLATE in ('Hiring') AND CREATOR = 'ebms' ";
TopicSubscriber subscriber = Session.createSubscriber(sbmTopic, selector, false);