Flowable 6.6.0 表單 - 3.Spring 整合 - 3.1 FormEngineFactoryBean

月滿閒庭發表於2020-12-25

推薦Flowable 6.6.0 使用者指南相關文件下載

精編Flowable 6.6.0 應用程式指南中文PDF版
精編Flowable 6.6.0 表單使用者指南中文PDF版

Flowable 6.6.0表單使用者指南(Forms User Guide)

3.Spring 整合(Spring integration)

While you can definitely use Flowable Form without Spring, we’ve provided some very nice integration features that are explained in this chapter.
雖然您肯定可以使用沒有Spring的Flowable表單,但是我們提供了一些非常好的整合特性,這些特性將在本章中介紹。

3.1 FormEngineFactoryBean

The FormEngine can be configured as a regular Spring bean. The starting point of the integration is the class org.flowable.form.spring.FormEngineFactoryBean. This bean takes a Form engine configuration and creates the Form engine. This means that the creation and configuration of properties for Spring is the same as documented in the configuration section. For Spring integration, the configuration and engine beans will look like this:
FormEngine可以配置為常規的Spring bean。整合的起點是類org.flowable.form.spring.FormEngineFactoryBean. 這個bean接受表單引擎配置並建立表單引擎。這意味著Spring屬性的建立和配置與configuration部分中記錄的相同。對於Spring integration,配置和引擎bean如下所示:

<bean id="formEngineConfiguration" class="org.flowable.form.spring.SpringFormEngineConfiguration">
    ...
</bean>

<bean id="formEngine" class="org.flowable.form.spring.FormEngineFactoryBean">
  <property name="formEngineConfiguration" ref="formEngineConfiguration" />
</bean>

Note that the formEngineConfiguration bean now uses the org.flowable.form.spring.SpringFormEngineConfiguration class.
注意,formEngineConfigurationbean現在使用org.flowable.form.spring.SpringFormEngineConfiguration類。

相關文章