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
Hello,

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:
1.
org.activiti.designer.integration.servicetask.annotation
has been moved to
org.activiti.designer.integration.annotation

2. An the main problem, not too sure how to sove it. We are using :
org.activiti.rest.common.api.ActivitiUtil

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


   @Override
   public Void doExecute(CommandContext commandContext) {
      this.userService.setUser(examiner);
      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);
      this.userService.clearUser();
      return null;
   }


Outcomes