09-27-2016 06:58 AM
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){
}
12-12-2016 11:32 AM
Chandan,
This appears to be a duplicate of a question I answered for you earlier today.
Thanks,
Greg
bp3
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.