Java Code Examples for org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl#getOptimizeService()

The following examples show how to use org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl#getOptimizeService() . 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: OptimizeServiceAuthorizationTest.java    From camunda-bpm-platform with Apache License 2.0 6 votes vote down vote up
@Before
public void setUp() throws Exception {

  identityService = engineRule.getIdentityService();
  repositoryService = engineRule.getRepositoryService();
  authorizationService = engineRule.getAuthorizationService();
  runtimeService = engineRule.getRuntimeService();
  decisionService = engineRule.getDecisionService();
  taskService = engineRule.getTaskService();
  ProcessEngineConfigurationImpl config = engineRule.getProcessEngineConfiguration();
  optimizeService = config.getOptimizeService();

  DefaultDmnEngineConfiguration dmnEngineConfiguration =
    engineRule.getProcessEngineConfiguration().getDmnEngineConfiguration();
  ResetDmnConfigUtil.reset(dmnEngineConfiguration)
    .enableFeelLegacyBehavior(true)
    .init();

  authRule.createUserAndGroup(userId, "testGroup");
  authRule.createGrantAuthorization(AUTHORIZATION, ANY, userId, ALL);
  authRule.createGrantAuthorization(USER, ANY, userId, ALL);

  deployTestData();
  authRule.enableAuthorization(userId);
}
 
Example 2
Source File: GetCompletedHistoricActivityInstancesForOptimizeTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Before
public void init() {
  ProcessEngineConfigurationImpl config =
    engineRule.getProcessEngineConfiguration();
  optimizeService = config.getOptimizeService();
  identityService = engineRule.getIdentityService();
  runtimeService = engineRule.getRuntimeService();
  authorizationService = engineRule.getAuthorizationService();
  taskService = engineRule.getTaskService();

  createUser(userId);
}
 
Example 3
Source File: GetHistoricOperationLogsForOptimizeTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Before
public void init() {
  ProcessEngineConfigurationImpl config =
    engineRule.getProcessEngineConfiguration();
  optimizeService = config.getOptimizeService();
  identityService = engineRule.getIdentityService();
  runtimeService = engineRule.getRuntimeService();
  taskService = engineRule.getTaskService();
  repositoryService = engineRule.getRepositoryService();


  createUser(userId);
  identityService.setAuthenticatedUserId(userId);
  deploySimpleDefinition();
}
 
Example 4
Source File: GetRunningHistoricActivityInstancesForOptimizeTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Before
public void init() {
  ProcessEngineConfigurationImpl config =
    engineRule.getProcessEngineConfiguration();
  optimizeService = config.getOptimizeService();
  identityService = engineRule.getIdentityService();
  runtimeService = engineRule.getRuntimeService();
  authorizationService = engineRule.getAuthorizationService();
  taskService = engineRule.getTaskService();

  createUser(userId);
}
 
Example 5
Source File: GetRunningHistoricProcessInstancesForOptimizeTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Before
public void init() {
  ProcessEngineConfigurationImpl config =
    engineRule.getProcessEngineConfiguration();
  optimizeService = config.getOptimizeService();
  identityService = engineRule.getIdentityService();
  runtimeService = engineRule.getRuntimeService();
  authorizationService = engineRule.getAuthorizationService();
  taskService = engineRule.getTaskService();

  createUser(userId);
}
 
Example 6
Source File: GetCompletedHistoricTaskInstancesForOptimizeTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Before
public void init() {
  ProcessEngineConfigurationImpl config =
    engineRule.getProcessEngineConfiguration();
  optimizeService = config.getOptimizeService();
  identityService = engineRule.getIdentityService();
  runtimeService = engineRule.getRuntimeService();
  authorizationService = engineRule.getAuthorizationService();
  taskService = engineRule.getTaskService();

  createUser(userId);
}
 
Example 7
Source File: GetHistoricIdentityLinkLogsForOptimizeTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Before
public void init() {
  ProcessEngineConfigurationImpl config =
    engineRule.getProcessEngineConfiguration();
  optimizeService = config.getOptimizeService();
  identityService = engineRule.getIdentityService();
  runtimeService = engineRule.getRuntimeService();
  authorizationService = engineRule.getAuthorizationService();
  taskService = engineRule.getTaskService();

  createUser(userId);
  createGroup();
  identityService.setAuthenticatedUserId(userId);
}
 
Example 8
Source File: GetHistoricDecisionInstancesForOptimizeTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Before
public void init() {
  ProcessEngineConfigurationImpl config =
    engineRule.getProcessEngineConfiguration();
  optimizeService = config.getOptimizeService();
  identityService = engineRule.getIdentityService();
  runtimeService = engineRule.getRuntimeService();
  authorizationService = engineRule.getAuthorizationService();

  createUser(userId);
}
 
Example 9
Source File: GetCompletedHistoricProcessInstancesForOptimizeTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Before
public void init() {
  ProcessEngineConfigurationImpl config =
    engineRule.getProcessEngineConfiguration();
  optimizeService = config.getOptimizeService();
  identityService = engineRule.getIdentityService();
  runtimeService = engineRule.getRuntimeService();
  authorizationService = engineRule.getAuthorizationService();
  taskService = engineRule.getTaskService();

  createUser(userId);
}
 
Example 10
Source File: GetHistoricVariableUpdatesForOptimizeTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Before
public void init() {
  ProcessEngineConfigurationImpl config =
    engineRule.getProcessEngineConfiguration();
  optimizeService = config.getOptimizeService();
  identityService = engineRule.getIdentityService();
  runtimeService = engineRule.getRuntimeService();
  authorizationService = engineRule.getAuthorizationService();
  taskService = engineRule.getTaskService();

  createUser(userId);
}
 
Example 11
Source File: GetRunningHistoricTaskInstancesForOptimizeTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Before
public void init() {
  ProcessEngineConfigurationImpl config =
    engineRule.getProcessEngineConfiguration();
  optimizeService = config.getOptimizeService();
  identityService = engineRule.getIdentityService();
  runtimeService = engineRule.getRuntimeService();
  authorizationService = engineRule.getAuthorizationService();
  taskService = engineRule.getTaskService();

  createUser(userId);
}