Search in sources :

Example 1 with ProcessEngineServices

use of org.camunda.bpm.engine.ProcessEngineServices in project camunda-bpm-platform by camunda.

the class SequenceFlowListener method execute.

@Override
public void execute(DelegateExecution execution) throws Exception {
    ProcessEngineServices processEngineServices = execution.getProcessEngineServices();
    RuntimeService runtimeService = processEngineServices.getRuntimeService();
    runtimeService.getActivityInstance(execution.getProcessInstanceId());
}
Also used : ProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices) RuntimeService(org.camunda.bpm.engine.RuntimeService)

Example 2 with ProcessEngineServices

use of org.camunda.bpm.engine.ProcessEngineServices in project camunda-bpm-platform by camunda.

the class ExecuteRuntimeServiceOperationDelegate method execute.

public void execute(DelegateExecution execution) throws Exception {
    ProcessEngineServices services = execution.getProcessEngineServices();
    RuntimeService runtimeService = services.getRuntimeService();
    runtimeService.setVariable(execution.getId(), "serviceTaskCalled", true);
}
Also used : ProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices) RuntimeService(org.camunda.bpm.engine.RuntimeService)

Example 3 with ProcessEngineServices

use of org.camunda.bpm.engine.ProcessEngineServices in project camunda-bpm-platform by camunda.

the class ExecuteRuntimeServiceOperationTaskListener method notify.

public void notify(DelegateTask delegateTask) {
    ProcessEngineServices services = delegateTask.getProcessEngineServices();
    RuntimeService runtimeService = services.getRuntimeService();
    runtimeService.setVariable(delegateTask.getExecutionId(), "taskListenerCalled", true);
}
Also used : ProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices) RuntimeService(org.camunda.bpm.engine.RuntimeService)

Aggregations

ProcessEngineServices (org.camunda.bpm.engine.ProcessEngineServices)3 RuntimeService (org.camunda.bpm.engine.RuntimeService)3