cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to manually set message tatus in CPI MessageProcessingLog?

0 Kudos
921

Hi,

I want to send back to my requester custom reply if my integration logic works correctly. Requester connecting to Inflow via HTTP adapter, as HTTP is synchronous, when message ends I want to send custom reply for example:
<reply>

<Message> All good</Message>

<StatusCode>200</StatusCode>

</reply>

I found that it's possible to do only when message ends with COMPLETED status.

If I have exception subprocess where I also adjusting response as example :

<reply>

<Message> Error</Message>

<StatusCode>404</StatusCode>

</reply>

, it should end with End Message. Otherwise using End Error it will send Default Error message to requester (as synchronous HTTP response).

Logic works but in that case all messages neither they are failed or completed are COMPLETED in message monitoring and that makes support monitoring very hard.

 

Accepted Solutions (0)

Answers (1)

Answers (1)

manoj_khavatkopp
Active Contributor

Hi Andrejs,

No cannot override the standard message status , that is set on the type of end event you use in flow .

However you can use property SAP_MessageProcessingLogCustom and set any custom value to this this won't change main status but will add additional status in log.

Thanks,

Manoj