[jboss-user] [JBoss jBPM] - Re: Error in node-->TaskNode
harderwu
do-not-reply at jboss.com
Sat Aug 12 10:06:36 EDT 2006
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
More information about the jboss-user
mailing list