@Override
protected void doExecute(final String executionId) {
SyncopeUser user =
(SyncopeUser) runtimeService.getVariable(executionId, ActivitiUserWorkflowAdapter.SYNCOPE_USER);
user.generateToken(
confDAO.find("token.length", "256").getValues().get(0).getLongValue().intValue(),
confDAO.find("token.expireTime", "60").getValues().get(0).getLongValue().intValue());
runtimeService.setVariable(executionId, ActivitiUserWorkflowAdapter.SYNCOPE_USER, user);
}