2 Replies Latest reply on Oct 28, 2008 8:01 PM by claman

    Problem with reply in pick.

    claman

      Hello,
      reply activity doesn't work when it is into pick.
      I'm using jbossAS 4.2.3 and jbpm-bpel 1.1.1 and I have the follow bpel

      <pick name="activity">
       <correlations><correlation set="userInteraction" initiate="no"/></correlations>
       <onMessage operation="first" variable="request" partnerLink="caller" portType="tns:ServicePort">
       <correlations><correlation set="userInteraction" initiate="no"/></correlations>
      
       <assign>
       <copy>
       <from expression="'guest'"/>
       <to variable="response" part="text" />
       </copy>
       </assign>
       <reply operation="trasporto" variable="response" partnerLink="caller" portType="tns:ServicePort">
       </reply>
       </onMessage>
       <onMessage operation="second"...>
       ...
       </onMessage>
      </pick>
      

      Sending "first" message, relative activity is executed but the reply doesn't work.
      The client is waiting for response and at the end an error message is generated like:

      javax.xml.rpc.soap.SOAPFaultException: The service is not in an appropiate state for the requested operation
       at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
      


      The correlation is initiated in the first receive with createInstance='yes' and his value is guest, so correlations match.
      Besides this, If I use onAlarm I have the exception:

      java.lang.IllegalStateException: Unable to persister timer



      Can anyone help me?
      Thank a lot.


        • 1. Re: Problem with reply in pick.
          aguizar

          The operation attribute in the reply element should match the partner link, and operation in the related receive/onMessage element.

          • 2. Re: Problem with reply in pick.
            claman

            Hello,
            I made a mistake when I posted the problem, so in my bpel the operation attribute has the same value in both onMessage and reply activity.
            In spite of this, the bpel doesn't work correctly.
            Another tips?

            Thanks a lot!