11 Replies Latest reply on Apr 1, 2009 1:24 PM by elwis

    quickstart bpm_orchestration4

    elwis

      I found this nice example and the good readme file that accompanied it.
      However, it doesn't work for me, the order isnt split up which I suppose mean that something in the "intake order" node went wrong. So the order review task always end with

      "Error completing task: An exception of type "org.jbpm.graph.def.DelegationException" was thrown. The message is: unable to resolve property: entireCustomerAsObject"
      


      Is this a known problem? This example would be nice to modify a little and show the guys

        • 1. Re: quickstart bpm_orchestration4
          beve

          Hi,

          I've just tried this using the main trunk and don't see any errors.
          Can you tell me what version and also the steps you took to test the quickstart?

          Regards,

          /Daniel

          • 2. Re: quickstart bpm_orchestration4
            elwis

            Morning Danny

            Weird, I'll re-deploy and try again, as far as I remember I only run ant deploy. Will get back to it.. when I'm done debugging the Broker...

            • 3. Re: quickstart bpm_orchestration4
              beve

              Also so make sure that you deploy the jBPM process with 'ant deployProcess' after deploying the quickstarts .esb archive.

              • 4. Re: quickstart bpm_orchestration4
                elwis

                interesting point, could it be that it runs my homemade probably not to functional process that I hacked with the actual .esb file.. guess that could be a reason ;)
                can't remember that I did two deploys .. I'll better try that

                • 5. Re: quickstart bpm_orchestration4
                  elwis

                  Nopes, no luck.
                  I removed the old deploy in my jbossesb-server-4.5.GA and started all over.

                  ant deploy
                  ant deployProcess
                  ant startProcess

                  When viewing my task I see that the order is not split up in the different input fields, theres only the entireOrder and I can't save since there no such thing as entireORder as object.

                  Guess smooks is unemployed here?

                  • 6. Re: quickstart bpm_orchestration4
                    elwis

                    I don't need to do any manual magic to get groovy work inside the ESB, do I?


                    • 7. Re: quickstart bpm_orchestration4
                      beve

                      I've gone through the ReadMe.pdf for this quickstart and followed the instructions there and the output matches it.
                      Are you still getting:

                      "Error completing task: An exception of type "org.jbpm.graph.def.DelegationException" was thrown. The message is: unable to resolve property: entireCustomerAsObject"


                      I've been using the code base in main trunk. Are building from trunk or are you using a 4.5 download?



                      • 8. Re: quickstart bpm_orchestration4
                        beve

                         

                        I don't need to do any manual magic to get groovy work inside the ESB, do I?

                        Take a look at the "scripting_groovy" quickstart for an example of using groovy.

                        • 9. Re: quickstart bpm_orchestration4
                          elwis

                          yep,

                          Error
                          Error completing task: An exception of type "org.jbpm.graph.def.DelegationException" was thrown. The message is: unable to resolve property: entireCustomerAsObject


                          I'm watching the log and it says

                          09:47:33,878 INFO [STDOUT] == Begin Intake Service ==
                          09:47:33,878 INFO [STDOUT] DEFAULT: <Order orderId="2" orderDate="Wed Nov 15 13:45:28 EST 2006" statusCode="0"
                          netAmount="59.97" totalAmount="64.92" tax="4.95">
                          <Customer userName="user1" firstName="Rex" lastName="Myers" state="SD"/>
                          <OrderLines>
                          <OrderLine position="1" quantity="1">
                          <Product productId="364" title="Superman Returns" price="29.98"/>
                          </OrderLine>
                          <OrderLine position="2" quantity="1">
                          <Product productId="299" title="Pulp Fiction" price="29.99"/>
                          </OrderLine>
                          </OrderLines>
                          </Order>
                          09:47:33,878 INFO [STDOUT] == End Intake Service ==

                          So its running ...

                          No, about groovy, I just thought maybe the groovy actions in the example didn't work if I didn't do some magic wand trick first ;)

                          Maybe I should just reinstall everything, seem weird if it works for you.

                          • 10. Re: quickstart bpm_orchestration4
                            elwis

                            Nopes.

                            A brand new JBoss in my XP still doesn't make this example run.
                            Are there any other good examples to show off to make my colleagues get a hint about the tools available?

                            Regards

                            • 11. Re: quickstart bpm_orchestration4
                              elwis

                              This error had a solution.
                              It turns out it depends on the locale of the machine running the example.
                              To fix it I had to add the following decoding in my transforms files


                              <jb:value property="orderDate" data="Order/@orderDate" decoder="Calendar">
                              <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
                              <jb:decodeParam name="locale-language">en</jb:decodeParam>
                              <jb:decodeParam name="locale-country">US</jb:decodeParam>
                              </jb:value>