Class FlowableConfig

java.lang.Object
com.bytedesk.ticket.config.FlowableConfig

@Configuration public class FlowableConfig extends Object
Force Flowable to use the PostgreSQL databaseType for KingbaseES. Kingbase is PostgreSQL-compatible, but Flowable can't detect it from the product name "KingbaseES". Setting databaseType to "postgres" avoids the startup failure.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    Make database type configurable via application properties.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.app.spring.SpringAppEngineConfiguration>
     
    private void
    applyDbType(org.flowable.common.engine.impl.AbstractEngineConfiguration configuration)
     
    org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.cmmn.spring.SpringCmmnEngineConfiguration>
     
    org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.dmn.spring.SpringDmnEngineConfiguration>
     
    org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.eventregistry.spring.SpringEventRegistryEngineConfiguration>
     
    org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.idm.spring.SpringIdmEngineConfiguration>
     
    private String
     
    org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.spring.SpringProcessEngineConfiguration>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • configuredDbType

      @Value("${flowable.database-type:}") private String configuredDbType
      Make database type configurable via application properties. Examples: - flowable.database-type=postgres (for Kingbase/PostgreSQL) - flowable.database-type=mysql (for MySQL) If not set, Flowable will try to auto-detect. For Kingbase please set to postgres.
  • Constructor Details

    • FlowableConfig

      public FlowableConfig()
  • Method Details

    • normalizeDbType

      private String normalizeDbType(String dbType)
    • applyDbType

      private void applyDbType(org.flowable.common.engine.impl.AbstractEngineConfiguration configuration)
    • processEngineConfigurer

      @Bean public org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.spring.SpringProcessEngineConfiguration> processEngineConfigurer()
    • dmnEngineConfigurer

      @Bean public org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.dmn.spring.SpringDmnEngineConfiguration> dmnEngineConfigurer()
    • cmmnEngineConfigurer

      @Bean public org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.cmmn.spring.SpringCmmnEngineConfiguration> cmmnEngineConfigurer()
    • appEngineConfigurer

      @Bean public org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.app.spring.SpringAppEngineConfiguration> appEngineConfigurer()
    • idmEngineConfigurer

      @Bean public org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.idm.spring.SpringIdmEngineConfiguration> idmEngineConfigurer()
    • eventRegistryEngineConfigurer

      @Bean public org.flowable.spring.boot.EngineConfigurationConfigurer<org.flowable.eventregistry.spring.SpringEventRegistryEngineConfiguration> eventRegistryEngineConfigurer()