1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.jeecg;
import org.flowable.engine.ProcessEngine;
import org.flowable.engine.ProcessEngineConfiguration;
import org.flowable.engine.impl.cfg.StandaloneProcessEngineConfiguration;
 
public class FlowableDatabaseConfig {
    public static void main(String[] args) {
        // 创建流程引擎配置
        ProcessEngineConfiguration cfg = new StandaloneProcessEngineConfiguration()
                .setJdbcUrl("jdbc:sqlserver://192.168.1.118:1433;databasename=LXZN_TEXT_HANGYU_FLOWABLE;nullCatalogMeansCurrent=true")
                .setJdbcUsername("sa")
                .setJdbcPassword("123")
                .setJdbcDriver("com.microsoft.sqlserver.jdbc.SQLServerDriver")
                .setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE)
                .setDatabaseType("mssql"); // 指定数据库类型
        // 构建流程引擎
        ProcessEngine processEngine = cfg.buildProcessEngine();
    }
}