After long period of working on SOA suite, still i am confusing in usage of CountNodes and Count fun in Bpel. I couldn't find simple explanation so i landed here.
Can some please tell me the difference between CountNodes and count function in Bpel and when to use these functions.
Recently i create Bpel 1.0 service and used while loop for my scenario, in which i given CountNodes function, This worked fine. Later i tried the same case with Bpel 2.0 and in For each activity and gave countNodes function for getting final value, but this time it got failed. Later i tried with count function and got success.
Now it so happened with Bpel 1.0 and bpel 2.0.
I would appreciate if some one help me in understanding above function.
count is a xpath standard function, countNodes is an Oracle BPEL extension function, they both do the same, but Oracle now recommends using count...
There's a note in this document http://docs.oracle.com/cd/E23943_01/dev.1111/e10224/bp_appx_functs.htm#CJACABGA While the countNodes function is still available for use, Oracle recommends that you use version 1.0 of the XPath count() function to return the size of the elements as an integer.