org.camunda.bpm.engine.ProcessEngineServices Java Examples
The following examples show how to use
org.camunda.bpm.engine.ProcessEngineServices.
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: CamundaBpmAutoConfigurationIT.java From camunda-bpm-spring-boot-starter with Apache License 2.0 | 5 votes |
private List<Class<?>> getProcessEngineServicesClasses() { List<Class<?>> classes = new ArrayList<Class<?>>(); for (Method method : ProcessEngineServices.class.getMethods()) { classes.add(method.getReturnType()); } return classes; }
Example #2
Source File: AbstractProcessEngineServicesAccessTest.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
public static void assertCanAccessServices(ProcessEngineServices services) { Assert.assertNotNull(services.getAuthorizationService()); Assert.assertNotNull(services.getFormService()); Assert.assertNotNull(services.getHistoryService()); Assert.assertNotNull(services.getIdentityService()); Assert.assertNotNull(services.getManagementService()); Assert.assertNotNull(services.getRepositoryService()); Assert.assertNotNull(services.getRuntimeService()); Assert.assertNotNull(services.getTaskService()); }
Example #3
Source File: DelegateTaskFake.java From camunda-bpm-mockito with Apache License 2.0 | 5 votes |
@Override public ProcessEngineServices getProcessEngineServices() { return valueFromCaseOrProcessExecution( DelegateExecution::getProcessEngineServices, DelegateCaseExecution::getProcessEngineServices, processEngineServicesAwareFake.getProcessEngineServices() ); }
Example #4
Source File: CamundaBpmAutoConfigurationIT.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
private List<Class<?>> getProcessEngineServicesClasses() { List<Class<?>> classes = new ArrayList<Class<?>>(); for (Method method : ProcessEngineServices.class.getMethods()) { classes.add(method.getReturnType()); } return classes; }
Example #5
Source File: ProcessEngineServicesAwareFakeTest.java From camunda-bpm-mockito with Apache License 2.0 | 5 votes |
@Test public void with_processEngineServices() { ProcessEngineServices processEngineServices = mock(ProcessEngineServices.class); fake.withProcessEngineServices(processEngineServices); assertThat(fake.getProcessEngine()).isNull(); assertThat(fake.getProcessEngineServices()).isNotNull(); }
Example #6
Source File: DelegateCaseExecutionFakeTest.java From camunda-bpm-mockito with Apache License 2.0 | 5 votes |
@Test public void withProcessEngineServices() { ProcessEngineServices services = mock(ProcessEngineServices.class); assertThat(fake.getProcessEngineServices()).isNull(); fake.withProcessEngineServices(services); assertThat(fake.getProcessEngineServices()).isEqualTo(services); }
Example #7
Source File: MyDelegationService.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
protected void executeCommand(ProcessEngineServices services) { RuntimeService runtimeService = services.getRuntimeService(); executeCommand(runtimeService); }
Example #8
Source File: TaskEntity.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
@Override public ProcessEngineServices getProcessEngineServices() { return Context.getProcessEngineConfiguration() .getProcessEngine(); }
Example #9
Source File: ExecutionEntity.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public ProcessEngineServices getProcessEngineServices() { return Context.getProcessEngineConfiguration().getProcessEngine(); }
Example #10
Source File: MyDelegationService.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
protected void logAuthentication(ProcessEngineServices services) { IdentityService identityService = services.getIdentityService(); logAuthentication(identityService); }
Example #11
Source File: MyDelegationService.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
protected void logInstancesCount(ProcessEngineServices services) { RuntimeService runtimeService = services.getRuntimeService(); logInstancesCount(runtimeService); }
Example #12
Source File: DelegateCaseVariableInstanceImpl.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public ProcessEngineServices getProcessEngineServices() { return Context.getProcessEngineConfiguration().getProcessEngine(); }
Example #13
Source File: DelegateEvent.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
@Override public ProcessEngineServices getProcessEngineServices() { throw notYetImplemented(); }
Example #14
Source File: SequenceFlowListener.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
@Override public void execute(DelegateExecution execution) throws Exception { ProcessEngineServices processEngineServices = execution.getProcessEngineServices(); RuntimeService runtimeService = processEngineServices.getRuntimeService(); runtimeService.getActivityInstance(execution.getProcessInstanceId()); }
Example #15
Source File: AbstractProcessEngineServicesAccessTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public static void assertCanPerformQuery(ProcessEngineServices services) { services.getRepositoryService() .createProcessDefinitionQuery() .count(); }
Example #16
Source File: AbstractProcessEngineServicesAccessTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public static void assertCanStartProcessInstance(ProcessEngineServices services) { services.getRuntimeService().startProcessInstanceByKey(CALLED_PROCESS_DEF_ID); }
Example #17
Source File: ExecuteRuntimeServiceOperationTaskListener.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public void notify(DelegateTask delegateTask) { ProcessEngineServices services = delegateTask.getProcessEngineServices(); RuntimeService runtimeService = services.getRuntimeService(); runtimeService.setVariable(delegateTask.getExecutionId(), "taskListenerCalled", true); }
Example #18
Source File: ExecuteRuntimeServiceOperationDelegate.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public void execute(DelegateExecution execution) throws Exception { ProcessEngineServices services = execution.getProcessEngineServices(); RuntimeService runtimeService = services.getRuntimeService(); runtimeService.setVariable(execution.getId(), "serviceTaskCalled", true); }
Example #19
Source File: CaseExecutionImpl.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public ProcessEngineServices getProcessEngineServices() { throw LOG.unsupportedTransientOperationException(ProcessEngineServicesAware.class.getName()); }
Example #20
Source File: CaseExecutionEntity.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public ProcessEngineServices getProcessEngineServices() { return Context .getProcessEngineConfiguration() .getProcessEngine(); }
Example #21
Source File: ExecutionImpl.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public ProcessEngineServices getProcessEngineServices() { throw new UnsupportedOperationException(ProcessEngineServicesAware.class.getName() +" is unsupported in transient ExecutionImpl"); }
Example #22
Source File: ProcessEngineServicesAwareFake.java From camunda-bpm-mockito with Apache License 2.0 | 4 votes |
public ProcessEngineServicesAwareFake withProcessEngineServices(ProcessEngineServices processEngineServices) { this.processEngineServices = processEngineServices; return this; }
Example #23
Source File: ProcessEngineServicesAwareFake.java From camunda-bpm-mockito with Apache License 2.0 | 4 votes |
@Override public ProcessEngineServices getProcessEngineServices() { return processEngineServices; }
Example #24
Source File: DelegateFake.java From camunda-bpm-mockito with Apache License 2.0 | 4 votes |
public T withProcessEngineServices(ProcessEngineServices processEngineServices) { processEngineServicesAwareFake.withProcessEngineServices(processEngineServices); return (T) this; }
Example #25
Source File: DelegateFake.java From camunda-bpm-mockito with Apache License 2.0 | 4 votes |
@Override public ProcessEngineServices getProcessEngineServices() { return processEngineServicesAwareFake.getProcessEngineServices(); }
Example #26
Source File: DelegateCaseVariableInstanceFake.java From camunda-bpm-mockito with Apache License 2.0 | 4 votes |
public DelegateCaseVariableInstanceFake withProcessEngineServices(ProcessEngineServices processEngineServices) { this.processEngineServices = processEngineServices; return this; }
Example #27
Source File: DelegateCaseVariableInstanceFake.java From camunda-bpm-mockito with Apache License 2.0 | 4 votes |
@Override public ProcessEngineServices getProcessEngineServices() { return processEngineServices != null ? processEngineServices : Optional.ofNullable(processEngine).map(ProcessEngineServices.class::cast).orElse(null); }
Example #28
Source File: CallActivityMock.java From camunda-bpm-mockito with Apache License 2.0 | 4 votes |
public Deployment deploy(final ProcessEngineServices processEngineServices){ return this.deploy(processEngineServices.getRepositoryService()); }
Example #29
Source File: DeployProcess.java From camunda-bpm-mockito with Apache License 2.0 | 4 votes |
public DeployProcess(ProcessEngineServices processEngineServices) { this(processEngineServices.getRepositoryService()); }
Example #30
Source File: SuspendedExecutionImpl.java From camunda-bpm-workbench with GNU Affero General Public License v3.0 | 4 votes |
public ProcessEngineServices getProcessEngineServices() { return executionEntity.getProcessEngineServices(); }