Java Code Examples for org.activiti.engine.ProcessEngines#getProcessEngine()
The following examples show how to use
org.activiti.engine.ProcessEngines#getProcessEngine() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ProcessEnginesTest.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
public void testProcessEngineInfo() { List<ProcessEngineInfo> processEngineInfos = ProcessEngines.getProcessEngineInfos(); assertEquals(1, processEngineInfos.size()); ProcessEngineInfo processEngineInfo = processEngineInfos.get(0); assertNull(processEngineInfo.getException()); assertNotNull(processEngineInfo.getName()); assertNotNull(processEngineInfo.getResourceUrl()); ProcessEngine processEngine = ProcessEngines.getProcessEngine(ProcessEngines.NAME_DEFAULT); assertNotNull(processEngine); }
Example 2
Source File: ProcessEngineConfigurationTest.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 此测试会失败,因为本例没有配置oracle驱动 */ @Test public void specialName() { ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setProcessEngineName("oracleEngine").setJdbcDriver("oracle.jdbc.Driver") .setJdbcUrl("jdbc:oracle:thin:@localhost:1521:XE").setJdbcUsername("dbusername").setJdbcPassword("password").setDatabaseType("oracle") .buildProcessEngine(); ProcessEngine oracleEngine = ProcessEngines.getProcessEngine("oracleEngine"); assertNotNull(oracleEngine); }
Example 3
Source File: ProcessEngineConfigurationTest.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 此测试会失败,因为本例没有配置oracle驱动 */ @Test public void specialName() { ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setProcessEngineName("oracleEngine").setJdbcDriver("oracle.jdbc.Driver") .setJdbcUrl("jdbc:oracle:thin:@localhost:1521:XE").setJdbcUsername("dbusername").setJdbcPassword("password").setDatabaseType("oracle") .buildProcessEngine(); ProcessEngine oracleEngine = ProcessEngines.getProcessEngine("oracleEngine"); assertNotNull(oracleEngine); }
Example 4
Source File: ProcessEngineConfigurationTest.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 此测试会失败,因为本例没有配置oracle驱动 */ @Test public void specialName() { ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setProcessEngineName("oracleEngine").setJdbcDriver("oracle.jdbc.Driver") .setJdbcUrl("jdbc:oracle:thin:@localhost:1521:XE").setJdbcUsername("dbusername").setJdbcPassword("password").setDatabaseType("oracle") .buildProcessEngine(); ProcessEngine oracleEngine = ProcessEngines.getProcessEngine("oracleEngine"); assertNotNull(oracleEngine); }
Example 5
Source File: ProcessEngineConfigurationTest.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 此测试会失败,因为本例没有配置oracle驱动 */ @Test public void specialName() { ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setProcessEngineName("oracleEngine").setJdbcDriver("oracle.jdbc.Driver") .setJdbcUrl("jdbc:oracle:thin:@localhost:1521:XE").setJdbcUsername("dbusername").setJdbcPassword("password").setDatabaseType("oracle") .buildProcessEngine(); ProcessEngine oracleEngine = ProcessEngines.getProcessEngine("oracleEngine"); assertNotNull(oracleEngine); }
Example 6
Source File: ProcessEngineConfigurationTest.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 此测试会失败,因为本例没有配置oracle驱动 */ @Test public void specialName() { ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setProcessEngineName("oracleEngine").setJdbcDriver("oracle.jdbc.Driver") .setJdbcUrl("jdbc:oracle:thin:@localhost:1521:XE").setJdbcUsername("dbusername").setJdbcPassword("password").setDatabaseType("oracle") .buildProcessEngine(); ProcessEngine oracleEngine = ProcessEngines.getProcessEngine("oracleEngine"); assertNotNull(oracleEngine); }
Example 7
Source File: ProcessEngineConfigurationTest.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 此测试会失败,因为本例没有配置oracle驱动 */ @Test public void specialName() { ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setProcessEngineName("oracleEngine").setJdbcDriver("oracle.jdbc.Driver") .setJdbcUrl("jdbc:oracle:thin:@localhost:1521:XE").setJdbcUsername("dbusername").setJdbcPassword("password").setDatabaseType("oracle") .buildProcessEngine(); ProcessEngine oracleEngine = ProcessEngines.getProcessEngine("oracleEngine"); assertNotNull(oracleEngine); }
Example 8
Source File: ProcessEngineConfigurationTest.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 此测试会失败,因为本例没有配置oracle驱动 */ @Test public void specialName() { ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setProcessEngineName("oracleEngine").setJdbcDriver("oracle.jdbc.Driver") .setJdbcUrl("jdbc:oracle:thin:@localhost:1521:XE").setJdbcUsername("dbusername").setJdbcPassword("password").setDatabaseType("oracle") .buildProcessEngine(); ProcessEngine oracleEngine = ProcessEngines.getProcessEngine("oracleEngine"); assertNotNull(oracleEngine); }
Example 9
Source File: ProcessEngineConfigurationTest.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 此测试会失败,因为本例没有配置oracle驱动 */ @Test public void specialName() { ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setProcessEngineName("oracleEngine").setJdbcDriver("oracle.jdbc.Driver") .setJdbcUrl("jdbc:oracle:thin:@localhost:1521:XE").setJdbcUsername("dbusername").setJdbcPassword("password").setDatabaseType("oracle") .buildProcessEngine(); ProcessEngine oracleEngine = ProcessEngines.getProcessEngine("oracleEngine"); assertNotNull(oracleEngine); }
Example 10
Source File: ProcessEngineConfigurationTest.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 此测试会失败,因为本例没有配置oracle驱动 */ @Test public void specialName() { ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setProcessEngineName("oracleEngine").setJdbcDriver("oracle.jdbc.Driver") .setJdbcUrl("jdbc:oracle:thin:@localhost:1521:XE").setJdbcUsername("dbusername").setJdbcPassword("password").setDatabaseType("oracle") .buildProcessEngine(); ProcessEngine oracleEngine = ProcessEngines.getProcessEngine("oracleEngine"); assertNotNull(oracleEngine); }
Example 11
Source File: ProcessEngineConfigurationTest.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 此测试会失败,因为本例没有配置oracle驱动 */ @Test public void specialName() { ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setProcessEngineName("oracleEngine").setJdbcDriver("oracle.jdbc.Driver") .setJdbcUrl("jdbc:oracle:thin:@localhost:1521:XE").setJdbcUsername("dbusername").setJdbcPassword("password").setDatabaseType("oracle") .buildProcessEngine(); ProcessEngine oracleEngine = ProcessEngines.getProcessEngine("oracleEngine"); assertNotNull(oracleEngine); }
Example 12
Source File: LocalProcessEngineLookup.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
@Override public ProcessEngine getProcessEngine() { return ProcessEngines.getProcessEngine(getProcessEngineName()); }