Flowable 6.6.0 用户指南相关文档下载
- BPMN用户指南 第一部分 - 中文PDF精编版
- BPMN用户指南 第二部分 - 中文PDF精编版
- BPMN用户指南 第三部分 - 中文PDF精编版
- 应用程序指南 - 中文PDF精编版
- 应用程序指南 - 中英对照PDF精编版
- 应用程序指南 - Eclipse设计器中文PDF精编版
- 表单用户指南 - 中文PDF精编版
- 事件注册表用户指南 - 中文PDF精编版
《Flowable 6.6.0 BPMN用户指南》
2. 配置
- 2.1 创建ProcessEngine
- 2.2 ProcessEngineConfiguration Bean
- 2.3 数据库配置
- 2.4 JNDI数据源配置
- 2.5 支持的数据库
- 2.6 创建数据库表
- 2.7 数据库表名说明
- 2.8 数据库升级
- 2.9 作业执行器
- 2.10 作业执行器激活
- 2.11 邮件服务器配置
- 2.12 历史(History)配置
- 2.13 异步历史配置(Async history configuration)
- 2.14 在表达式和脚本中暴露bean
- 2.15 部署缓存配置
- 2.16 日志
- 2.17 映射诊断上下文
- 2.18 事件处理器(Event handlers)
有关Flowable文档的其他资料,参见:
2.9 作业执行器(Job Executor)(从6.0.0版起)
The async executor of Flowable v5 is the only available job executor in Flowable V6, as it is a more performant and more database friendly way of executing asynchronous jobs in the Flowable engine. The old job executor of Flowable 5 is no longer available in V6. More information can be found in the advanced section of the user guide.
Additionally, if running under Java EE 7, JSR-236 compliant ManagedAsyncJobExecutor can be used for letting the container manage the threads. In order to enable them, the thread factory should be passed in the configuration as follows:
Flowable V5的异步执行器(async executor)是Flowable V6中唯一可用的作业执行器,因为它是在Flowable引擎中执行异步作业的更高性能和数据库更友好的方式。Flowable 5旧的作业执行器在V6中不再可用。更多信息可在用户指南的高级部分找到。
另外,如果运行在Java EE 7下,JSR-236兼容的ManagedAsyncJobExecutor可用于让容器管理线程。为了启用ManagedAsyncJobExecutor,应该在配置中传递线程工厂(thread factory),如下所示:
<bean id="threadFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:jboss/ee/concurrency/factory/default" />
</bean>
<bean id="customJobExecutor" class="org.flowable.engine.impl.jobexecutor.ManagedAsyncJobExecutor">
<!-- ... -->
<property name="threadFactory" ref="threadFactory" />
<!-- ... -->
</bean>
The managed implementations fall back to their default counterparts if the thread factory is not specified.
如果未指定线程工厂,则被管实现将返回到其默认的对应实现。
2.10 作业执行器激活(Job executor activation)
The AsyncExecutor is a component that manages a thread pool to fire timers and other asynchronous tasks. Other implementations are possible (for example using a message queue, see the advanced section of the user guide).
By default, the AsyncExecutor is not activated and not started. With the following configuration the async executor can be started together with the Flowable Engine.
The property asyncExecutorActivate instructs the Flowable engine to start the Async executor at startup.
AsyncExecutor是一个组件(component),它管理一个线程池以激发定时器和其他异步任务。也存在其他实现方式(例如使用消息队列,请参阅用户指南的高级部分)。
默认情况下,AsyncExecutor不会被激活也不会启动。通过以下配置,异步执行器可以与Flowable Engine一起启动。
属性asyncExecutorActivate指示Flowable引擎在启动(startup)时启动异步执行器。