SyncopeUser user =
(SyncopeUser) runtimeService.getVariable(executionId, ActivitiUserWorkflowAdapter.SYNCOPE_USER);
// Do something with SyncopeUser...
if (user != null) {
user.checkToken("");
}
// remove SyncopeUser variable
runtimeService.removeVariable(executionId, ActivitiUserWorkflowAdapter.SYNCOPE_USER);
}