Resource in Reassign Workflow ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 11:23 PM
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 :
In this code have method updateTask ? do it invite user assign into resource in task ?
Regards
vinaxwater
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
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 03:12 AM
I have completed for this issuse :idea: , thanks for read ! :roll:
Regards
vinaxwater
Regards
vinaxwater

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 03:48 AM
It's break here because have not permission Coordiator :
I want to have permission for user be loginning the same script <runas>admin</runas>, please help me :idea:
Regards
vianxwater
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 04:54 AM
This code the same <runas>admin</runas> in scritpt :roll: :
Thanks and Regards
vinaxwater
AuthenticationUtil.setCurrentUser("admin");
Thanks and Regards
vinaxwater
