cancel
Showing results for 
Search instead for 
Did you mean: 

Resource in Reassign Workflow ?

vinaxwater
Champ in-the-making
Champ in-the-making
In process, User reviced a new task after reassign to orther user, Orther user reviced this task but resource for that task not show.

I check in file ReassignTaskDialog.java :
 protected String finishImpl(FacesContext context, String outcome)         throws Exception   {      if (logger.isDebugEnabled())         logger.debug("Reassigning task with id: " + this.taskId);            UIComponent picker = context.getViewRoot().findComponent("dialog:dialog-body:user-picker");            if (picker != null && picker instanceof UIGenericPicker)      {         UIGenericPicker userPicker = (UIGenericPicker)picker;         String[] user = userPicker.getSelectedResults();         if (user != null && user.length > 0)         {            // create a map to hold the new owner property then update the task            String userName = user[0];            Map<QName, Serializable> params = new HashMap<QName, Serializable>(1);            params.put(ContentModel.PROP_OWNER, userName);                        this.workflowService.updateTask(this.taskId, params, null, null);               }         else         {            if (logger.isWarnEnabled())               logger.warn("Failed to find selected user, reassign was unsuccessful");         }      }      else      {         if (logger.isWarnEnabled())            logger.warn("Failed to find user-picker component, reassign was unsuccessful");      }            if (logger.isDebugEnabled())         logger.debug("Reassigning task with id: " + this.taskId);            return outcome;   }‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

In this code have method updateTask ? do it invite user assign into resource in task ?

Regards
vinaxwater
3 REPLIES 3

vinaxwater
Champ in-the-making
Champ in-the-making
I have completed for this issuse  :idea: , thanks for read !  :roll:

Regards
vinaxwater

vinaxwater
Champ in-the-making
Champ in-the-making
It's break here because have not permission Coordiator :

this.permissionService.setPermission(nodeRef, userName, PermissionService.CONSUMER, true);‍‍‍

I want to have permission for user be loginning the same script <runas>admin</runas>, please help me  :idea:

Regards
vianxwater

vinaxwater
Champ in-the-making
Champ in-the-making
This code the same <runas>admin</runas> in scritpt  :roll: :
AuthenticationUtil.setCurrentUser("admin");‍

Thanks and Regards
vinaxwater