Loop ForEach in Orchestra component

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Loop ForEach in Orchestra component

rnaudin-3
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 :



<![CDATA[1]]>



<![CDATA[count($XC01PLResponse.xc01ResponsePart/ecarts/ecart)]]>






<![CDATA[$XC01PLResponse.xc01ResponsePart/ecarts/ecart[$compteur]/xsd:CodePeriode]]>



<![CDATA[$output.ReleveDetteResponse/tns:ecarts/tns:ecart[$compteur]/tns:CodePeriode]]>








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 --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Loop ForEach in Orchestra component

rnaudin-3
Hi,


This bug has been corrected in orchestra-core that is integrated in the
snapshot version of petals-se-orchestra.
So, either you replace the foreach by a while in bpel process or you use
the snapshot version.

Best regards,

Nicolas SALATGE.


nguyen a écrit :
:
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 :























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






--
eBM WebSourcing logo
*Nicolas SALATGE*
Research Engineer at eBM WebSourcing
10 av. de l'Europe, Parc Technologique du Canal - 31 520 Ramonville St
Agne, France
contact | [hidden email]
- phone | + 33 (0) 5 34 32
03 11




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

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

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

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Loop ForEach in Orchestra component

rnaudin-3
In reply to this post by rnaudin-3
Hi,

Thank you very much for your new. But can you me tell where I can download the petals-se-orchestra component, snapshot version ? In the component download area, I found only petals-se-orchestra-1.0.1.zip !

Best regard




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

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

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

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Loop ForEach in Orchestra component

rnaudin-3
In reply to this post by rnaudin-3
Hi,


The snapshot version of petals-se-orchestra is in the trunk of PEtALS
at: svn checkout <a href="svn://svn.forge.objectweb.org/svnroot/petals/trunk." target="_blank">svn://svn.forge.objectweb.org/svnroot/petals/trunk. You
downloads the sources using SVN client like TortoiseSVN on Windows. You
must compile it (mvn clean; mvn).


Best regard

nguyen a écrit :
:
Hi,

Thank you very much for your new. But can you me tell where I can
download the petals-se-orchestra component, snapshot version ? In the
component download area, I found only petals-se-orchestra-1.0.1.zip !

Best regard






--
eBM WebSourcing logo
*Nicolas SALATGE*
Research Engineer at eBM WebSourcing
10 av. de l'Europe, Parc Technologique du Canal - 31 520 Ramonville St
Agne, France
contact | [hidden email]
- phone | + 33 (0) 5 34 32
03 11




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

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

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

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Loop ForEach in Orchestra component

rnaudin-3
In reply to this post by rnaudin-3
Hi,

I tried to use the While activity in my bpel process for replace the ForEach. But it don't work correctly. In fact, I got the following error :
Code:

22 dÚc. 2008 13:55:45 org.ow2.orchestra.lang.jaxen.XPathEvaluator createElement
GRAVE: cannot create element for step with non-numeric predicate: [(DefaultNameS
tep): tns:ecart]
[Petals.Container.Components.petals-se-orchestra]-SEVERE 2008-12-22 13:55:45,233
 OrchestraException: Message can not be processed


This is my code :
Code:


           
               
                   
               
               
           


           
           
               
                   
                       
                           
                       
                       
                           
                       
                   
                 
               
                   
                       
                           
                       
                       
                   
               
           



However, my bpel process work correctly when I replace the While activity by an sequence of clauses :
Code:

           
                   
                       
                           
                       
                       
                           
                       
                   
                   
                       
                           
                       
                       
                           
                       
                   

                        . . . . . .
                 

             




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

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

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

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Loop ForEach in Orchestra component

rnaudin-3
In reply to this post by rnaudin-3
Hi,

I downloaded the petals-se-orchestra-1.0.2-SNAPSHOT from the site <a href="svn://svn.forge.objectweb.org/svnroot/petals," target="_blank">svn://svn.forge.objectweb.org/svnroot/petals, compiled by mvn and deployed in my petals instance.
However, I got always the error : "receive an ERROR status :{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure" with the ForEach bpel clause.

This is my bpel code :
Code:


           
               
           
           
           
               
                       
                           
                       
                       
                           
                       
                   

           
       


And the error given by Petals is :
Code:

nitializer.java:157)
        at org.ow2.orchestra.definition.element.To$$EnhancerByCGLIB$$8032059f.se
tValue()
        at org.ow2.orchestra.definition.element.Copy.execute(Copy.java:58)
        at org.ow2.orchestra.definition.activity.Assign.executeBusinessLogic(Ass
ign.java:51)
        at org.ow2.orchestra.definition.activity.AutomaticActivity.executeActivi
ty(AutomaticActivity.java:40)
        at org.ow2.orchestra.definition.activity.AbstractActivity.execute(Abstra
ctActivity.java:168)
        at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyI
nitializer.java:157)
        at org.ow2.orchestra.definition.activity.Assign$$EnhancerByCGLIB$$91a7a7
c8.execute()
        at org.jbpm.pvm.internal.model.op.ExecuteNode.perform(ExecuteNode.java:5
5)
        at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(
ExecutionImpl.java:1000)
        at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(Exec
utionImpl.java:558)
        at org.jbpm.pvm.internal.model.ExecutionImpl.execute(ExecutionImpl.java:
468)
        at org.ow2.orchestra.definition.activity.Scope.executeActivity(Scope.jav
a:113)
        at org.ow2.orchestra.definition.activity.AbstractActivity.execute(Abstra
ctActivity.java:168)
        at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyI
nitializer.java:157)
        at org.ow2.orchestra.definition.activity.Scope$$EnhancerByCGLIB$$eb2b967
.execute()
        at org.jbpm.pvm.internal.model.op.ExecuteNode.perform(ExecuteNode.java:5
5)
        at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(
ExecutionImpl.java:1000)
        at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(Exec
utionImpl.java:558)
        at org.jbpm.pvm.internal.model.ExecutionImpl.execute(ExecutionImpl.java:
468)
        at org.ow2.orchestra.definition.activity.ForEach.sequentialFor(ForEach.j
ava:235)
        at org.ow2.orchestra.definition.activity.ForEach.executeActivity(ForEach
.java:192)
        at org.ow2.orchestra.definition.activity.AbstractActivity.execute(Abstra
ctActivity.java:168)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyI
nitializer.java:157)
        at org.ow2.orchestra.definition.activity.ForEach$$EnhancerByCGLIB$$c4186
dbd.execute()
        at org.jbpm.pvm.internal.model.op.ExecuteNode.perform(ExecuteNode.java:5
5)
        at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(
ExecutionImpl.java:1000)
        at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(Exec
utionImpl.java:558)
        at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:3
81)
        at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:3
75)
        at org.ow2.orchestra.services.Receiver$SignalExecCommand.execute(Receive
r.java:120)
        at org.ow2.orchestra.services.Receiver$SignalExecCommand.execute(Receive
r.java:107)
        at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultComman
dService.java:42)
        at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(Stand
ardTransactionInterceptor.java:54)
        at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentI
nterceptor.java:40)
        at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.j
ava:52)
        at org.ow2.orchestra.services.Receiver.handle(Receiver.java:177)
        at org.ow2.petals.engine.orchestra.jbi.JBIReceiver.onJBIMessageReceived(
JBIReceiver.java:186)
        at org.ow2.petals.engine.orchestra.listener.JBIListener.onJBIMessage(JBI
Listener.java:159)
        at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
processInOutAsProvider(MessageExchangeProcessor.java:524)
        at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
processAsProvider(MessageExchangeProcessor.java:421)
        at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
process(MessageExchangeProcessor.java:308)
        at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
run(MessageExchangeProcessor.java:145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[Petals.Container.Components.petals-se-orchestra]-INFO 2008-12-23 10:41:57,600 s
tate of the execution = active
[Petals.Container.Components.petals-se-orchestra]-INFO 2008-12-23 10:41:57,663 d
elete the execution
[Petals.Container.Components.petals-se-orchestra]-SEVERE 2008-12-23 10:41:57,663
 The MessageExchange state and the current Role do not allow this operation.
javax.jbi.messaging.MessagingException: The MessageExchange state and the curren
t Role do not allow this operation.
        at org.objectweb.petals.jbi.messaging.exchange.MessageExchangeImpl.setFa
ult(MessageExchangeImpl.java:297)
        at org.objectweb.petals.jbi.messaging.exchange.MessageExchangeDecorator.
setFault(MessageExchangeDecorator.java:297)
        at org.ow2.petals.component.framework.message.ExchangeImpl.setFault(Exch
angeImpl.java:291)
        at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
processInOutAsProvider(MessageExchangeProcessor.java:537)
        at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
processAsProvider(MessageExchangeProcessor.java:421)
        at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
process(MessageExchangeProcessor.java:308)
        at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
run(MessageExchangeProcessor.java:145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[Petals.Container.Components.petals-sample-client-1.5-SNAPSHOINFO 2008-12-23 10:
41:57,663 process(org.objectweb.petals.jbi.messaging.exchange.types.InOutImpl@b4
4cf3)


But when I replace the ForEach bpel clause by a sequence of copy clauses. It works correctly !
Code:


                     
                       
                           
                       
                       
                           
                       
                   

                       
                           
                       
                       
                           
                       
                   

                       
                           
                       
                       
                           
                       
                   





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

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

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

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Loop ForEach in Orchestra component

rnaudin-3
In reply to this post by rnaudin-3
Hi,

I think that it is a bug in the orchestra core. Could you send me your
bpel and wsdl file to realize some tests.


Best regards.


nguyen a écrit :
:
Hi,

I downloaded the petals-se-orchestra-1.0.2-SNAPSHOT from the site
<a href="svn://svn.forge.objectweb.org/svnroot/petals," target="_blank">svn://svn.forge.objectweb.org/svnroot/petals, compiled by mvn and
deployed in my petals instance.
However, I got always the error : "receive an ERROR status
:{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure"
with the ForEach bpel clause.

This is my bpel code :
*Code:*





















And the error given by Petals is :
*Code:*

nitializer.java:157)
at
org.ow2.orchestra.definition.element.To$$EnhancerByCGLIB$$8032059f.se
tValue()
at org.ow2.orchestra.definition.element.Copy.execute(Copy.java:58)
at
org.ow2.orchestra.definition.activity.Assign.executeBusinessLogic(Ass
ign.java:51)
at
org.ow2.orchestra.definition.activity.AutomaticActivity.executeActivi
ty(AutomaticActivity.java:40)
at
org.ow2.orchestra.definition.activity.AbstractActivity.execute(Abstra
ctActivity.java:168)
at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyI
nitializer.java:157)
at
org.ow2.orchestra.definition.activity.Assign$$EnhancerByCGLIB$$91a7a7
c8.execute()
at
org.jbpm.pvm.internal.model.op.ExecuteNode.perform(ExecuteNode.java:5
5)
at
org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(
ExecutionImpl.java:1000)
at
org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(Exec
utionImpl.java:558)
at
org.jbpm.pvm.internal.model.ExecutionImpl.execute(ExecutionImpl.java:
468)
at
org.ow2.orchestra.definition.activity.Scope.executeActivity(Scope.jav
a:113)
at
org.ow2.orchestra.definition.activity.AbstractActivity.execute(Abstra
ctActivity.java:168)
at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyI
nitializer.java:157)
at
org.ow2.orchestra.definition.activity.Scope$$EnhancerByCGLIB$$eb2b967
.execute()
at
org.jbpm.pvm.internal.model.op.ExecuteNode.perform(ExecuteNode.java:5
5)
at
org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(
ExecutionImpl.java:1000)
at
org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(Exec
utionImpl.java:558)
at
org.jbpm.pvm.internal.model.ExecutionImpl.execute(ExecutionImpl.java:
468)
at
org.ow2.orchestra.definition.activity.ForEach.sequentialFor(ForEach.j
ava:235)
at
org.ow2.orchestra.definition.activity.ForEach.executeActivity(ForEach
.java:192)
at
org.ow2.orchestra.definition.activity.AbstractActivity.execute(Abstra
ctActivity.java:168)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyI
nitializer.java:157)
at
org.ow2.orchestra.definition.activity.ForEach$$EnhancerByCGLIB$$c4186
dbd.execute()
at
org.jbpm.pvm.internal.model.op.ExecuteNode.perform(ExecuteNode.java:5
5)
at
org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(
ExecutionImpl.java:1000)
at
org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(Exec
utionImpl.java:558)
at
org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:3
81)
at
org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:3
75)
at
org.ow2.orchestra.services.Receiver$SignalExecCommand.execute(Receive
r.java:120)
at
org.ow2.orchestra.services.Receiver$SignalExecCommand.execute(Receive
r.java:107)
at
org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultComman
dService.java:42)
at
org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(Stand
ardTransactionInterceptor.java:54)
at
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentI
nterceptor.java:40)
at
org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.j
ava:52)
at org.ow2.orchestra.services.Receiver.handle(Receiver.java:177)
at
org.ow2.petals.engine.orchestra.jbi.JBIReceiver.onJBIMessageReceived(
JBIReceiver.java:186)
at
org.ow2.petals.engine.orchestra.listener.JBIListener.onJBIMessage(JBI
Listener.java:159)
at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
processInOutAsProvider(MessageExchangeProcessor.java:524)
at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
processAsProvider(MessageExchangeProcessor.java:421)
at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
process(MessageExchangeProcessor.java:308)
at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
run(MessageExchangeProcessor.java:145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
[Petals.Container.Components.petals-se-orchestra]-INFO 2008-12-23
10:41:57,600 s
tate of the execution = active
[Petals.Container.Components.petals-se-orchestra]-INFO 2008-12-23
10:41:57,663 d
elete the execution
[Petals.Container.Components.petals-se-orchestra]-SEVERE 2008-12-23
10:41:57,663
The MessageExchange state and the current Role do not allow this
operation.
javax.jbi.messaging.MessagingException: The MessageExchange state and
the curren
t Role do not allow this operation.
at
org.objectweb.petals.jbi.messaging.exchange.MessageExchangeImpl.setFa
ult(MessageExchangeImpl.java:297)
at
org.objectweb.petals.jbi.messaging.exchange.MessageExchangeDecorator.
setFault(MessageExchangeDecorator.java:297)
at
org.ow2.petals.component.framework.message.ExchangeImpl.setFault(Exch
angeImpl.java:291)
at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
processInOutAsProvider(MessageExchangeProcessor.java:537)
at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
processAsProvider(MessageExchangeProcessor.java:421)
at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
process(MessageExchangeProcessor.java:308)
at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.
run(MessageExchangeProcessor.java:145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
[Petals.Container.Components.petals-sample-client-1.5-SNAPSHOINFO
2008-12-23 10:
41:57,663
process(org.objectweb.petals.jbi.messaging.exchange.types.InOutImpl@b4
4cf3)



But when I replace the ForEach bpel clause by a sequence of copy
clauses. It works correctly !
*Code:*































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

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

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




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

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

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

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Loop ForEach in Orchestra component

rnaudin-3
In reply to this post by rnaudin-3
Hi,

You find here a simple example using ForEach bpel instruction for your debug.

process.wsdl file :
Code:


        targetNamespace="http://exemple.bpel.acoss.fr/test"
        xmlns:tns="http://exemple.bpel.acoss.fr/test"
        xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
        xmlns="http://schemas.xmlsoap.org/wsdl/"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        >

   
   
                        targetNamespace="http://exemple.bpel.acoss.fr/test"
                xmlns="http://www.w3.org/2001/XMLSchema">

           
                   
                       
                     
                     
                      
                      
                     

                     

                   

                   

           



           
                   
                       
                     
                     
                      
                      
                     

                     

                   

                   

           

       

   



   
   
       
   

   
       
   


   
   

   
   
       
           
           
       

   


 
    
 
    
       
                  transport="http://schemas.xmlsoap.org/soap/http" />
         
         
         
         
                             namespace="http://exemple.bpel.acoss.fr/test" />
          
          
                              namespace="http://exemple.bpel.acoss.fr/test" />
          

      

      
   

     
    
 
   
       
          
       

   


   
   
       
   
   




process.bpel file :
Code:

         targetNamespace="http://exemple.bpel.acoss.fr/test"
         suppressJoinFailure="yes"
         xmlns:tns="http://exemple.bpel.acoss.fr/test"
         xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
         xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable">

   
               importType="http://schemas.xmlsoap.org/wsdl/" />
         
             
   
   
             
   
       
                             partnerLinkType="tns:foreachTest"
                     myRole="foreachTestProvider"
                     />
   

 
             
   
   
             
   
       
                          messageType="tns:foreachTestRequestMessage"/>
                 
       
                          messageType="tns:foreachTestResponseMessage"/>
   


             
   
   
   
             
   
       
       
                         portType="tns:foreachTest"
                 operation="process" variable="input"
                 createInstance="yes"/>
       
       
       
           
               
           
           
           
               
                  
                       
                           
                       
                       
                           
                       
                   
                   
                       
                           
                       
                       
                           
                       
                   
               

           
       
       
                       partnerLink="client"
               portType="tns:foreachTest"
               operation="process"
               variable="output"
               />
   






Test Data :
Code:


     
         Title1
         20
     

     
         Title2
         30
     




However, the example works correctly if we replace the ForEach bloc by the sequence :
Code:


                  
                       
                           
                       
                       
                           
                       
                   
                   
                       
                           
                       
                       
                           
                       
                   

                       
                           
                       
                       
                           
                       
                   
                   
                       
                           
                       
                       
                           
                       
                   

               



Joyeux Noel
Best regards




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

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

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

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users