public void DeployBpmnTest() { using (DefinitionManager manager = new DefinitionManager(new ProcessDefinitionStore())) { DeploymentEntity result; var path = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.Parent; FileInfo item; item = path.GetFiles("subProcess.bpmn2").FirstOrDefault(); result = manager.DeployBpmn(item.FullName, "deploy2", null); } }