Package org.springmodules.examples.workflow.osworkflow.model

Examples of org.springmodules.examples.workflow.osworkflow.model.Document


    return new ModelAndView("underway", "ids", queryResults);
  }

  public ModelAndView approve(HttpServletRequest request, HttpServletResponse response) {
    Document document = this.workflow.getCurrentDocument();
    this.workflow.approveCurrentDocument();

    return new ModelAndView("approved", "document", document);
  }
View Full Code Here


  public void setWorkflow(DocumentApprovalWorkflow workflow) {
    this.workflow = workflow;
  }

  protected Object formBackingObject(HttpServletRequest httpServletRequest) throws Exception {
    Document doc = workflow.getCurrentDocument();

    if (doc == null) {
      return new Document();
    }
    else {
      return doc;
    }
  }
View Full Code Here

      return doc;
    }
  }

  protected ModelAndView onSubmit(Object command) throws Exception {
    Document document = (Document) command;
    this.workflow.uploadDocument(document);
    return new ModelAndView(new RedirectView("../status"));
  }
View Full Code Here

TOP

Related Classes of org.springmodules.examples.workflow.osworkflow.model.Document

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.