Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Service Development Help | Subscribing to Events | Building an Event Handler
 
Building an Event Handler
Building an event handler involves the following basic stages:
Stage 1
Creating an empty service. During this stage, you create the empty service that you want to use as an event handler.
Stage 2
Declaring the input and output. During this stage, you declare the input and output parameters for the event handler by selecting the specification or IS document type for the event type in pub.event. The specification and IS document type indicate the run-time data that will be contained in the IData object passed to the event handler.
Stage 3
Inserting logic, code, or services. During this stage, you insert the logic, code, or services to perform the action you want the event handler to take when the event occurs. If you are building a flow service, make sure to link data between services and the pipeline.
Stage 4
Testing and debugging the service. During this stage, you use the testing and debugging tools available in Designer to make sure the event handler works properly.
Stage 5
Subscribing to the event. During this stage, you use the Event Manager to subscribe the event handler to the event. This action registers the event handler with the Event Manager and specifies which events will invoke it. You can create filters to be more selective about the events to which you subscribe.