public interface ITaskBizPolicy extends IBasicPolicy
Modifier and Type | Field and Description |
---|---|
static int |
UPDATE_RESULT_SUCCESS |
static int |
UPDATE_RESULT_TASK_MUTABLE |
static int |
UPDATE_RESULT_TASK_NOT_UP_TO_DATE |
Modifier and Type | Method and Description |
---|---|
IURI |
createTask(IContext context,
IURI taskDefinitionURI,
Map<String,?> properties)
Creates new task
|
void |
formFlowTaskNotify(IContext context,
String correlationID,
String result,
boolean localOnly)
When using the TaskFormFlowService to coordinate task flow, send a notification that the next
task in the flow is available
|
RecalculationStatus |
getRecalculationStatus(IContext context,
String taskTypeID) |
ITask |
getTask(IContext context,
IURI taskURI)
Returns task view by its uri
|
Object |
getTaskData(IContext context,
IURI taskURI)
Returns custom task data by task uri
|
IURI |
getTaskDelegatedBy(IContext context,
IURI taskURI,
IURI principalURI)
Returns uri of the principal who delegated the given task to the given principal
|
boolean |
isTaskAssignedToUser(IContext context,
IURI taskURI,
IURI principalURI)
Checks if task is still assigned to the user
|
ITaskList |
listAllTasks(IContext context)
Searches list of all tasks
|
ITaskList |
listUserTasks(IContext context,
IURI principalURI)
Returns list of tasks assigned to the specified user
|
void |
rollbackTask(IContext context,
IURI taskURI,
int auditEntryID)
Reverts task state to identified by audit entry ID
|
ITaskList |
searchAllTasks(IContext context,
TaskSearchQuery taskQuery)
Searches list of all tasks
|
List<ITaskSearchRecord> |
searchAllTasksPaged(IContext context,
TaskSearchQueryV2 taskQuery,
boolean businessData) |
int |
searchAllTasksTotalCount(IContext context,
TaskSearchQueryV2 taskQuery,
boolean businessData) |
ITaskList |
searchUserTasks(IContext context,
IURI principalURI,
TaskSearchQuery taskQuery)
Returns list of tasks assigned to the specified user
|
List<ITaskSearchRecord> |
searchUserTasksPaged(IContext context,
IURI principalURI,
TaskSearchQueryV2 taskQuery,
boolean businessData) |
int |
searchUserTasksTotalCount(IContext context,
IURI principalURI,
TaskSearchQueryV2 taskQuery,
boolean businessData) |
String[] |
setInstancesStatus(IContext context,
String taskTypeID,
String status,
boolean logInFile,
int batchSize) |
void |
startVoteRecalculation(IContext context,
String taskTypeID)
Recalculate status of voting for given task type
|
void |
stopVoteRecalculation(IContext context,
String taskTypeID)
Stop recalculation of vote status
|
int |
updateTask(IContext context,
IURI taskURI,
Map<String,?> properties)
Updates task custom data
|
int |
updateTask(IContext context,
IURI taskURI,
Map<String,?> properties,
int taskVersionNumber,
boolean lockTask,
boolean hiddenUpdate)
Updates the task
|
void |
voteTask(IContext context,
String taskID,
String status,
String user)
Vote with a specific status for a certain task.
|
addNote, addToTopics, canUser, cloneRemote, copyToClipboard, cutToClipboard, delete, deleteReference, destroy, getContent, listContainers, listNotes, moveThing, moveThing, pasteFromClipboard, removeNote, setOwner, updateProperties
getIcon, getPagingCookie, getPagingCookie, pageBackward, pageForeward, setPagingCookie, view
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
static final int UPDATE_RESULT_SUCCESS
static final int UPDATE_RESULT_TASK_MUTABLE
static final int UPDATE_RESULT_TASK_NOT_UP_TO_DATE
IURI createTask(IContext context, IURI taskDefinitionURI, Map<String,?> properties) throws BizException
context
- execution contexttaskDefinitionURI
- task typeproperties
- additional properties (like name, description)BizException
void rollbackTask(IContext context, IURI taskURI, int auditEntryID) throws BizException
context
- taskURI
- auditEntryID
- BizException
int updateTask(IContext context, IURI taskURI, Map<String,?> properties) throws BizException
context
- taskURI
- task uri to update data forBizException
int updateTask(IContext context, IURI taskURI, Map<String,?> properties, int taskVersionNumber, boolean lockTask, boolean hiddenUpdate) throws BizException
context
- taskURI
- properties
- taskVersionNumber
- lockTask
- BizException
ITask getTask(IContext context, IURI taskURI) throws BizException
context
- taskURI
- task uri to fetchBizException
Object getTaskData(IContext context, IURI taskURI) throws BizException
context
- taskURI
- task uri to fetchBizException
boolean isTaskAssignedToUser(IContext context, IURI taskURI, IURI principalURI) throws BizException
context
- taskURI
- task uri to checkprincipalURI
- principal uri to checkBizException
IURI getTaskDelegatedBy(IContext context, IURI taskURI, IURI principalURI) throws BizException
context
- taskURI
- task uri to checkprincipalURI
- principal uri whom task was delegatedBizException
ITaskList listAllTasks(IContext context) throws BizException
context
- For example query: "name=order*,status=completed"BizException
ITaskList listUserTasks(IContext context, IURI principalURI) throws BizException
context
- principalURI
- principal uri which tasks should be returnedBizException
ITaskList searchAllTasks(IContext context, TaskSearchQuery taskQuery) throws BizException
context
- For example query: "name=order*,status=completed"BizException
ITaskList searchUserTasks(IContext context, IURI principalURI, TaskSearchQuery taskQuery) throws BizException
context
- principalURI
- principal uri which tasks should be returnedBizException
List<ITaskSearchRecord> searchUserTasksPaged(IContext context, IURI principalURI, TaskSearchQueryV2 taskQuery, boolean businessData) throws BizException
BizException
int searchUserTasksTotalCount(IContext context, IURI principalURI, TaskSearchQueryV2 taskQuery, boolean businessData) throws BizException
BizException
List<ITaskSearchRecord> searchAllTasksPaged(IContext context, TaskSearchQueryV2 taskQuery, boolean businessData) throws BizException
BizException
int searchAllTasksTotalCount(IContext context, TaskSearchQueryV2 taskQuery, boolean businessData) throws BizException
BizException
void formFlowTaskNotify(IContext context, String correlationID, String result, boolean localOnly) throws BizException
context
- correlationID
- the correction ID used by TaskFormFlowService to uniquely identify a form flowresult
- the result of the task flow, usually the task URL of the next task in the flowlocalOnly
- wait for in-proc notification onlyBizException
String[] setInstancesStatus(IContext context, String taskTypeID, String status, boolean logInFile, int batchSize) throws BizException
context
- (required) execution contexttaskTypeId
- (required) taskTypeId which instances to be updatedstatus(required)
- new statuslogInFile
- (optional) whether result should be logged in file or returned as responsebatchSize
- (optional) the total number of tasks instances that will be processed togetherBizException
void voteTask(IContext context, String taskID, String status, String user) throws BizException
context
- taskID
- status
- user
- BizException
void startVoteRecalculation(IContext context, String taskTypeID) throws BizException
context
- taskTypeID
- BizException
void stopVoteRecalculation(IContext context, String taskTypeID) throws BizException
context
- taskTypeID
- BizException
RecalculationStatus getRecalculationStatus(IContext context, String taskTypeID) throws BizException
context
- (required) execution contexttaskTypeID
- (required) taskTypeId which Recalculation will be returnedBizException