<!– Handles GET requests for /resources/** by efficiently serving static content in the ${webappRoot}/resources dir –> <mvc:resources mapping="/resources/**" location="/resources/" /> <!– Forwards requests to the "/" resource to the "welcome" view –> <mvc:view-controller path="/" view-name="enter" />
Here's My Spring Controller's Method…. @RequestMapping("/BusinessInfo") public String Registration(@ModelAttribute(value="reg") Registration reg,HttpServletRequest request) { Map<String, Object> variables = new HashMap<String, Object>(); variables.put("nameOfBusiness", reg.getNameOfBusiness()); variables.put("address",reg.getAddress()); variables.put("mangingDirector", reg.getMangingDirector()); variables.put("telephone",reg.getTelephone()); variables.put("fax", reg.getFax()); variables.put("email",reg.getEmail()); variables.put("wwwAddress", reg.getWwwAddress()); variables.put("parentCompanyOrOtherBusinessNames", reg.getParentCompanyOrOtherBusinessNames()); variables.put("subsidiaries",reg.getSubsidiaries()); variables.put("mangingDirector", reg.getMangingDirector()); variables.put("typeOfBusiness",reg.getTypeOfBusiness()); variables.put("natureOfBusiness", reg.getNatureOfBusiness()); variables.put("email",reg.getEmail()); variables.put("nameOfCustomer1", reg.getNameOfCustomer1()); variables.put("address1",reg.getAddress1()); variables.put("nameOfCustomer2", reg.getNameOfCustomer2()); variables.put("address2",reg.getAddress2()); variables.put("yearBusinessEstablished", reg.getYearBusinessEstablished()); variables.put("numberOfFullTimeEmployees",reg.getNumberOfFullTimeEmployees()); variables.put("businessRegistrationNumber", reg.getBusinessRegistrationNumber()); ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine(); logger.debug("Data Inserted into Map Data Structures " + variables); RuntimeService runtimeService = processEngine.getRuntimeService(); logger.debug("After Run Time " + variables); ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("BusinessApproval", variables); logger.debug("Data Inserted into Map Data Structures " + variables); System.out.println("KKKK"+processInstance); return ""; }
Query 1) First Query Whether its work's or not ?( *****Taking the Form Data and adding to Activiti BPM……. Process Definition "Business Approval"**********)
Second Query is org.activiti.engine.ActivitiObjectNotFoundException: no processes deployed with key 'BusinessApproval'………… Am already configured in Spring Configuration file(Spring_Activiti-servlet.xml) as <property name="deploymentResources" value="classpath*:/processes.*.bpmn20.xml" /> is it correct to set the path for activiti *.bpmn.xml to access, or is their any alternatives to access the bpmn.xml……… whether it would be in code or xml format ?