Try OpenEdge Now
skip to main content
BP Server Developer's Guide
JMS based event publisher : Event channels : Event channel examples : Creating a new event channel
 
Creating a new event channel
The following example creates a channel to receive events whenever a process instance or workstep instance is suspended from the specified process templates.
EventChannel evtchn = new EventChannel("jms/MyQueue", "queue");
evtchn.addFilterCondition(EventChannel.EVENT_VALUE, "PI_SUSPENDED,
W_SUSPENDED");
evtchn.addFilterCondition(EventChannel.PT_NAMES, "Hiring, Approval,
Assignment");
eventChannel.create();