Flowchart (i)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.