1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.web.controller;
17
18 import org.apache.log4j.Logger;
19 import org.kuali.rice.kew.api.KewApiServiceLocator;
20 import org.kuali.rice.kew.api.document.WorkflowDocumentService;
21 import org.kuali.rice.krad.web.form.InitiatedDocumentInfoForm;
22 import org.kuali.rice.krad.web.form.UifFormBase;
23 import org.springframework.stereotype.Controller;
24 import org.springframework.validation.BindingResult;
25 import org.springframework.web.bind.annotation.ModelAttribute;
26 import org.springframework.web.bind.annotation.RequestMapping;
27 import org.springframework.web.bind.annotation.RequestMethod;
28 import org.springframework.web.servlet.ModelAndView;
29
30 import javax.servlet.http.HttpServletRequest;
31 import javax.servlet.http.HttpServletResponse;
32
33
34
35
36
37
38
39 @Controller
40 @RequestMapping(value="/initdocinfo")
41
42 public class InitiatedDocumentInfoController extends UifControllerBase {
43 private static final Logger LOG = org.apache.log4j.Logger.getLogger(InitiatedDocumentInfoController.class);
44
45 @Override
46 public InitiatedDocumentInfoForm createInitialForm(HttpServletRequest request) {
47
48 InitiatedDocumentInfoForm initiatedDocumentInfoForm = new InitiatedDocumentInfoForm();
49
50 return initiatedDocumentInfoForm;
51 }
52
53 @Override
54 @RequestMapping(method = RequestMethod.GET, params = "methodToCall=start")
55 public ModelAndView start(@ModelAttribute("KualiForm")UifFormBase form, BindingResult result,
56 HttpServletRequest request, HttpServletResponse response) {
57
58 InitiatedDocumentInfoForm initiatedDocumentInfoForm = (InitiatedDocumentInfoForm) form;
59 return super.start(form, result, request, response);
60 }
61 }