当我尝试在运行时部署工作流时,我收到错误。 以下用于部署我的工作流程的java代码
ProcessEngine processEngine=ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration().buildProcessEngine();
RepositoryService repositoryService=processEngine.getRepositoryService();
repositoryService.createDeployment().addClasspathResource("resources/diagrams/MyProcess.bpmn").deploy();
RuntimeService runtimeService=processEngine.getRuntimeService();
ProcessInstance processInstance=runtimeService.startProcessInstanceByKey("myProcess");
有关动态部署工作流的建议吗?提前谢谢