예제 #1
0
        private ProcessEngine createProcessEngine(string name)
        {
            StandaloneInMemProcessEngineConfiguration processEngineConfiguration = new StandaloneInMemProcessEngineConfiguration();

            processEngineConfiguration.ProcessEngineName = name;
            processEngineConfiguration.JdbcUrl           = string.Format("jdbc:h2:mem:{0}", name);
            return(processEngineConfiguration.buildProcessEngine());
        }
예제 #2
0
        protected internal static ProcessEngineImpl createProcessEngineImpl(bool dmnEnabled)
        {
            StandaloneInMemProcessEngineConfiguration config = (StandaloneInMemProcessEngineConfiguration)(new CustomStandaloneInMemProcessEngineConfiguration()).setProcessEngineName("database-dmn-test-engine").setDatabaseSchemaUpdate("false").setHistory(ProcessEngineConfiguration.HISTORY_FULL).setJdbcUrl("jdbc:h2:mem:DatabaseDmnTest");

            config.DmnEnabled = dmnEnabled;

            return((ProcessEngineImpl)config.buildProcessEngine());
        }
예제 #3
0
 public virtual void testCreateConfigurationWithMissingDotInSchemaAndPrefix()
 {
     try
     {
         StandaloneInMemProcessEngineConfiguration configuration = new StandaloneInMemProcessEngineConfiguration();
         configuration.DatabaseSchema      = "foo";
         configuration.DatabaseTablePrefix = "foo";
         configuration.buildProcessEngine();
         fail("Should throw exception");
     }
     catch (ProcessEngineException e)
     {
         // as expected
         assertTrue(e.Message.contains("When setting a schema the prefix has to be schema + '.'"));
     }
 }