Class GetOpenTasksOperation
- java.lang.Object
-
- org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation
-
public class GetOpenTasksOperation extends Object
Returns all open tasks on the input document(s). If the operation is invoked with parameters, all tasks instances for the given 'processId' originating from the given 'nodeId' are returned. The 'processId' is the id of the document representing the workflow instance. The parameter 'username' is used to fetch only tasks assigned to the given user. Tasks are queried using an unrestricted session.- Since:
- 5.7.2
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID
protected String
nodeId
If not provided and the operation is run within a workflow (chain called by a transition or an escalation rule for instance), this parameter is bound to the "nodeId" operation context variable, seeGraphNodeImpl.getWorkflowContextualInfo(CoreSession, boolean)
.protected String
processId
If not provided and the operation is run within a workflow (chain called by a transition or an escalation rule for instance), this parameter is bound to the "workflowInstanceId" operation context variable, seeGraphNodeImpl.getWorkflowContextualInfo(CoreSession, boolean)
.protected CoreSession
session
protected TaskService
taskService
protected UserManager
userManager
protected String
username
-
Constructor Summary
Constructors Constructor Description GetOpenTasksOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModelList
getAllTasks(DocumentModel doc)
DocumentModelList
getAllTasks(DocumentModelList docs)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
session
protected CoreSession session
-
nodeId
protected String nodeId
If not provided and the operation is run within a workflow (chain called by a transition or an escalation rule for instance), this parameter is bound to the "nodeId" operation context variable, seeGraphNodeImpl.getWorkflowContextualInfo(CoreSession, boolean)
.
-
processId
protected String processId
If not provided and the operation is run within a workflow (chain called by a transition or an escalation rule for instance), this parameter is bound to the "workflowInstanceId" operation context variable, seeGraphNodeImpl.getWorkflowContextualInfo(CoreSession, boolean)
.
-
taskService
protected TaskService taskService
-
userManager
protected UserManager userManager
-
-
Constructor Detail
-
GetOpenTasksOperation
public GetOpenTasksOperation()
-
-
Method Detail
-
getAllTasks
public DocumentModelList getAllTasks(DocumentModel doc)
-
getAllTasks
public DocumentModelList getAllTasks(DocumentModelList docs)
-
-