|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.task.service.TaskServiceSession
public class TaskServiceSession
Nested Class Summary | |
---|---|
static interface |
TaskServiceSession.TransactedOperation
|
Constructor Summary | |
---|---|
TaskServiceSession(TaskService service,
TaskPersistenceManager tpm)
|
Method Summary | |
---|---|
void |
addAttachment(long taskId,
Attachment attachment,
Content content)
|
void |
addComment(long taskId,
Comment comment)
|
void |
addGroup(Group group)
|
void |
addTask(Task task,
ContentData contentData)
|
void |
addUser(User user)
|
void |
claimNextAvailable(String userId,
List<String> groupIds,
String language)
Deprecated. |
void |
claimNextAvailable(String userId,
String language)
|
void |
deleteAttachment(long taskId,
long attachmentId,
long contentId)
|
void |
deleteComment(long taskId,
long commentId)
|
void |
deleteFault(long taskId,
String userId)
|
void |
deleteOutput(long taskId,
String userId)
|
void |
dispose()
|
void |
doOperationInTransaction(TaskServiceSession.TransactedOperation operation)
Executes the specified operation within a transaction. |
void |
executeEscalatedDeadline(EscalatedDeadlineHandler escalatedDeadlineHandler,
TaskService service,
long taskId,
long deadlineId)
|
Content |
getContent(long contentId)
This method should only be called from a ServerHandler or TaskService implementation. |
Deadline |
getDeadline(long deadlineId)
|
TaskService |
getService()
|
List<TaskSummary> |
getSubTasksAssignedAsPotentialOwner(long parentId,
String userId,
String language)
|
List<TaskSummary> |
getSubTasksByParent(long parentId,
String language)
|
Task |
getTask(long taskId)
|
Task |
getTaskByWorkItemId(long workItemId)
|
TaskPersistenceManager |
getTaskPersistenceManager()
|
List<TaskSummary> |
getTasksAssignedAsBusinessAdministrator(String userId,
String language)
|
List<TaskSummary> |
getTasksAssignedAsExcludedOwner(String userId,
String language)
|
List<TaskSummary> |
getTasksAssignedAsPotentialOwner(String userId,
List<String> groupIds,
String language)
Deprecated. |
List<TaskSummary> |
getTasksAssignedAsPotentialOwner(String userId,
List<String> groupIds,
String language,
int firstResult,
int maxResults)
Deprecated. |
List<TaskSummary> |
getTasksAssignedAsPotentialOwner(String userId,
String language)
This is default method to get tasks assigned to userId based on user membership and direct assignment. |
List<TaskSummary> |
getTasksAssignedAsPotentialOwner(String userId,
String language,
int firstResult,
int maxResults)
|
List<TaskSummary> |
getTasksAssignedAsPotentialOwnerByGroup(String groupId,
String language)
Deprecated. |
List<TaskSummary> |
getTasksAssignedAsPotentialOwnerByStatus(String userId,
List<Status> status,
String language)
|
List<TaskSummary> |
getTasksAssignedAsPotentialOwnerByStatusByGroup(String userId,
List<String> groupIds,
List<Status> status,
String language)
Deprecated. |
List<TaskSummary> |
getTasksAssignedAsRecipient(String userId,
String language)
|
List<TaskSummary> |
getTasksAssignedAsTaskInitiator(String userId,
String language)
|
List<TaskSummary> |
getTasksAssignedAsTaskStakeholder(String userId,
String language)
|
List<TaskSummary> |
getTasksByStatusByProcessId(long processInstanceId,
List<Status> status,
String language)
|
List<TaskSummary> |
getTasksByStatusByProcessIdByTaskName(long processInstanceId,
List<Status> status,
String taskName,
String language)
|
List<TaskSummary> |
getTasksOwned(String userId,
List<Status> status,
String language)
|
List<TaskSummary> |
getTasksOwned(String userId,
String language)
|
void |
nominateTask(long taskId,
String userId,
List<OrganizationalEntity> potentialOwners)
|
List<?> |
query(String qlString,
Integer size,
Integer offset)
Deprecated. |
void |
scheduleUnescalatedDeadlines()
|
void |
setDocumentContent(long taskId,
Content content)
|
void |
setFault(long taskId,
String userId,
FaultData faultContentData)
|
void |
setGlobals(String type,
Map<String,Object> globals)
|
void |
setOutput(long taskId,
String userId,
ContentData outputContentData)
|
void |
setPriority(long taskId,
String userId,
int priority)
|
void |
setRuleBase(String type,
org.drools.RuleBase ruleBase)
|
void |
setTaskStatus(long taskId,
Status status)
|
void |
taskOperation(Operation operation,
long taskId,
String userId,
String targetEntityId,
ContentData data,
List<String> groupIds)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskServiceSession(TaskService service, TaskPersistenceManager tpm)
Method Detail |
---|
public void dispose()
public TaskPersistenceManager getTaskPersistenceManager()
public TaskService getService()
public void setRuleBase(String type, org.drools.RuleBase ruleBase)
public void setGlobals(String type, Map<String,Object> globals)
public void addUser(User user)
public void addGroup(Group group)
public void addTask(Task task, ContentData contentData) throws CannotAddTaskException
CannotAddTaskException
public void scheduleUnescalatedDeadlines()
public void taskOperation(Operation operation, long taskId, String userId, String targetEntityId, ContentData data, List<String> groupIds) throws TaskException
TaskException
public Task getTask(long taskId)
public Deadline getDeadline(long deadlineId)
public void setTaskStatus(long taskId, Status status)
public void addComment(long taskId, Comment comment)
public void addAttachment(long taskId, Attachment attachment, Content content)
public void setDocumentContent(long taskId, Content content)
public Content getContent(long contentId)
contentId
- The id of the Content object.
public void deleteAttachment(long taskId, long attachmentId, long contentId)
public void deleteComment(long taskId, long commentId)
public void claimNextAvailable(String userId, String language)
@Deprecated public void claimNextAvailable(String userId, List<String> groupIds, String language)
@Deprecated public List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, List<String> groupIds, String language)
public Task getTaskByWorkItemId(long workItemId)
public List<TaskSummary> getTasksOwned(String userId, String language)
public List<TaskSummary> getTasksOwned(String userId, List<Status> status, String language)
public List<TaskSummary> getTasksAssignedAsBusinessAdministrator(String userId, String language)
public List<TaskSummary> getTasksAssignedAsExcludedOwner(String userId, String language)
public List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, String language)
userId
based on user membership and direct assignment.
userId
- user id which tasks are assigned forlanguage
- preferred locale
public List<TaskSummary> getTasksAssignedAsPotentialOwnerByStatus(String userId, List<Status> status, String language)
public List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, String language, int firstResult, int maxResults)
@Deprecated public List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, List<String> groupIds, String language, int firstResult, int maxResults)
public List<TaskSummary> getSubTasksAssignedAsPotentialOwner(long parentId, String userId, String language)
@Deprecated public List<TaskSummary> getTasksAssignedAsPotentialOwnerByGroup(String groupId, String language)
public List<TaskSummary> getSubTasksByParent(long parentId, String language)
public List<TaskSummary> getTasksAssignedAsRecipient(String userId, String language)
public List<TaskSummary> getTasksAssignedAsTaskInitiator(String userId, String language)
public List<TaskSummary> getTasksAssignedAsTaskStakeholder(String userId, String language)
@Deprecated public List<?> query(String qlString, Integer size, Integer offset)
qlString
- The query string.size
- Maximum number of results to return.offset
- The offset from the beginning of the result list determining the first result.
public void nominateTask(long taskId, String userId, List<OrganizationalEntity> potentialOwners)
public void setOutput(long taskId, String userId, ContentData outputContentData)
public void setFault(long taskId, String userId, FaultData faultContentData)
public void setPriority(long taskId, String userId, int priority)
public void deleteOutput(long taskId, String userId)
public void deleteFault(long taskId, String userId)
public void doOperationInTransaction(TaskServiceSession.TransactedOperation operation)
TaskPersistenceManager.queryWithParametersInTransaction(String, Map)
.
If you change the logic here, please make sure to change the logic there as well (and vice versa).
operation
- operation to execute@Deprecated public List<TaskSummary> getTasksAssignedAsPotentialOwnerByStatusByGroup(String userId, List<String> groupIds, List<Status> status, String language)
public List<TaskSummary> getTasksByStatusByProcessId(long processInstanceId, List<Status> status, String language)
public List<TaskSummary> getTasksByStatusByProcessIdByTaskName(long processInstanceId, List<Status> status, String taskName, String language)
public void executeEscalatedDeadline(EscalatedDeadlineHandler escalatedDeadlineHandler, TaskService service, long taskId, long deadlineId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |