2 Replies Latest reply on Feb 2, 2009 6:15 PM by kukeltje

    task node does not have leaving transition

      I have a jBPM Task with two tranisition

      <task-node name="QuoteApproval" end-tasks="true">
       <task name="QuoteApprove">
       <description>
       Approve/Reject the Quote
       </description>
       <assignment actor-id="#{inquireHome.instance.salesRepEmail}"/>
       </task>
       <transition to="CreateOrder" name="toCreateOrder"></transition>
       <transition to="RejectedRequest" name="toRejectedRequest"></transition>
       </task-node>
      


      if I have a transition name mentioned on the EndTask I get an error "javax.ejb.EJBTransactionRolledbackException: task node does not have leaving transition 'toCreateOrder'".
      It works fine when no transition name is mentioned.


      Below code works fine
      @EndTask
       public String updateQuote()
       {
       return "closeRequest";
       }
      

      EndTask with Transition name doesnot work
      @EndTask(transition="toCreateOrder")
       public String updateQuote()
       {
       return "closeRequest";
       }
      
      


      Any Ideas!