工作流activiti之初始化initActiviti

@Test
public void testInitTable() {
ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();

processEngineConfiguration.setJdbcDriver("com.mysql.jdbc.Driver");
processEngineConfiguration.setJdbcUrl("jdbc:mysql://localhost:3306/oatest");
processEngineConfiguration.setJdbcUsername("root");
processEngineConfiguration.setJdbcPassword("rt");

processEngineConfiguration.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);

ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();

System.out.println(processEngine);
}
@Test
public void testInitTable1() {

ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("activiti-context.xml");

ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();

System.out.println(processEngine);




}

 

你可能感兴趣的:(工具类)