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
      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).
      in jboss-esb.xml I implement the service:

      <service category="Service operator" name="DiscountService"
       <jms-listener name="ESB-Listener" busidref="discountServiceEsbChannel" />
       <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 name="object-paths">
       <object-path esb="body.orderItem1" />

      In the service "NumberNotEquals" I implement
      <service category="NumberNotEquals" name="NumberNotEqualsService">
       <jms-listener name="conciergeServiceEsbChannel"
       <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"/>

      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]