You don’t need the getLastError service in event subscriber as the error information will be automatically passed to event subscriber service using the specs present at pub.event folder. And i guess, we can’t save the pipeline data in event subscriber too. So, to verify the pipeline data, use tracePipeline.
do you mean pub.flow:tracePipeline? how can I get error detail from this java service ?
I just found ‘level’ as input and no ouput there.
I need error detail as email’s body.
I already set Email notification in my IS web server.
it’s meet my requirement for awhile.
I need the error message for custom subject and body of my email.
create a new service (to subscribe to your event) using the event specifications (inputs and outputs) present under pub.event folder.
For example,
i have created a service called error, with error spec. So it will look like as shown in screenshot.
And then register this service, as a subscriber for error event.
So when an error occurs in the server, it will automatically invokes this service and populates the input data.