cancel
Showing results for 
Search instead for 
Did you mean: 

XPATH does not work in ccBPM

Former Member
0 Kudos

Hi,

I have a problem using XPATH expressions in a ccBPM.

I'm using an XPATH-expression in a fork step, but although the payload of the relevant message is correct, it doesn't seem to work. The XPATH expression is as follows:

IDOC_TO_ISU./ZE_ISU_VDEW_UTILMD_V40/IDOC/ZE1_E1VDEWIDE_1/OBJECT_TYPE EX

I also tried

IDOC_TO_ISU./p1:ZE_ISU_VDEW_UTILMD_V40/IDOC/ZE1_E1VDEWIDE_1/OBJECT_TYPE EX

IDOC_TO_ISU is the name of the container, ZE_ISU_VDEW_UTILMD_V40 ist the root tag of the message, an p1 the namespace of the message.

Further, I used the following expression in a container operation to count the number of elements within a message:

count(/p1:ZE_ISU_VDEW_UTILMD_V40/IDOC/ZE1_E1VDEWIDE_1)

Although there are several ZE1_E1VDEWIDE_1 elements in my message, the result is '0'

Are my XPATH expressions wrong or do XPATH expressions not work in ccBPM in general?

Regards,

Torsten

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Rather itz better to use the context object than xpath.

Former Member
0 Kudos

Hi,

thank you for your contributions.

I had positive experiences with XPATH-expressions in receiver determination, but it seems that it doesn't work in ccBPM.

Using context objects, I cannot query payload fields, so I also do not see how I can solve the problem with context objects.

Has anybody an idea or an example about a successful XPATH expression in ccBPM?

Regards,

Torsten

Former Member
0 Kudos

What are you using in the fork properties...is it Necessary branches or end condition...

Regards,

Ravi

henrique_pinto
Active Contributor
0 Kudos

Torsten,

in general, xpath does work within ccBPM, but of course it is possible you have found some bug.

On what XI version/SP level are your system in?

More specifically, in which step is the problem?

Regards,

Henrique.

agasthuri_doss
Active Contributor
0 Kudos

Hi,

Check the path you mentioned is right ( slashes )

Regards

Agasthuri Doss

Former Member
0 Kudos

Thank you for your support.

@Ravi: I'm using a switch with two branches, not a fork

@Henrique: We use SP18, first XPATH expression is used in a switch step, second ("count") in a container operation

@Agasthuri: I validated my XPATH in XML Spy, using a copy of the payload and the used XPATH expression. In XML Spy, I got the respected result.

Regards,

Torsten

Former Member
0 Kudos

Hi Torsten,

XPATH expressions work in ccBPM........just try to create the XPATH by selecting the node in the graphical xml display of your node structure and dont write anything in the XPATH exp......activate and save your BPM......see if the return code of your bpm process is 0........do a complete cache refresh........then your XPATH exp shall work in your ccBPM.

Thanks,

Rajeev Gupta

Shabarish_Nair
Active Contributor
0 Kudos

This blog can give you the right approach to XPATH - /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination