flowable-cmmn-acquire-async-jobs怎么关闭
要关闭Flowable CMMN的异步作业,你可以执行以下步骤:
-
停止CMMN引擎:使用
CmmnEngineConfiguration的setAsyncExecutorActivate(false)方法来禁用CMMN引擎的异步执行器。CmmnEngineConfiguration cmmnEngineConfiguration = new StandaloneCmmnEngineConfiguration(); cmmnEngineConfiguration.setAsyncExecutorActivate(false); -
停止异步执行器:使用
AsyncExecutor的shutdown()方法来停止异步执行器。CmmnEngine cmmnEngine = cmmnEngineConfiguration.buildCmmnEngine(); AsyncExecutor asyncExecutor = cmmnEngine.getProcessEngineConfiguration().getAsyncExecutor(); asyncExecutor.shutdown(); -
关闭数据库连接:关闭数据库连接以确保所有异步作业都已完成。
cmmnEngine.close();
通过执行以上步骤,你可以关闭Flowable CMMN的异步作业
原文地址: http://www.cveoy.top/t/topic/iJiU 著作权归作者所有。请勿转载和采集!