Flowable 6.6.0表單配置 - FormEngineConfiguration bean

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

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

1 配置(Configuration)

1.2 FormEngineConfiguration bean

The flowable.form.cfg.xml must contain a bean that has the id ‘formEngineConfiguration’.

這個flowable.form.cfg.xml必須包含id為“formEngineConfiguration”的bean。

 <bean id="formEngineConfiguration" class="org.flowable.form.engine.impl.cfg.StandaloneFormEngineConfiguration">

This bean is then used to construct the FormEngine. There are multiple classes available that can be used to define the formEngineConfiguration. These classes represent different environments, and set defaults accordingly. It is a best practice to select the class that matches your environment the most, to minimize the number of properties needed to configure the engine. The following classes are currently available:

然後使用這個bean構造FormEngine。有多個可用類可用於定義formEngineConfiguration。這些類表示不同的環境,並相應地設定預設值。最佳做法是選擇與您的環境最匹配的類,以最小化配置引擎所需的屬性數。以下類別當前可用:

  • org.flowable.form.engine.impl.cfg.StandaloneFormEngineConfiguration: the process engine is used in a standalone way. Flowable will take care of the transactions. By default, the database will only be checked when the engine boots (and an exception is thrown if there is no Flowable Form schema or the schema version is incorrect).
  • org.flowable.form.engine.impl.cfg.StandaloneInMemFormEngineConfiguration: this is a convenience class for unit testing purposes. Flowable Form will take care of the transactions. An H2 in-memory database is used by default. The database will be created and dropped when the engine boots and shuts down. When using this, probably no additional configuration is needed).
  • org.flowable.form.spring.SpringFormEngineConfiguration: To be used when the Form engine is used in a Spring environment. See the Spring integration section for more information.
  • org.flowable.form.engine.impl.cfg.StandaloneFormEngineConfiguration:以獨立方式使用流程引擎。Flowable將負責處理事務。預設情況下,只有在引擎啟動時才會檢查資料庫(如果沒有Flowable Form schema或schema版本不正確,則會引發異常)。
  • org.flowable.form.engine.impl.cfg.StandaloneInMemFormEngineConfiguration:這是方便用於單元測試的類。Flowable Form將處理事務。預設情況下使用H2記憶體資料庫。當引擎啟動和關閉時,將建立並刪除資料庫。當使用這個時,可能不需要額外的配置)。
  • org.flowable.form.engine.impl.cfg.StandaloneFormEngineConfiguration:在Spring環境中使用表單引擎時使用。有關更多資訊,請參見Spring整合部分(the Spring integration section)。

相關文章