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)