[Users] Loop ForEach in Orchestra component

nguyen petals-components at ebmwebsourcing.com
Wed Mar 16 10:25:59 CET 2011


Hi, 

I am using the BPEL ForEach activity in my BPEL process. When I execute my process in the Petals bus, I got an error : the counter variable defined by ForEach is not found.

Anyone could me tell why ?

Thank you.

This is the ForEach clause in my process :

<bpws:forEach parallel="no" counterName="compteur" name="ForEachPeriode">
            <bpws:startCounterValue>
                <![CDATA[1]]>
            </bpws:startCounterValue>
            <bpws:finalCounterValue>
                <![CDATA[count($XC01PLResponse.xc01ResponsePart/ecarts/ecart)]]>
            </bpws:finalCounterValue>
            <bpws:scope>
                <bpws:assign validate="no" name="ExtraiteXC01ResultToReleveDetteResponse">
                    <bpws:copy>
                        <bpws:from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
                            <![CDATA[$XC01PLResponse.xc01ResponsePart/ecarts/ecart[$compteur]/xsd:CodePeriode]]>
                        </bpws:from>
                        <bpws:to expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
                            <![CDATA[$output.ReleveDetteResponse/tns:ecarts/tns:ecart[$compteur]/tns:CodePeriode]]>
                        </bpws:to>
                    </bpws:copy>     
                </bpws:assign>
            </bpws:scope>
        </bpws:forEach>


And this is the Petals error trace :

org.ow2.orchestra.runtime.ForEachRuntime[startCounterValue: 1, finalCounterValue
: 5, n: 4]
19 dÚc. 2008 09:50:36 org.ow2.orchestra.lang.jaxen.XPathExpressionEvaluator eval
uate
GRAVE: expression evaluation failed
org.jaxen.UnresolvableException: variable not found: compteur




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=359#359

-------------------- m2f --------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/040b3f7f/attachment.htm>


More information about the Users mailing list