Github user ilgrosso commented on a diff in the pull request:

    https://github.com/apache/syncope/pull/26#discussion_r71832647
  
    --- Diff: 
core/workflow-activiti/src/main/java/org/apache/syncope/core/workflow/activiti/ActivitiUserWorkflowAdapter.java
 ---
    @@ -349,11 +349,33 @@ protected void saveForFormSubmit(final User user, 
final String password, final P
         }
     
         @Override
    +    public WorkflowResult<String> doRequestCertify(final User user) {
    +        String authUser = AuthContextUtils.getUsername();
    +        engine.getRuntimeService().setVariable(user.getWorkflowId(), 
FORM_SUBMITTER, authUser);
    +
    +        LOG.debug("Executing request-certify");
    +        Set<String> performedTasks = doExecuteTask(user, 
"request-certify", null);
    +        for (String s: performedTasks) {
    +            LOG.debug("request-certity: {}", s);
    +        }
    +        LOG.debug("request-certify performed");
    +                
    +        PropagationByResource propByRes = 
engine.getRuntimeService().getVariable(
    +                user.getWorkflowId(), PROP_BY_RESOURCE, 
PropagationByResource.class);
    +
    +        saveForFormSubmit(
    +                user, null, propByRes);
    +                
    +        return new WorkflowResult<>(user.getKey(), null, performedTasks);
    +    }
    +
    +    @Override
         protected WorkflowResult<String> doSuspend(final User user) {
             Set<String> performedTasks = doExecuteTask(user, "suspend", null);
             updateStatus(user);
             User updated = userDAO.save(user);
     
    +
    --- End diff --
    
    Please remove this blank line.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to