As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
try { String processXML="";//attachment DataConnection connect = new DataConnection(); connect.connection(); ProcessEngineConfigurator processEngine = ProcessEngineConfigurator.getInstance(); repositoryService = processEngine.getProcessEngine().getRepositoryService(); Deployment deploymentId = repositoryService.createDeployment().addString("WI_2002020.bpmn20.xml", processXML).deploy(); Map<String, Object> variableMap = new HashMap<String, Object>(); runtimeService = processEngine.getProcessEngine().getRuntimeService(); processInstance = runtimeService.startProcessInstanceByKey("WI_2002020"); System.out.println(processInstance.getId()); }catch(Exception e){ }
Chandan,This appears to be a duplicate of a question I answered for you earlier today.
Thanks,
Greg
bp3