package com.cfae.cfaerecord.business.models.ma.orgmanage.controller;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.junit.Test;
public class test1 {
@Test
public void createTable() {
ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration
.createStandaloneProcessEngineConfiguration();
//连接数据库的配置
//配置数据库驱动:对应不同数据库类型的驱动
processEngineConfiguration.setJdbcDriver(“oracle.jdbc.driver.OracleDriver”);
//配置数据库的JDBC URL
processEngineConfiguration.setJdbcUrl(“jdbc:oracle:thin:@localhost:1521:DANDELION”);
//配置连接数据库的用户名
processEngineConfiguration.setJdbcUsername(“login”);
//配置连接数据库的密码
processEngineConfiguration.setJdbcPassword(“login”);
processEngineConfiguration.setDatabaseTablePrefix("ACT"); processEngineConfiguration.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE); //工作流的核心对象,ProcessEnginee对象 ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine(); System.out.println("processEngine:"+ processEngine); }
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)