7 Replies Latest reply on Dec 19, 2007 6:33 PM by kukeltje

    Jboss jBPM/jBoss ESB link

    arutha


      Good afternoon,
      I've been running into a problem the past two days; here's the situation: I'm running jBoss ESB with jBoss jBPM. I've got a process definition running, and I'm calling a service on the buss from that process for serializing an object and attaching it to the message. When I get to the next node of the process however, this attached object is gone.

      I know what the problem is, I've had the same thing about three months back , but the same solution does not seem to apply, mainly because the labels changed, most likely ^^

      Here's the post I made back then, in essense the same problem with an older ESB version: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079172#4079172

      I'm currently running Jboss ESB4.2 MR3 with jBPM integrated.

      Basically, the two main components in this application are the bus definition(jboss-esb.xml) and the jBPM definition (process.xml)

      The node where things go bad in the process definition:

      <node name="ZorgringFormatConversionNode">
       <event type="node-enter">
       <action name="esbAction" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
       <esbCategoryName>ZorgRingConnectServices</esbCategoryName>
       <esbServiceName>ConversionToZorgringFormatService</esbServiceName>
       <millisToWaitForResponse>5000</millisToWaitForResponse>
       <jbpmToEsbVars>
       <mapping jbpm-name="theBody" esb-name="BODY_CONTENT" />
       <mapping jbpm-name="zorgringformat" esb-name="defaultEntry" />
       </jbpmToEsbVars>
       <returnVars>
       <mapping jbpm-name="theBody" esb-name="BODY_CONTENT" />
       <mapping jbpm-name="zorgringformat" esb-name="defaultEntry" />
       </returnVars>
       </action>
       </event>
       <transition name="" to="MEDFormatConversionNode"/>
       </node>


      This node calls a service on the bus, this service calls an actionclass which attaches the object to the message and returns the message to the service. Next, the process goes to the next node. By then, the object is gone.


      I'm sure this has to do with the jbpmToEsbVars and returnVars I'm declaring. I do this on the ESB once when initialising the business process:

      <action name="signal_the_new_process_instance"
       class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor">
       <property name="command" value="SignalCommand" />
       <property name="process-definition-name" value="processMessageDefinition"/>
       <property name="esb-to-jbpm">
       <variables>
       <variable esb-name="eVar1" jbpm-name="counter" value="45" />
       <variable esb-name="BODY_CONTENT" jbpm-name="theBody" />
       <variable esb-name="defaultEntry" jbpm-name="zorgringformat" />
       </variables>
       </property>
       </action>



      And I declare the same jbpmToEsbVars and returnVars on each node. When I'm adding the object, I attach it with the label "zorgringformat"(retrieving it in the same actionclass right after I added it works, so it's simply lost in the process somewhere). Any idea what I'm doing wrong?


        • 1. Re: Jboss jBPM/jBoss ESB link
          arutha


          Additionally, is there a place where I can read predeclared variables?

          <variables>
           <variable esb-name="eVar1" jbpm-name="counter" value="45" />
           <variable esb-name="BODY_CONTENT" jbpm-name="theBody" />
           </variables>


          For example, the ESB variable "BODY_CONTENT" seems to already exist. What is this? I'm assuming this line retrieves the complete body of the message? (though if so, why set the objects attached to the body in seperate variables)

          As I understand it, "name" results in a message.getBody().get( "name" ). Is this so? I'll be happy to be forwarded to some literature where I can find answers my questions, I can't seem to find much documentation on this mapping ~~.

          • 2. Re: Jboss jBPM/jBoss ESB link
            kukeltje

            Arutha,

            What you use here is an implementation of a jBPM actionhandler. This specific one in implemented by the ESB people. Not that I/we do not want to help you, but I think you stand a better change of getting help in the esb user forum. (read the your first post in the topic you refer to ;-))

            _________________
            Ronald
            A kind jBPM user and forum 'addict'

            btw,

            Zorgring? Like in the Dutch word? interesting, maybe we should get in touch someday

            • 3. Re: Jboss jBPM/jBoss ESB link
              arutha


              Yes, a Dutch word. I've been speaking with you a few months back here as well.

              • 4. Re: Jboss jBPM/jBoss ESB link
                koen.aers

                As long as you don't have been drinking dutch beer with him... :-P

                Cheers,
                Koen

                • 5. Re: Jboss jBPM/jBoss ESB link
                  kukeltje

                  Koen,

                  Great you guys FINALLY have a TEMPORARY administration. Luckily there are some preconditions left over from 150 years back: In case there is a period of more than 200 days without an administration all assets (including all brands of Beer) will become the property of the Royal (like in real royal ;-) Kingdom of the Netherlands. So.... start counting

                  • 6. Re: Jboss jBPM/jBoss ESB link
                    koen.aers

                    In that case, I'm moving to single malt...

                    • 7. Re: Jboss jBPM/jBoss ESB link
                      kukeltje

                      hmmmm in that case might I suggest this one, one of my favourites and as with beer, do *not* go for the Dutch Fryske Hynder. Millstone van Zuidam is better, but I did not nose it yet... next week.