on 06-28-2007 7:30 AM
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
Rather itz better to use the context object than xpath.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
This blog can give you the right approach to XPATH - /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.