thank you very much!
i am debugging in my code:
        public class AjaxServletTest extends HttpServlet {
  |             protected void processRequest(HttpServletRequest request,
  |                             HttpServletResponse response, String method)
  |                             throws ServletException, IOException {
  | 
  |                     JbpmContext jbpmContext = 
JbpmContext.getCurrentJbpmContext();
  | 
  |                     String taskInstanceID = 
request.getParameter("taskInstanceID");
  |                     String transitionIndex = 
request.getParameter("transitionIndex");
  | 
  |                     long tasdInstanceIDLong = (new 
Long(taskInstanceID)).longValue();
  |                     int transitionIndexInt = (new 
Integer(transitionIndex)).intValue();
  | 
  |                     TaskMgmtSession taskMgmtSession = 
jbpmContext.getTaskMgmtSession();
  |                     
  |                     TaskInstance taskInstance = taskMgmtSession
  |                                     .loadTaskInstance(tasdInstanceIDLong);
  | 
  |                     List availableTransitions = 
taskInstance.getAvailableTransitions();
  |                     Transition transition = (Transition) 
availableTransitions.get(transitionIndexInt);
  |                     Node node = transition.getTo();
  |                 TaskNode taskNode=(TaskNode)  node;
  |                     Task tptask = taskNode.getTask("JiHongFirstTask");
  |                     PartMaster parma = (PartMaster) 
tptask.getAssignmentDelegation().getInstance();
  |                     String tpstr = parma.getGroupName();
  |                                  }
  | }
hope you understand this!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964773
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to