@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 |
---|---|
String |
endTask(Task task) |
String |
endTasks(String selectionListName,
Action taskAction)
Ends a task given a selection list name and an action
|
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) |
void |
OnTaskCompleted() |
String |
reassignTask(RoutingTaskActionsBean.TaskInfo taskInfo) |
void |
validateSubject(FacesContext context,
UIComponent component,
Object value) |
void |
validateTaskDueDate(FacesContext context,
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(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") @BypassInterceptors public void OnTaskCompleted()
public String reassignTask(RoutingTaskActionsBean.TaskInfo taskInfo)
Copyright © 2013 Nuxeo SA. All Rights Reserved.