3 Replies Latest reply on Sep 7, 2008 4:02 AM by c0upal

    JbpmNode Node type with action expression does not continue

    c0upal

      I have a pagedefinition file which has 4 nodes, a START - NODE type - TASK NODE - END NODE.


      The Node type transitions to the TASK node.  I can see that the flow works fine because a taskInstance row is inserted into the JBPMTASKINSTANCE table.  However when i specify an action expression on the NODE type node, The acion expresssion executes but the TASK NODE does not begin executing anymore. I don't see a row on the JBPMTASKINSTANCE getting inserted.


      any ideas?

        • 1. Re: JbpmNode Node type with action expression does not continue
          kukeltje.ronald.jbpm.org

          please show your processdefinition

          • 2. Re: JbpmNode Node type with action expression does not continue
            kukeltje.ronald.jbpm.org

            most likely reason is that when there is no action, the default behaviour of a node is to take the default transition. If you specify an action as the node behaviour (so not on an event) you are the one to make sure a transition is taken

            • 3. Re: JbpmNode Node type with action expression does not continue
              c0upal

              I tried specifying a transition but still doesn't work: Here are my snippets.



              ....
              ....
                   <node name="MyNode">
                        <action expression="#{mysessionBean.testAction}"></action>
                        <transition to="ApproveQuote1" name="quote1"></transition>
                   </node>
              
                   <task-node name="ApproveQuote1"  end-tasks="true">
                        <task name="ApproveQuote1" description="Approve Quote1">
                             <assignment actor-id="bugs"/>
                             <controller></controller>
                        </task>
                        <transition to="Update StatusD" name="deny"></transition>
                        <transition to="UpdateStatusA" name="approve"></transition>
                   </task-node>
              ....
              ....
              




                   @Transition("quote1")
                   public String  testAction(){
                        log.info("Doing Something on the DB");
                        
                        return "quote1";
                        
                        
                   }
              // Tried this also but doesnt work
              /*
                   @Transition("quote1")
                   public void  testAction(){
                        log.info("Doing Something on the DB");
                   }
              */