How to Disable Asynchronous Jobs in Flowable CMMN
"How to Disable Asynchronous Jobs in Flowable CMMN"\n\nTo disable asynchronous jobs in Flowable CMMN, you can follow these steps:\n\n1. Stop the CMMN Engine:\nUse the `setAsyncExecutorActivate(false)` method of `CmmnEngineConfiguration` to disable the asynchronous executor of the CMMN engine.\n\njava\nCmmnEngineConfiguration cmmnEngineConfiguration = new StandaloneCmmnEngineConfiguration();\ncmmnEngineConfiguration.setAsyncExecutorActivate(false);\n\n\n2. Stop the Asynchronous Executor:\nUse the `shutdown()` method of `AsyncExecutor` to stop the asynchronous executor.\n\njava\nCmmnEngine cmmnEngine = cmmnEngineConfiguration.buildCmmnEngine();\nAsyncExecutor asyncExecutor = cmmnEngine.getProcessEngineConfiguration().getAsyncExecutor();\nasyncExecutor.shutdown();\n\n\n3. Close the Database Connection:\nClose the database connection to ensure that all asynchronous jobs are completed.\n\njava\ncmmnEngine.close();\n\n\nBy performing the above steps, you can disable asynchronous jobs in Flowable CMMN.
原文地址: http://www.cveoy.top/t/topic/qpAC 著作权归作者所有。请勿转载和采集!