I would like to read the content of an event in a service subscribed to the event type. I have tried the following:
• Created a document type based on the {Software AG Product Documentation}PartInventoryLow sample event type → EventTester:EventTesterDocTypeInventoryLow
• Created a service EventTester:EventTesterProcessInventoryLowEvent to process an InventoryLow event. Following the instructions in the webMethods Integration Server Built-In Services Reference for pub.event.routing:subscribe, the service has only one input parameter of type pub.event.eda:event
• Created a service EventTester:EventTesterSubscribeToInventoryLowEvent to subscribe the EventTester:EventTesterProcessInventoryLowEvent service to the {Software AG Product Documentation}PartInventoryLow event type. The service is running successfully
• Created a service EventTester:EventTesterEmitInventoryLowEvent sending an event with an instance of the EventTester:EventTesterDocTypeInventoryLow document type as evt:Body, specifying {Software AG Product Documentation}PartInventoryLow as evt:Type
When I run the EventTester:EventTesterEmitInventoryLowEvent service, I can see that a message with the right content is sent to the /Event/WebM/Sample/InventoryMgmt/1.0/PartInventoryLow channel in UM, and the EventTester:EventTesterProcessInventoryLowEvent service is called correctly. But it seems I do not get any input in the input parameter of type pub.event.eda:event! When I enable the „Validate input“ checkbox for the EventTester:EventTesterEmitInventoryLowEvent service, it will not even be started. I can see the following error message in the IS log:
• [3862]2016-12-13 12:39:24 CET [ISS.0059.0001W] Interrupted [ISC.0049.9005] Input validation for service ‘EventTester:EventTesterProcessInventoryLowEvent’ failed: ‘/MyInput VV-005 [ISC.0082.9034] Field is absent, field must exist’
So it seems that the EDA platform does not forward the event content correctly. Any idea how I would be able to read the event content in my EventTester:EventTesterEmitInventoryLowEvent service? Thanks for your help!
Best regards,
Thomas