我想通过 Spring Boot Zeebe starter 部署多个 BPMN 文件
这就是我当前指定部署的方式
@ZeebeDeployment(classPathResource = "customerFlow.bpmn")
关于如何部署两个以上 bpmn 文件的任何建议?
参考:https ://github.com/zeebe-io/spring-zeebe
编辑:
我确实尝试过这样的事情
@Autowired private ZeebeClient zeebeClient;
@PostConstruct
public void deploy(){
final DeploymentEvent deployment = zeebeClient.newDeployCommand()
.addResourceFromClasspath("customerFlow.bpmn")
.send()
.join();
}
收到以下错误:
Caused by: java.lang.IllegalStateException: delegate is not running!
at io.zeebe.spring.util.ZeebeAutoStartUpLifecycle.get(ZeebeAutoStartUpLifecycle.java:38)
at io.zeebe.spring.client.ZeebeClientLifecycle.newDeployCommand(ZeebeClientLifecycle.java:71)
at com.lendingkart.flows.app.App.deploy(App.java:51)