AnsweredAssumed Answered

Replacement method for getting engine services from DelegateExecution in Activiti 6.0

Question asked by ravisankar on May 31, 2018

Hi,
We are trying to migrate from Activiti 5.22.0 to Activiti 6.0

 

"delegateExecution.getEngineServices()" method was used in Activiti 5, but that method is not available in Activiti 6.0

 

Below is the code from Activiti 5 and want to know the replacement class to get the engine services in Activiti 6.0

 

HistoricTaskInstance historicTaskInstance = delegateExecution.getEngineServices().getHistoryService().createHistoricTaskInstanceQuery().
                  taskDefinitionKey("task_definition_key").
                  processInstanceId(de.getProcessInstanceId()).singleResult();

Outcomes