As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
taskService.complete(taskId,variableMap);
runtimeService.setVariables(executionId, variableMap); taskService.complete(taskId);
could you please let us know what Activiti version are you using ?
would be great if it's possible for you to write a unit test to show the behavior you described
you can add issues here: https://github.com/Activiti/Activiti/issues