2 Replies Latest reply on Dec 7, 2006 10:05 PM by kukeltje

    Decision Node Problems

    highlnd

      I'm trying to test out a simple decision node. So I have the XML as this:

      [decision name="Date Less Than Two Weeks"]
      [handler class="com.baerresengroup.bpm.SaleDateDecision"/]
      [transition name="Yes" to="Approve Order Form"][/transition]
      [transition name="No" to="Approve Purchase Order"][/transition]
      [/decision]

      And for my handler class I have this:

      public class SaleDateDecision implements DecisionHandler {

      public String decide(ExecutionContext executionContext) throws Exception {
      return "No";
      }
      }

      It just goes to the No transition for testing purposes. However, when the token gets to the decision node in the process using the test web app I get the exception below. Can anyone shed some light on this problem? Thanks!

      javax.faces.FacesException: Error calling action method of component with id taskform:transitionButton
      org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
      javax.faces.component.UICommand.broadcast(UICommand.java:106)
      javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
      javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
      org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
      org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
      org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
      org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
      org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

        • 1. Re: Decision Node Problems
          highlnd

          Well after much testing, I realize that this cryptic error meant that it wasn't finding my handler class for the decision node. FYI, in case anyone else sees this problem.

          • 2. Re: Decision Node Problems
            kukeltje

            the above error can have many causes. The error you see is in the browser. In the server side stacktrace there is, in many cases, a more specific error like class not found or others.