Interface ITaskBizPolicy
- All Superinterfaces:
IBasicPolicy
,IBizPolicy
,IComponent
,IInitializable
,ISystemHandler
,IViewablePolicy
Class ITaskBizPolicy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptioncreateTask
(IContext context, IURI taskDefinitionURI, Map<String, ?> properties) Creates new taskvoid
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 availablegetRecalculationStatus
(IContext context, String taskTypeID) Returns task view by its urigetTaskData
(IContext context, IURI taskURI) Returns custom task data by task urigetTaskDelegatedBy
(IContext context, IURI taskURI, IURI principalURI) Returns uri of the principal who delegated the given task to the given principalboolean
isTaskAssignedToUser
(IContext context, IURI taskURI, IURI principalURI) Checks if task is still assigned to the userlistAllTasks
(IContext context) Searches list of all taskslistUserTasks
(IContext context, IURI principalURI) Returns list of tasks assigned to the specified uservoid
rollbackTask
(IContext context, IURI taskURI, int auditEntryID) Reverts task state to identified by audit entry IDsearchAllTasks
(IContext context, TaskSearchQuery taskQuery) Searches list of all taskssearchAllTasksPaged
(IContext context, TaskSearchQueryV2 taskQuery, boolean businessData) int
searchAllTasksTotalCount
(IContext context, TaskSearchQueryV2 taskQuery, boolean businessData) searchUserTasks
(IContext context, IURI principalURI, TaskSearchQuery taskQuery) Returns list of tasks assigned to the specified usersearchUserTasksPaged
(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 typevoid
stopVoteRecalculation
(IContext context, String taskTypeID) Stop recalculation of vote statusint
updateTask
(IContext context, IURI taskURI, Map<String, ?> properties) Updates task custom dataint
updateTask
(IContext context, IURI taskURI, Map<String, ?> properties, int taskVersionNumber, boolean lockTask, boolean hiddenUpdate) Updates the taskvoid
Vote with a specific status for a certain task.Methods inherited from interface com.webmethods.portal.bizPolicy.biz.meta.IBasicPolicy
addNote, addToTopics, canUser, cloneRemote, copyToClipboard, cutToClipboard, delete, deleteReference, destroy, getContent, listContainers, listNotes, moveThing, moveThing, pasteFromClipboard, removeNote, setOwner, updateProperties
Methods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.bizPolicy.biz.view.IViewablePolicy
getIcon, getPagingCookie, getPagingCookie, pageBackward, pageForeward, setPagingCookie, view
-
Field Details
-
UPDATE_RESULT_SUCCESS
static final int UPDATE_RESULT_SUCCESS- See Also:
-
UPDATE_RESULT_TASK_MUTABLE
static final int UPDATE_RESULT_TASK_MUTABLE- See Also:
-
UPDATE_RESULT_TASK_NOT_UP_TO_DATE
static final int UPDATE_RESULT_TASK_NOT_UP_TO_DATE- See Also:
-
-
Method Details
-
createTask
IURI createTask(IContext context, IURI taskDefinitionURI, Map<String, ?> properties) throws BizExceptionCreates new task- Parameters:
context
- execution contexttaskDefinitionURI
- task typeproperties
- additional properties (like name, description)- Returns:
- created task uri
- Throws:
BizException
-
rollbackTask
Reverts task state to identified by audit entry ID- Parameters:
context
-taskURI
-auditEntryID
-- Throws:
BizException
-
updateTask
Updates task custom data- Parameters:
context
-taskURI
- task uri to update data for- Throws:
BizException
-
updateTask
int updateTask(IContext context, IURI taskURI, Map<String, ?> properties, int taskVersionNumber, boolean lockTask, boolean hiddenUpdate) throws BizExceptionUpdates the task- Parameters:
context
-taskURI
-properties
-taskVersionNumber
-lockTask
-- Throws:
BizException
-
getTask
Returns task view by its uri- Parameters:
context
-taskURI
- task uri to fetch- Returns:
- task instance of null if not found
- Throws:
BizException
-
getTaskData
Returns custom task data by task uri- Parameters:
context
-taskURI
- task uri to fetch- Returns:
- custom task data
- Throws:
BizException
-
isTaskAssignedToUser
Checks if task is still assigned to the user- Parameters:
context
-taskURI
- task uri to checkprincipalURI
- principal uri to check- Returns:
- Throws:
BizException
-
getTaskDelegatedBy
Returns uri of the principal who delegated the given task to the given principal- Parameters:
context
-taskURI
- task uri to checkprincipalURI
- principal uri whom task was delegated- Returns:
- uri of the principal who delegated task or null if task was not delegated
- Throws:
BizException
-
listAllTasks
Searches list of all tasks- Parameters:
context
- For example query: "name=order*,status=completed"- Returns:
- Throws:
BizException
-
listUserTasks
Returns list of tasks assigned to the specified user- Parameters:
context
-principalURI
- principal uri which tasks should be returned- Returns:
- Throws:
BizException
-
searchAllTasks
Searches list of all tasks- Parameters:
context
- For example query: "name=order*,status=completed"- Returns:
- Throws:
BizException
-
searchUserTasks
ITaskList searchUserTasks(IContext context, IURI principalURI, TaskSearchQuery taskQuery) throws BizException Returns list of tasks assigned to the specified user- Parameters:
context
-principalURI
- principal uri which tasks should be returned- Returns:
- Throws:
BizException
-
searchUserTasksPaged
List<ITaskSearchRecord> searchUserTasksPaged(IContext context, IURI principalURI, TaskSearchQueryV2 taskQuery, boolean businessData) throws BizException - Throws:
BizException
-
searchUserTasksTotalCount
int searchUserTasksTotalCount(IContext context, IURI principalURI, TaskSearchQueryV2 taskQuery, boolean businessData) throws BizException - Throws:
BizException
-
searchAllTasksPaged
List<ITaskSearchRecord> searchAllTasksPaged(IContext context, TaskSearchQueryV2 taskQuery, boolean businessData) throws BizException - Throws:
BizException
-
searchAllTasksTotalCount
int searchAllTasksTotalCount(IContext context, TaskSearchQueryV2 taskQuery, boolean businessData) throws BizException - Throws:
BizException
-
formFlowTaskNotify
void formFlowTaskNotify(IContext context, String correlationID, String result, boolean localOnly) throws BizException When using the TaskFormFlowService to coordinate task flow, send a notification that the next task in the flow is available- Parameters:
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 only- Throws:
BizException
-
setInstancesStatus
String[] setInstancesStatus(IContext context, String taskTypeID, String status, boolean logInFile, int batchSize) throws BizException - Parameters:
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 together- Returns:
- Array of all processed task instance IDs
- Throws:
BizException
-
voteTask
Vote with a specific status for a certain task.- Parameters:
context
-taskID
-status
-user
-- Throws:
BizException
-
startVoteRecalculation
Recalculate status of voting for given task type- Parameters:
context
-taskTypeID
-- Throws:
BizException
-
stopVoteRecalculation
Stop recalculation of vote status- Parameters:
context
-taskTypeID
-- Throws:
BizException
-
getRecalculationStatus
- Parameters:
context
- (required) execution contexttaskTypeID
- (required) taskTypeId which Recalculation will be returned- Returns:
- Recalculation status
- Throws:
BizException
-