要关闭Flowable CMMN的异步作业,你可以执行以下步骤:

  1. 停止CMMN引擎:使用CmmnEngineConfigurationsetAsyncExecutorActivate(false)方法来禁用CMMN引擎的异步执行器。

    CmmnEngineConfiguration cmmnEngineConfiguration = new StandaloneCmmnEngineConfiguration();
    cmmnEngineConfiguration.setAsyncExecutorActivate(false);
    
  2. 停止异步执行器:使用AsyncExecutorshutdown()方法来停止异步执行器。

    CmmnEngine cmmnEngine = cmmnEngineConfiguration.buildCmmnEngine();
    AsyncExecutor asyncExecutor = cmmnEngine.getProcessEngineConfiguration().getAsyncExecutor();
    asyncExecutor.shutdown();
    
  3. 关闭数据库连接:关闭数据库连接以确保所有异步作业都已完成。

    cmmnEngine.close();
    

通过执行以上步骤,你可以关闭Flowable CMMN的异步作业

flowable-cmmn-acquire-async-jobs怎么关闭

原文地址: http://www.cveoy.top/t/topic/iJiU 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录