public class JBPMDocTaskProvider extends Object implements TaskProvider
Modifier and Type | Field and Description |
---|---|
static String |
PUBLISHER_JBPMTASK_NAME |
static String |
PUBLISHER_TASK_NAME |
static String |
WORKFLOW_REJECT_TRANSITION |
Constructor and Description |
---|
JBPMDocTaskProvider() |
Modifier and Type | Method and Description |
---|---|
static void |
eagerLoadTaskInstance(TaskInstance ti) |
String |
endTask(CoreSession coreSession,
NuxeoPrincipal principal,
Task task,
String comment,
String eventName,
boolean isValidated)
Ends the task
|
List<Task> |
getAllTaskInstances(String processId,
CoreSession session)
Returns all the tasks instances for the given
processId . |
List<Task> |
getAllTaskInstances(String processId,
List<String> actors,
CoreSession session)
Returns all the tasks instances for the given
processId which
assigned to one of the actor in the list or its pool. |
List<Task> |
getAllTaskInstances(String processId,
NuxeoPrincipal user,
CoreSession session)
Returns all the tasks instances for the given
processId and where
the user is the actor or belongs to the pooled actor list. |
List<Task> |
getAllTaskInstances(String processId,
String nodeId,
CoreSession session)
Returns all the tasks instances for the given
processId
originating from the given nodeId . |
List<Task> |
getCurrentTaskInstances(CoreSession coreSession) |
List<Task> |
getCurrentTaskInstances(List<String> actors,
CoreSession coreSession)
Returns a list of task instances assigned to one of the actors in the
list or to its pool.
|
JbpmService |
getJbpmService() |
List<Task> |
getTaskInstances(DocumentModel dm,
List<String> actors,
CoreSession coreSession)
Returns the list of task instances associated with this document assigned
to one of the actor in the list or its pool.
|
List<Task> |
getTaskInstances(DocumentModel dm,
NuxeoPrincipal user,
CoreSession coreSession)
Returns the list of task instances associated with this document for
which the user is the actor or belongs to the pooled actor list.
|
TaskService |
getTaskService() |
UserManager |
getUserManager() |
public static final String PUBLISHER_JBPMTASK_NAME
public static final String PUBLISHER_TASK_NAME
public static final String WORKFLOW_REJECT_TRANSITION
public static void eagerLoadTaskInstance(TaskInstance ti)
public List<Task> getCurrentTaskInstances(CoreSession coreSession) throws ClientException
getCurrentTaskInstances
in interface TaskProvider
ClientException
public List<Task> getCurrentTaskInstances(List<String> actors, CoreSession coreSession) throws ClientException
TaskProvider
getCurrentTaskInstances
in interface TaskProvider
actors
- a list used as actorId to retrieve the tasks.ClientException
public List<Task> getTaskInstances(DocumentModel dm, NuxeoPrincipal user, CoreSession coreSession) throws ClientException
TaskProvider
If the user is null, then it returns all task instances for the document.
getTaskInstances
in interface TaskProvider
dm
- the document.ClientException
public List<Task> getAllTaskInstances(String processId, CoreSession session) throws ClientException
TaskProvider
processId
.
The query is done in unrestricted mode and so the documents linked to the tasks are detached.
getAllTaskInstances
in interface TaskProvider
ClientException
public List<Task> getAllTaskInstances(String processId, String nodeId, CoreSession session) throws ClientException
TaskProvider
processId
originating from the given nodeId
.
The query is done in unrestricted mode and so the documents linked to the tasks are detached.
getAllTaskInstances
in interface TaskProvider
ClientException
public List<Task> getAllTaskInstances(String processId, NuxeoPrincipal user, CoreSession session) throws ClientException
TaskProvider
processId
and where
the user is the actor or belongs to the pooled actor list.
The query is done in unrestricted mode and so the documents linked to the tasks are detached.
getAllTaskInstances
in interface TaskProvider
ClientException
public List<Task> getAllTaskInstances(String processId, List<String> actors, CoreSession session) throws ClientException
TaskProvider
processId
which
assigned to one of the actor in the list or its pool.
The query is done in unrestricted mode and so the documents linked to the tasks are detached.
getAllTaskInstances
in interface TaskProvider
ClientException
public List<Task> getTaskInstances(DocumentModel dm, List<String> actors, CoreSession coreSession) throws ClientException
TaskProvider
getTaskInstances
in interface TaskProvider
ClientException
public String endTask(CoreSession coreSession, NuxeoPrincipal principal, Task task, String comment, String eventName, boolean isValidated) throws ClientException
TaskProvider
endTask
in interface TaskProvider
coreSession
- the session to use when notifying and resolving of
referenced document for notification.principal
- principal used when notifyingtask
- the instance to endcomment
- string added to the task comments and used as a
notification commenteventName
- the core event name to use when notifyingisValidated
- boolean marker to state if the task was validated or
rejectedClientException
- when trying to end a task without being granted
the right to do so (see
#canEndTask(NuxeoPrincipal, Task)
), or when any other
error occurspublic JbpmService getJbpmService()
public TaskService getTaskService()
public UserManager getUserManager()
Copyright © 2013 Nuxeo SA. All Rights Reserved.