1 2 Previous Next 17 Replies Latest reply on Nov 9, 2007 4:14 AM by fabianw Go to original post
      • 15. Re: jBPM message passing problem
        fabianw Newbie

        OK, I solved my problem with the empty response-map, but I have to hijack this thread again :)

        Two more questions:
        1) I use a jboss-esb.xml based on the one from the bpm_orchestration1 quickstart. To start the process the BPMProcessor is used twice. Once with command=NewProcessInstanceCommand and second command=SignalCommand. In which one of these do I write the object-path mappings? At the moment I did it in both, but not sure if this is necessary
        2) I have a web service with several methods. Most of them work fine, but for some methods the variables in the request-map get lost.

        @WebMethod
        @WebResult(name = "istBestellt")
        public boolean WurdeRechnungBestellt(@WebParam(name = "auftragsNr") String auftragsNr, @WebParam(name = "lieferantenNr") String lieferantenNr)
        {
         System.out.println("[WurdeRechnungBestellt] Auftragsnummer: " + auftragsNr + " Lieferantennummer: " + lieferantenNr);
         return true;
        }
        
        @WebMethod
        @WebResult(name="istUeberwiesen")
        public boolean UeberweiseRechnung(@WebParam(name = "auftragsNr") String auftragsNr, @WebParam(name = "rechnungsBetrag") double rechnungsBetrag)
        {
         System.out.println("[UeberweiseRechnung] Auftragsnummer: " + auftragsNr + " Betrag: " + Double.toString(rechnungsBetrag));
         return true;
        }


        The second method works fine and outputs the following:
        18:05:59,671 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
        18:05:59,671 INFO [STDOUT] Request map is: {UeberweiseRechnung.rechnungsBetrag=599.99, UeberweiseRechnung.auftragsNr=A1}
        18:05:59,671 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
        18:05:59,671 INFO [STDOUT] [UeberweiseRechnung] Auftragsnummer: A1 Betrag: 599.99
        18:05:59,687 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
        18:05:59,687 INFO [STDOUT] Response Map is: {UeberweiseRechnungResponse.istUeberwiesen=true}
        18:05:59,687 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&


        But the output of the first one is empty:
        18:06:24,203 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
        18:06:24,203 INFO [STDOUT] Request map is: {WurdeRechnungBestellt.auftragsNr=A1, WurdeRechnungBestellt.lieferantenNr=L1}
        18:06:24,203 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
        18:06:24,781 INFO [STDOUT] [WurdeRechnungBestellt] Auftragsnummer: Lieferantennummer:
        18:06:24,796 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
        18:06:24,796 INFO [STDOUT] Response Map is: {WurdeRechnungBestelltResponse.istBestellt=true}
        18:06:24,796 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

        Both strings are null. How can this happen? I can't see any difference between those two methods. What can go wrong after the request-map is filled?

        • 16. Re: jBPM message passing problem
          Kurt Stam Master

          Hi Fabian,


          1) I use a jboss-esb.xml based on the one from the bpm_orchestration1 quickstart. To start the process the BPMProcessor is used twice. Once with command=NewProcessInstanceCommand and second command=SignalCommand. In which one of these do I write the object-path mappings? At the moment I did it in both, but not sure if this is necessary

          You need it in both places.


          Both strings are null. How can this happen?

          No idea.. Can you hook up the debugger?

          --Kurt

          • 17. Re: jBPM message passing problem
            fabianw Newbie

            Unfortunately I don't know how to debug this, other than with some System.out.println lines...

            Is there some sort of tutorial how to debug with the RHDS? At the moment I only use Ant to deploy and invoke my services, and i think it's not possible to debug this way, isn't it?

            1 2 Previous Next