mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Added isTaskEditable, isTaskReassignable, isTaskClaimable and isTaskReleasable to WorkflowService
- Added isEditable, isReassignable, isClaimable and isReleasable flags to task model in REST API - Added outcome property to task model in REST API (label instead of raw value) - Change "definitionTypeTitle" property to "type" and fixed up fallout - Changed UI to use the isXXX flags above rather than copious amount of repeated checks - Updated workflow details page to use outcome label, isEditable flag and some changes following discussion with Linton - Added tests git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21890 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -207,6 +207,7 @@ public interface WorkflowService
|
||||
*
|
||||
* @param workflowDefinitionId the workflow definition id
|
||||
* @return the list of "in-flight" workflow instances
|
||||
* @since 3.4
|
||||
*/
|
||||
@Auditable(parameters = {"workflowDefinitionId"})
|
||||
public List<WorkflowInstance> getCompletedWorkflows(String workflowDefinitionId);
|
||||
@@ -216,6 +217,7 @@ public interface WorkflowService
|
||||
*
|
||||
* @param workflowDefinitionId the workflow definition id
|
||||
* @return the list of "in-flight" workflow instances
|
||||
* @since 3.4
|
||||
*/
|
||||
@Auditable(parameters = {"workflowDefinitionId"})
|
||||
public List<WorkflowInstance> getWorkflows(String workflowDefinitionId);
|
||||
@@ -374,6 +376,49 @@ public interface WorkflowService
|
||||
@Auditable(parameters = {"taskId", "transitionId"})
|
||||
public WorkflowTask endTask(String taskId, String transitionId);
|
||||
|
||||
/**
|
||||
* Determines if the given user can edit the given task
|
||||
*
|
||||
* @param task The task to check
|
||||
* @param username The user to check
|
||||
* @return true if the user can edit the task
|
||||
* @since 3.4
|
||||
*/
|
||||
@Auditable(parameters = {"task", "username"})
|
||||
public boolean isTaskEditable(WorkflowTask task, String username);
|
||||
|
||||
/**
|
||||
* Determines if the given user can reassign the given task
|
||||
*
|
||||
* @param task The task to check
|
||||
* @param username The user to check
|
||||
* @return true if the user can reassign the task
|
||||
* @since 3.4
|
||||
*/
|
||||
@Auditable(parameters = {"task", "username"})
|
||||
public boolean isTaskReassignable(WorkflowTask task, String username);
|
||||
|
||||
/**
|
||||
* Determines if the given user can claim the given task
|
||||
*
|
||||
* @param task The task to check
|
||||
* @param username The user to check
|
||||
* @return true if the user can claim the task
|
||||
* @since 3.4
|
||||
*/
|
||||
@Auditable(parameters = {"task", "username"})
|
||||
public boolean isTaskClaimable(WorkflowTask task, String username);
|
||||
|
||||
/**
|
||||
* Determines if the given user can release the given task
|
||||
*
|
||||
* @param task The task to check
|
||||
* @param username The user to check
|
||||
* @return true if the user can release the task
|
||||
* @since 3.4
|
||||
*/
|
||||
@Auditable(parameters = {"task", "username"})
|
||||
public boolean isTaskReleasable(WorkflowTask task, String username);
|
||||
|
||||
//
|
||||
// Package Management
|
||||
|
Reference in New Issue
Block a user