AnsweredAssumed Answered

ActivitiUtil class is no longer available in 5.18.0

Question asked by krull80 on Aug 28, 2015
Latest reply on Aug 28, 2015 by vasile.dirla

I have a project that is extending Activiti REST to include some extra functionality. This project is using Activiti 5.16.1 version andwe would like to move it to the latest version 5.18.0. After changing my project dependencies I have found some issues:
has been moved to

2. An the main problem, not too sure how to sove it. We are using :

but it's not availble in 5.18.0. A sample of usage:

   public Void doExecute(CommandContext commandContext) {
      ActivitiUtil.getRuntimeService().setVariable(executionId, Variable.EXECUTION_RESULT.getValue(), TaskResult.OK);
      Map<String, Object> variablesToSet = new HashMap<String, Object>();
      variablesToSet.put(Variable.SENDING_MODE.getValue(), sendingMode);
      ActivitiUtil.getRuntimeService().messageEventReceived(NotifyLetterSent.NOTIFY_SEND_LETTER, executionId, variablesToSet);
      return null;