how to signal MQ a failure through service Activity
we have implemented MQ integration in Pega 7.3.1 ,for now we are able to establish andshake between Pega,MQ Queue (Middle ware).
we are seeing a problem in this Setup,if we send a message from MQ which is not valid(expecting JSON,but instead we are sending a pain text) then service parse rule is failing and signaling MQ a failure which in then pushing the queue item to black out queue.
But if we receive a valid data and want to do a validation on the JSON after parsing inside service activity.we are not able to signal a failure.
Any idea how to signal MQ about failure.
***Edited by Moderator Marissa to update Content Type from Discussion to Question***
You can try the below configuration.
Create an Error Page in Service activity with Error code and Error message for any error occurred in service activity.
Configure Service error option in response tab as below which will execute based on when condition result.
The when condition checks error page has values in it, if true executes the message as configured.