[jboss-user] [JBoss jBPM] - About decision node, I need help

ppxiaofei do-not-reply at jboss.com
Thu Oct 12 03:46:38 EDT 2006


Hi, I meet a problem, anyone could help me?
I want to add a DecisionNode in my process definition, this is the first sample:

   <start-state name="start">
  |       <task name="NewApply" swimlane="proposer"></task>
  |       <transition name="" to="DepLeader"></transition>
  |    </start-state>
  |    <task-node name="DepLeaderApprove">
  |       <task name="DepLeaderUpdte" swimlane="depleader"></task>
  |       <transition name="" to="NeedUnitLeader"></transition>
  |    </task-node>
  |    <decision name="NeedUnitLeader">
  |       <handler class="com.test.action.NeedUnitleaderApproveHandler">
  |       </handler>
  |       <transition name="ToUnitLeader" to="UnitLeaderApprove"></transition>
  |       <transition name="ToUser" to="UserConfirm"></transition>
  |    </decision>
  |    <task-node name="UnitLeaderApprove">
  |       <task name="UnitLeaderUpdte" swimlane="unitleader"></task>
  |       <transition name="" to="UserConfirm"></transition>
  |    </task-node>
  |    ...
It is OK.
But I want to add a task node after the DepLeaderApprove node to realize the return to sender function. 
This is the second sample:

   <start-state name="start">
  |       <task name="NewApply" swimlane="proposer"></task>
  |       <transition name="" to="DepLeader"></transition>
  |    </start-state>
  |    <task-node name="DepLeaderApprove">
  |       <task name="DepLeaderUpdte" swimlane="depleader"></task>
  |       <transition name="" to="NeedUnitLeader"></transition>
  |    </task-node>
  |    <task-node name="Modify">
  |       <task name="ModifyApply" swimlane="proposer"></task>
  |       <transition name="" to="DepLeaderApprove"></transition>
  |    </task-node>
  |    <decision name="NeedUnitLeader">
  |       <handler class="com.test.action.NeedUnitleaderApproveHandler">
  |       </handler>
  |       <transition name="ToUnitLeader" to="UnitLeaderApprove"></transition>
  |       <transition name="ToUser" to="UserConfirm"></transition>
  |    </decision>
  |    <task-node name="UnitLeaderApprove">
  |       <task name="UnitLeaderUpdte" swimlane="unitleader"></task>
  |       <transition name="" to="UserConfirm"></transition>
  |    </task-node>
  |    ...
After I deploy this, when the DepLeader open the instance from home page on Node'DepLeaderApprove', an exception throw like this:

type Exception report
  | 
  | message 
  | 
  | description The server encountered an internal error () that prevented it from fulfilling this request.
  | 
  | exception 
  | 
  | javax.servlet.ServletException: Error calling action method of component with id _id1_5:_id4
  | 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
  | 	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)
  | 
  | 
  | root cause 
  | 
  | javax.faces.FacesException: Error calling action method of component with id _id1_5:_id4
  | 	org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  | 	javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | 	javax.faces.component.UIData.broadcast(UIData.java:338)
  | 	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)
Anyone could tell me the reason? thanks 



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977785#3977785

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977785



More information about the jboss-user mailing list