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());
}
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);
}
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);
}
Aggregations