@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() |
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(FacesContext context, UIComponent component, Object value)
public void validateSubject(FacesContext context, 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 boolean canBeReassign() throws ClientException
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.