use of org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl in project camunda-bpm-platform by camunda.
the class SetExternalTasksRetriesTest method storeEngineSettings.
@Before
public void storeEngineSettings() {
ProcessEngineConfigurationImpl configuration = engineRule.getProcessEngineConfiguration();
defaultBatchJobsPerSeed = configuration.getBatchJobsPerSeed();
defaultInvocationsPerBatchJob = configuration.getInvocationsPerBatchJob();
}
use of org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl in project camunda-bpm-platform by camunda.
the class BatchHistoricDecisionInstanceDeletionTest method restoreEngineSettings.
@After
public void restoreEngineSettings() {
ProcessEngineConfigurationImpl configuration = rule.getProcessEngineConfiguration();
configuration.setBatchJobsPerSeed(defaultBatchJobsPerSeed);
configuration.setInvocationsPerBatchJob(defaultInvocationsPerBatchJob);
}
use of org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl in project camunda-bpm-platform by camunda.
the class SetExternalTasksRetriesTest method restoreEngineSettings.
@After
public void restoreEngineSettings() {
ProcessEngineConfigurationImpl configuration = engineRule.getProcessEngineConfiguration();
configuration.setBatchJobsPerSeed(defaultBatchJobsPerSeed);
configuration.setInvocationsPerBatchJob(defaultInvocationsPerBatchJob);
}
use of org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl in project camunda-bpm-platform by camunda.
the class DmnEngineConfigurationTest method setCustomPostTableExecutionListener.
@Test
public void setCustomPostTableExecutionListener() {
// given a DMN engine configuration with custom listener
DefaultDmnEngineConfiguration dmnEngineConfiguration = (DefaultDmnEngineConfiguration) DmnEngineConfiguration.createDefaultDmnEngineConfiguration();
DmnDecisionTableEvaluationListener customEvaluationListener = mock(DmnDecisionTableEvaluationListener.class);
List<DmnDecisionTableEvaluationListener> customListeners = new ArrayList<DmnDecisionTableEvaluationListener>();
customListeners.add(customEvaluationListener);
dmnEngineConfiguration.setCustomPostDecisionTableEvaluationListeners(customListeners);
ProcessEngineConfigurationImpl processEngineConfiguration = createProcessEngineConfiguration();
processEngineConfiguration.setDmnEngineConfiguration(dmnEngineConfiguration);
// when the engine is initialized
engine = processEngineConfiguration.buildProcessEngine();
// then the custom listener should be set on the DMN engine
assertThat(getConfigurationOfDmnEngine().getCustomPostDecisionTableEvaluationListeners(), hasItem(customEvaluationListener));
}
use of org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl in project camunda-bpm-platform by camunda.
the class DmnEngineConfigurationTest method setElProvider.
@Test
public void setElProvider() {
// given a DMN engine configuration with el provider
DefaultDmnEngineConfiguration dmnEngineConfiguration = (DefaultDmnEngineConfiguration) DmnEngineConfiguration.createDefaultDmnEngineConfiguration();
ElProvider elProvider = mock(ElProvider.class);
dmnEngineConfiguration.setElProvider(elProvider);
ProcessEngineConfigurationImpl processEngineConfiguration = createProcessEngineConfiguration();
processEngineConfiguration.setDmnEngineConfiguration(dmnEngineConfiguration);
// when the engine is initialized
engine = processEngineConfiguration.buildProcessEngine();
// then the el provider should be set on the DMN engine
assertThat(getConfigurationOfDmnEngine().getElProvider(), is(elProvider));
}
Aggregations