cancel
Showing results for 
Search instead for 
Did you mean: 

condition in receiver determination

Former Member
0 Kudos

Hi,

I am using PI 7.1. My input message is

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_EODReport xmlns:ns0="http://hsbc.com">

<Record>

<ReportDate></ReportDate>

<ACHEODReportFlag></ACHEODReportFlag>

</Record>

</ns0:MT_EODReport>

I want to put a condition in Receiver Determination to check whether <ACHEODReportFlag> tag contains value 'X' . How should i put this condition?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Shilpa

in your receiver determination go to condition editor select XPATH of your required tag and give the condition = 'X'

hope thiw will help you

thanks

sandeep

Former Member
0 Kudos

Hi All,

When i select XPATH in Expression editor, i am not able to see the struture of the message.

and if i manually insert the expression /p1:MT_EODReport/Record/ACHEODReportFlag = X the scenario doesn't work as required.

udo_martens
Active Contributor
0 Kudos

Hi,

check out expression

//ACHEODReportFlag

Regards,

Udo

Former Member
0 Kudos

Hi Udo,

Thanks...Its working.

Answers (2)

Answers (2)

former_member200962
Active Contributor
0 Kudos

>

> Hi,

>

> I am using PI 7.1. My input message is

>

> <?xml version="1.0" encoding="UTF-8"?>

> <ns0:MT_EODReport xmlns:ns0="http://hsbc.com">

> <Record>

> <ReportDate></ReportDate>

> <ACHEODReportFlag></ACHEODReportFlag>

> </Record>

> </ns0:MT_EODReport>

>

> I want to put a condition in Receiver Determination to check whether <ACHEODReportFlag> tag contains value 'X' . How should i put this condition?

Condition Editor of RD....Left operand select Xpath and choose the node that you want click Ok.......from the dropdown select = operator.....Right Operand select Constant and give the value as X....

Shabarish_Nair
Active Contributor
0 Kudos

take the help of Xpath in the condition editor

ref:

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination