Building Your Event-Driven Architecture : Communicating between SoftwareAG Products Using Event Routing : Event Routing for Developers : Using the Event Routing Integration Server Built-In Services : Using the pub.event.routing:subscribe Service
Using the pub.event.routing:subscribe Service
The procedure below explains how to use the pub.event.routing:subscribe service to subscribe to events. It assumes that you are familiar with working with built-in services and flow services in Software AG Designer. For more information about IS built-in services, see the PDF publication webMethods Integration Server Built-In Services Reference. For more information about working with flow services, see the PDF publication webMethods Service Development Help.
To subscribe to EDA events using the pub.event.routing:subscribe service
1. In the Service Development perspective in Designer, create a new empty flow service, and open it.
2. In the Tree tab of the Flow service editor, drag and drop the pub.event.routing:subscribe service.
3. In the Pipeline view, set the eventTypeName to the name of the desired event type, in this example {http://namespaces.softwareag.com/EDA/WebM/Sample/InventoryMgmt/1.0}PartInventoryLow, and the serviceName to the name of a service that will be invoked when an event of the specified type is received.
Note:  
The service specified by theserviceName parameter must have a document reference to the pub.event.eda:event service. Other input parameters are not allowed.
4. Right click and select Run As > Run Flow Service to subscribe to events using the flow service.
Note:  
You can configure the newly created flow service as a startup service. For more information about startup services, see webMethods Service Development Help.
Copyright © 2016 - 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback