cancel
Showing results for 
Search instead for 
Did you mean: 

Possible boolean conditions for tag occurence

Former Member
0 Kudos

Hi,

I have a schema definition :

<MSG>

<ORDERS05 /> 0 ..1

<DELVRY03 /> 0 ..1

<INVOIC01 /> 0 ..1

</MSG>

and now I need to write a condition for a Interface Determination.

Now I have e.g. : "count(/p1:MSG/ORDERS05) = 1" where p1 is a namespace.

But in runtime I get an error : "Not receiver coud be determined.

Any help is very appreciated.

Thanks.

Marian

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

this will work for sure:)

/p1:MSG [count(/p1:MSG/ORDERS05) = 1] <b>EX</b>

where: /p1:MSG [count(/p1:MSG/ORDERS05) = 1]

is an Xpath

and EX is a condition in the <b>conditon editor</b>

Regards,

michal

stefan_grube
Active Contributor
0 Kudos

The receiver determination works as an existence check for the XPATH expression.

An XPATH can produce multiple nodes. The receiver determination accepts the receiver when the XPATH produces at least one node. Otherwise the receiver is denied.

If you want to check the existence of a node, just enter the path to the node, that's it.

/p1:MSG/ORDERS05 <b>EX</b>

Regards

Stefan

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

If you want to check for the TAG occurence in the Receiver Determiantion,

just use the condition as NOT NULL or NOT EQUAL TO.

COUNT function cannot be used in the Receiver Determination.

Regards,

Bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

>>>>COUNT function cannot be used in the Receiver Determination.

why not?

Regards,

michal

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Looks like it is actually possible. ( looking at Michal's reply ).

Kindly ignore my previous post and sorry for the confusion.

Regards,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Mike,

u r too fast for me to be able to even accept my mistake

Regards,

Bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

hehe

I've just tried it and it works

look like I have a new topic for a weblog

BTW

don't worry everyone makes mistakes

Regards,

michal

Former Member
0 Kudos

Hi,

It works. I would like to express my thanks to everybody who help me in last few months to find an answers to my questions.

Especcially to Michal Krawczyk for his excelent blogs.

Marian