@RequestParam(value = "businessKey", required = false) String businessKey,
Model model) throws Exception {
model.addAttribute("bpmProcessId", bpmProcessId);
model.addAttribute("businessKey", businessKey);
BpmProcess bpmProcess = bpmProcessManager.get(bpmProcessId);
String processDefinitionId = bpmProcess.getBpmConfBase()
.getProcessDefinitionId();
FormInfo formInfo = processEngine.getManagementService()
.executeCommand(new FindStartFormCmd(processDefinitionId));
model.addAttribute("formInfo", formInfo);
String nextStep = null;
if (formInfo.isFormExists()) {
// 如果找到了form,就显示表单
if (Integer.valueOf(1).equals(bpmProcess.getUseTaskConf())) {
// 如果需要配置负责人
nextStep = "taskConf";
} else {
nextStep = "confirmStartProcess";
}