1 Reply Latest reply on Aug 29, 2009 11:33 AM by Tom Cunningham

    problem JBossEsb 4.5

    mohamed Ben ayed Newbie

      this is my processimage and I hope that you understand my problem
      [img]http://img88.imageshack.us/img88/8862/processimage.jpg[/img]
      I don't need the StartProcesInstance command. I have two transitions from the esbService node "Calculate Discount". In this node I implement a drool which compare two numbers and route to an other service that execute an action containing "SignalCommand" (transition "installation réussite" if numbers are equals or transition "installation partielle" if not).
      SO
      in jboss-esb.xml I implement the service:

      <service category="Service operator" name="DiscountService"
       description="DiscountService">
       <listeners>
       <jms-listener name="ESB-Listener" busidref="discountServiceEsbChannel" />
       </listeners>
       <actions>
      
       <action class="org.jboss.soa.esb.actions.ContentBasedRouter" name="discount_calc">
       <property name="ruleSet" value="Discount_Rules.drl" />
       <property name="ruleReload" value="true" />
       <property name="destinations">
       <route-to destination-name="Service1" service-category="NumberNotEquals" service-name="NumberNotEqualsService" />
       <route-to destination-name="Service2" service-category="NumberEquals" service-name="NumberEqualsService" />
      
       </property>
       <property name="object-paths">
       <object-path esb="body.orderItem1" />
       </property>
       </action>
       </actions>
       </service>
      

      In the service "NumberNotEquals" I implement
      <service category="NumberNotEquals" name="NumberNotEqualsService">
       <listeners>
       <jms-listener name="conciergeServiceEsbChannel"
       busidref="conciergeServiceEsbChannel">
       </jms-listener>
       </listeners>
       <actions >
       <action name="route_to_number_not_equals" class="org.jboss.soa.esb.services.jbpm.actions.bpmProcessor" >
       <property name="command" value="SignalCommand" />
       <property name="transition-name" value="installation_partielle"></property>
       <property name="esbToBpmVars">
       <mapping esb="BODY_CONTENT" bpm="entireOrderAsXML"/>
       </property>
       </action>
       </actions>
       </service>
      

      but this didn't work and I have an error when I deploy the project.
      I read in some articles that I have to use JbpmCallback instead of bpmProcessor, I do it and I deploy successfully but the process transit to the default transition (first transition written in processdefinition.xml)
      I read the bpm quickstarts and all documentations of JbossESB 4.5 GA but I didn't found a solution
      could you please help me to find a solution for this problem[/img]