3 Replies Latest reply on Oct 4, 2006 5:08 PM by kvak_tnt

    BPEL - receive - invoke

    kvak_tnt

      Hi there!

      small question:
      If I code a receive-Operation in my BPEL - Process - why is my java-code in my partner_impl.java not executed?
      Do I need to invoke every operation I wanna start?

      Greetings

      Claus

        • 1. Re: BPEL - receive - invoke
          aguizar

          Hi Claus,

          I don't get it. You say you have a receive (activity?) and then ask why the code in your partner service is not executed. To call other a partner service from your process, you'd use the invoke activity, but I don't believe that's your question.

          Can you rephrase or use an example?

          -Alex

          • 2. Re: BPEL - receive - invoke
            kvak_tnt

            I think I'll rewrite it here:

            <sequence name="START">
            <receive operation="connectMe" partnerLink="atm" portType="atm:FrontEnd" variable="agilproReq"/>
            


            I have implemented a connectMe operation in my agilpro_impl.java file (partner relation) and added the following code (for test purpose):
            System.out.println("**** connectMe ****");
            


            So I see allways a log message in jBOSS console everytime an operation is performed.

            If I start a receive operation like above - this code is not performed. The only way - I now found out - is the following:
            sequence name="START">
            <receive operation="connectMe" partnerLink="atm" portType="atm:FrontEnd" variable="agilproReq"/>
            <invoke inputVariable="agilproReq" name="initialConnect" operation="connectMe" partnerLink="agilpro" portType="agi:AgilproIssuer"/>
            


            Like above: If I first use a receive on the atm relation and
            then an invoke on the partner relation - my code works.

            The only thing now: will this cause problems later on?
            Or would you say it is "good code"?

            Greetings

            Claus


            • 3. Re: BPEL - receive - invoke
              kvak_tnt

              OK ... I've found my error... :-)

              If I call atm Relation with frontend...
              I should add my code into the frontend_impl.java.

              That was my fault!

              Greetings

              Claus