Spring = Modelandview Public String Subform (Model model,servletrequest request) {Request.getparameter ("xxxx");}
Struts = actionmappingpublic Actionforward Login (actionmapping mapping, actionform form, httpservletrequest request, HttpServletResponse response) {Request.getparameter ("xxxx");}
Flow chart
/** * Displays the Flowchart page. * * @param mapping * @param form * @param request * @param response * @return * @ author: 710000571 * @version: 1.0 * * modification History: * Date Author Description * ------------- ---------- * may 30, 2009 710000571 initialization */ public actionforward viewprocessmap (Actionmapping mapping, actionform form, httpservletrequest request, httpservletresponse response) { String processinstanceid = request .getparameter (DicConstant.REQ_KEY_ PROCESS_INSTANCE_ID); string processdefinitionname = null; string processstatus = null; //first obtains the process name and the current state through Process instance id. if (Stringutils.isnotempty (Processinstanceid)) { requestbean reqbean = (Requestbean) Dtoutils.getreqbeanbyreqmap ( new requestbean (), Request.getparametermap ()); responsebean resbean = Beanlocatorutil.getlocalwfservicemanager (). Getprocessinfobyprocessinstance (Reqbean); reqBean = wfbeanutils.getreqbeanfromres (Reqbean, resbean); processdefinitionname = reqbean.getprocessdefinitionname (); processstatus = Wfbeanutils.getprocessstatus (Resbean); if (log.isdebugenabled ()) { log.debug ("process instance id [" + processInstanceId + "] name[" + processDefinitionName + "); } } //If a process name fails from the workflow center, the process name is obtained from the request. if (Stringutils.isempty (processdefinitionname)) { processdefinitionname = request.getparameter (dicconstant.req_key_process_definition_name); if ( Log.isdebugenabled ()) { log.debug ("process instance name[" + processdefinitionname + "]"); } } // If the current state of the process from the workflow center fails, the current state of the process is obtained from request. if (Stringutils.isempty (processstatus)) { processstatus = Request.getparameter (dicconstant.req_key_process_status); } // If both the workflow and request are unsuccessful, the process name is used as the process's current state. That is, there is no state. if (Stringutils.isempty (processstatus)) { processstatus = processdefinitionname; } if (log.isdebugenabled ()) { Log.debug ("process status[" + processstatus + "]"); } // if (DicConstant.PROCESS_STATUS_END.equalsIgnoreCase ( Processstatus)) {// processstatus = processdefinitionname;// } assert.notnull (processdefinitionname, "get process definition name Failure. "); assert.notnull (processstatus, "get process status failure."); request.setattribute (dicconstant.req_key_process_definition_name, Processdefinitionname); request.setattribute (dicconstant.req_key_process_status, processstatus ); return mapping.findforward (VIEW); }
Flowchart (i)