@Scope(value=CONVERSATION) @Name(value="routingTaskActions") public class RoutingTaskActionsBean extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
class |
RoutingTaskActionsBean.TaskInfo |
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_ACTIONS_PER_TASK_TYPE_PROP_NAME
Runtime property name, that makes it possible to cache actions available on a given task, depending on its type.
|
static String |
SUBJECT_PATTERN |
Constructor and Description |
---|
RoutingTaskActionsBean() |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeReassign() |
String |
delegateTask(RoutingTaskActionsBean.TaskInfo taskInfo) |
String |
endTask(Task task) |
String |
endTasks(String selectionListName,
Action taskAction)
Ends a task given a selection list name and an action
|
Task |
getCurrentTask() |
List<String> |
getCurrentTaskTargetDocumentsIds()
Added to avoid an error when opening a task created @before 5.8 see NXP-14047
|
Map<String,Serializable> |
getFormVariables(Task task) |
List<Action> |
getTaskActions(String selectionListName)
Returns actions for task document buttons defined in the workflow graph
|
List<Action> |
getTaskActions(Task task) |
Map<String,Action> |
getTaskActionsMap(Task task) |
List<Action> |
getTaskButtons(Task task) |
RoutingTaskActionsBean.TaskInfo |
getTaskInfo(Task task,
boolean getFormVariables) |
String |
getTaskLayout(Task task) |
String |
getWorkflowTitle(String instanceId) |
boolean |
isRoutingTask(Task task) |
String |
navigateToTask(DocumentModel taskDoc) |
String |
navigateToTasksView() |
void |
OnTaskCompleted() |
String |
reassignTask(RoutingTaskActionsBean.TaskInfo taskInfo) |
void |
setCurrentTask(Task currentTask) |
void |
validateSubject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value) |
void |
validateTaskDueDate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value) |
public static final String SUBJECT_PATTERN
public static final String CACHE_ACTIONS_PER_TASK_TYPE_PROP_NAME
This caching is global to all tasks in the platform, and will not work correctly if some tasks are filtering some actions depending on local variables, for instance.
public void validateTaskDueDate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
public void validateSubject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
public String getTaskLayout(Task task) throws ClientException
ClientException
public List<Action> getTaskButtons(Task task) throws ClientException
ClientException
public String endTask(Task task) throws ClientException
ClientException
public Map<String,Serializable> getFormVariables(Task task) throws ClientException
ClientException
public RoutingTaskActionsBean.TaskInfo getTaskInfo(Task task, boolean getFormVariables) throws ClientException
ClientException
public boolean isRoutingTask(Task task)
public List<Action> getTaskActions(Task task) throws ClientException
ClientException
public Map<String,Action> getTaskActionsMap(Task task) throws ClientException
ClientException
public List<Action> getTaskActions(String selectionListName) throws ClientException
ClientException
public String endTasks(String selectionListName, Action taskAction) throws ClientException
ClientException
@Observer(value={"workflowTaskCompleted","workflowTaskReassigned","workflowTaskDelegated"}) @BypassInterceptors public void OnTaskCompleted()
public String reassignTask(RoutingTaskActionsBean.TaskInfo taskInfo)
public String delegateTask(RoutingTaskActionsBean.TaskInfo taskInfo)
public String navigateToTask(DocumentModel taskDoc)
public String navigateToTasksView()
public Task getCurrentTask()
public void setCurrentTask(Task currentTask)
public List<String> getCurrentTaskTargetDocumentsIds() throws ClientException
ClientException
public boolean canBeReassign() throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.