|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adobe.idp.taskmanager.dsc.client.TypedTaskManagerService
public class TypedTaskManagerService
| Field Summary | |
|---|---|
static java.util.logging.Logger |
logger
|
static java.lang.String |
MAX_PERF
|
| Method Summary | |
|---|---|
AttachmentInfo |
addAttachment(long aTaskId,
AttachmentInfo aAttachmentInfo,
byte[] aAttachmentBytes)
Appends a new attachment of type AttachmentInfo.TYPE_ATTACHMENT to the specified task. |
AttachmentInfo |
addAttachment(long aTaskId,
AttachmentInfo aAttachmentInfo,
Document aAttachmentDocument)
Appends a new attachment of type AttachmentInfo.TYPE_ATTACHMENT to the specified task. |
AttachmentInfo |
addAttachment(long aTaskId,
AttachmentInfo aAttachmentInfo,
java.io.InputStream attachmentStream)
Appends a new attachment of type AttachmentInfo.TYPE_ATTACHMENT to the specified task. |
AttachmentInfo |
addNote(long aTaskId,
AttachmentInfo aAttachmentInfo)
Appends a new attachment of type AttachmentInfo.TYPE_NOTE to the specified task. |
java.util.List |
addTasks(java.lang.Long aActionId,
java.util.List aPrincipalOids)
Adds Tasks to an Action Instance associated with the multi-user service. |
BatchResult |
batchReassignTasks(java.lang.Long[] aTaskIds,
java.lang.String aReassignToUser,
boolean ignoreErrors)
Reassigns a number of tasks to another user queue. |
FormServiceInvokeResponse |
callRenderService(long aTaskId,
long aFormId,
java.util.Map aInputMap)
Calls the render service specified in the process for this task. |
FormServiceInvokeResponse |
callSubmitService(long aTaskId,
long aFormId,
Document aDocumentSubmitted,
java.util.Map aInputMap)
Calls the submit service specified in the process for this task. |
void |
cancelTask(long aTaskId)
Removes all persisted data for an active non-workflow task. |
void |
cancelTaskUnsecure(long aTaskId,
java.lang.String principalOid)
Removes all persisted data for an active non-workflow task without checking the user ACL. |
void |
changeDeadline(long taskID,
java.util.Date newDeadline)
Modifies the deadline for a task if the user has the permission to do so. |
void |
changeDescription(java.lang.Long aTaskId,
java.lang.String aUpdatedDescription)
Changes the description for a task. |
void |
changeQueueForTask(long aTaskId,
long aTargetQueueId)
Moves the specified task to another queue also owned by the user who owns the task's current queue. |
void |
changeReminder(long taskID,
java.util.Date newReminder)
|
void |
claimTask(long aTaskId)
Claims a task from a user queue in which the user calling this method is permitted to claim the task (see TaskACL.isCanClaim() and
TaskACL.setCanClaim()),
or from a group queue of which the user is a member. |
void |
claimTask(long aTaskId,
boolean aLockTask)
Claims a task from a queue to which the user has access, or from a group queue of which the user is a member. |
CompleteTaskResult |
completeTask(long aTaskId)
Completes the specified task. |
CompleteTaskResult |
completeTask(long aTaskId,
FormInstance formData)
Completes the specified task with the specified data. |
CompleteTaskResult |
completeTask(long aTaskId,
java.lang.String selectedAction)
Completes the specified task with the specified action. |
void |
consultTask(long aTaskId,
java.lang.String userIdToConsult)
Consults with another user on a task, in order to retrieve input from that other user. |
void |
copyAttachmentsToTask(long aTaskId,
java.util.List aAttachmentList)
Copies attachments from a java.util.List of Document objects to the task. |
CreateTaskResult |
createTask(CreateTaskInfo createTaskInfo)
Creates a new task. |
CreateTaskResult |
createTask(FormInstance newFormData,
java.lang.String instructions,
boolean showAttachments)
Creates new tasks not yet associated with a process. |
CreateTaskResult |
createTask(long actionId,
FormInstance aFormData,
java.lang.String instructions,
long queueId,
boolean aCopyAttachments,
boolean aShowAttachments)
Creates a task associated with the given action instance and assigns the task to a queue. |
CreateTaskResult |
createTask(long actionId,
FormInstance aFormData,
java.lang.String instructions,
long queueId,
java.util.List aAttachmentsToCopy,
boolean aShowAttachments)
Creates a task associated with the given action instance and assigns the task to a queue. |
CompleteTaskResult |
deadlineTask(long aTaskId,
java.lang.String aDeadlineAction,
boolean aChangeInstructions,
java.lang.String aDeadlineInstructions)
Completes a task with a deadline event. |
void |
deleteAttachment(long aTaskId,
long aAttachmentId)
Removes an attachment from the specfied task. |
void |
escalateTask(long aTaskId,
long aQueueId)
Escalates a task to another queue. |
void |
escalateTask(long aTaskId,
long aQueueId,
boolean aAllowOOODesignations)
Escalates a task to another queue, optionally indicating that the escalations can be OOO designated |
void |
forwardTask(long aTaskId,
java.lang.String userIdToForward)
Forwards a non-completed task from a user queue to the default queue indicated in the userIdToForward parameter. |
void |
forwardTaskUnsecure(long aTaskId,
java.lang.String userIdToForward,
java.lang.String principalOid)
Forwards a non-completed task from a user queue to the default queue indicated in the userIdToForward parameter. |
AttachmentInfo[] |
getAllAttachments(long aTaskId)
Retrieves all currently readable (visible) attachments for this task. |
AttachmentInfo |
getAttachmentInfo(long aTaskId,
long aAttachmentId)
Retrieves attachment information for the attachment. |
java.util.List |
getAttachmentListForTask(long aTaskId)
Retrieves a java.util.List of Document objects representing the attachments for a task. |
java.lang.String |
getCompletionNote(long aTaskId)
Retrieves a completion note for the task, if there is one |
TaskACL |
getEmptyACL()
Retrieves a TaskACL object for this object. |
CreateTaskInfo |
getEmptyCreateTaskInfo()
Retrieves a CreateTaskInfo object for this object. |
FormInstance |
getEmptyForm()
Retrieves a FormInstance object for this object. |
FormInstance |
getFormInstanceForTask(long aTaskId)
Retrieves a FormInstance object associated with a task. |
FormInstance |
getFormInstanceForTask(long aTaskId,
boolean aRetrieveData)
Retrieves a FormInstance object associated with a task. |
FormInstance |
getFormInstanceForTask(long aTaskId,
long aFormInstanceId)
Retrieves a FormInstance object associated with a task. |
FormInstance |
getFormInstanceForTask(long aTaskId,
long aFormInstanceId,
boolean aRetrieveData)
Retrieves a FormInstance object associated with a task. |
Document |
getImage(ImageTicket aImageId)
Retrieves an image for an image ticket. |
static TaskManager |
getInstance(ServiceClientFactory aServiceClientFactory)
|
ServiceClientFactory |
getServiceClientFactory()
|
TaskInfo |
getTaskInfo(long aTaskId)
Retrieves all of the relevant information about a task. |
TaskInfo |
getTaskInfo(long aTaskId,
boolean aReturnFormInstance)
Retrieves all of the relevant information about a task. |
TaskUserInfo[] |
getUsersWithAccessToTask(long aTaskId)
Retrieves a list of users who have access to the task. |
void |
lockTask(long aTaskId)
Locks a task so that no one else may claim it. |
void |
modifyTaskPermissions(long aTaskId,
TaskACL[] aPermissions)
Modifies the permissions for a task. |
AttachmentInfo |
newAttachmentInfo()
Creates a new AttachmentInfo object. |
byte[] |
readAttachmentBytes(long aTaskId,
long aAttachmentId)
Retrieves a byte array containing the specified attachment. |
Document |
readAttachmentDocument(long aTaskId,
long aAttachmentId)
Retrieves a Document containing the binary content of the specified attachment. |
java.io.InputStream |
readAttachmentStream(long aTaskId,
long aAttachmentId)
Retrieves an input stream containing the binary content of the specified attachment. |
java.lang.String |
readFullNoteContent(long taskId,
long attachmentId)
Retrieves the full note content. |
void |
reAssignTask(long aTaskId,
java.lang.String aReassignToUser)
Reassigns a task to another user queue. |
ImageTicket |
reconstructImageTicket(java.lang.String aSerializedValue)
Reconstructs an image ticket object from a previously received ImageTicket object. |
void |
rejectTask(long aTaskId)
Returns a task back to the queue from which the task was forwarded or claimed. |
void |
rejectTaskUnsecure(long aTaskId,
java.lang.String principalOid)
Returns a task back to the queue from which the task was forwarded or claimed. |
java.util.List |
removeTasks(java.lang.Long aActionId,
java.util.List aTaskIds)
Removes tasks from a multi-user service step that has not yet completed. |
TaskUIInfo |
retrieveTaskUI(long aTaskId,
boolean approvalContainer)
Retrieves a custom UI for the task, if one were specified. |
SaveTaskResult |
save(long aTaskId,
FormInstance aFormData)
Saves new form instance data for a task. |
SaveTaskResult |
save(long aTaskId,
java.lang.String taskName,
FormInstance aFormData)
Saves new form instance data for a task with a user provided task name. |
void |
sendNotification(java.lang.String message,
java.util.List userIds,
java.util.List grpIds)
used to send a notificatio message to specified users and groups |
void |
sendTaskReminder(long aTaskId,
boolean aChangeInstructions,
java.lang.String aReminderInstructions,
long aNextReminder)
Sends a reminder to the user to whom the identified task is currently assigned. |
void |
sendTaskReminder(long aTaskId,
boolean aChangeInstructions,
java.lang.String aReminderInstructions,
long aNextReminder,
boolean aUseBusinessDays)
Sends a reminder to the user to whom the identified task is currently assigned. |
void |
setClientParameter(java.lang.String aKey,
java.lang.String aValue)
|
void |
setCompletionNote(long aTaskId,
java.lang.String completionNote)
sets a completion note for the task. |
void |
setContext(Context aUser)
Sets the user for subsequent calls to a task manager instance. |
void |
setNoTX(boolean aNoTX)
|
void |
setParticipantIPAddress(java.lang.String aUsersIPAddress)
used to optionally store the User's IP Address with some TaskManager API calls |
void |
setServiceClientFactory(ServiceClientFactory aServiceClientFactory)
|
java.lang.Long |
setupWorkflowUser()
This method should be called when a user logs in. |
java.lang.Long |
setupWorkflowUserWithId(java.lang.String userOid)
This method should be called when a user's default queue is shared before the user logs in. |
SetupWorkflowUserResult |
setupWorkflowUserWithInfo()
This is an alternate to the setupWorkflowUser() method. |
void |
setVisibility(long aTaskId,
boolean aVisible)
Sets the visibility of a task. |
void |
shareTask(long aTaskId,
java.lang.String userIdToShare)
Shares a non-completed task with another user. |
CompleteTaskResult |
terminateTask(long aTaskId)
Completes a task with a terminate event. |
CompleteTaskResult[] |
terminateTasksForJobId(java.lang.String aJobID)
Completes all tasks associated with a JobId with a terminate event. |
void |
unLockTask(long aTaskId)
Unlocks a locked task so that another user may claim it. |
void |
updateAttachment(long aTaskId,
long aAttachmentId,
byte[] aAttachmentBytes)
Updates an existing attachment. |
void |
updateAttachment(long aTaskId,
long aAttachmentId,
Document aAttachmentDocument)
Updates an existing attachment. |
void |
updateAttachment(long aTaskId,
long aAttachmentId,
java.io.InputStream aAttachmentStream)
Updates an existing attachment. |
AttachmentInfo |
updateAttachmentInfo(long aTaskId,
AttachmentInfo aAttachmentInfo)
Updates the specified attachment information. |
AttachmentInfo |
updateAttachmentInfo(long aTaskId,
AttachmentInfo aAttachmentInfo,
byte[] aAttachmentBytes)
Updates the specified attachment information. |
AttachmentInfo |
updateAttachmentInfo(long aTaskId,
AttachmentInfo aAttachmentInfo,
Document aAttachmentDocument)
Updates the specified attachment information. |
void |
updateHardenedPath(long aTaskId,
java.lang.String aHardenedPath)
Allows the hardened path to be updated by a user in the workflow system role. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.logging.Logger logger
public static final java.lang.String MAX_PERF
| Method Detail |
|---|
public void setNoTX(boolean aNoTX)
public void setClientParameter(java.lang.String aKey,
java.lang.String aValue)
public static TaskManager getInstance(ServiceClientFactory aServiceClientFactory)
public void setContext(Context aUser)
TaskManager
setContext in interface TaskManageraUser - The Context to be used.public void setParticipantIPAddress(java.lang.String aUsersIPAddress)
TaskManager
setParticipantIPAddress in interface TaskManageraUsersIPAddress - end user's IP Addresspublic void setServiceClientFactory(ServiceClientFactory aServiceClientFactory)
public ServiceClientFactory getServiceClientFactory()
public FormInstance getEmptyForm()
TaskManagerFormInstance object for this object.
This method can be useful if you need to associate a form with a new task.
getEmptyForm in interface TaskManagerFormInstance object.createTask()public TaskACL getEmptyACL()
TaskManagerTaskACL object for this object.
This method can be useful if you need to associate an ACL with a new task.
getEmptyACL in interface TaskManagerTaskACL object.createTask()public CreateTaskInfo getEmptyCreateTaskInfo()
TaskManagerCreateTaskInfo object for this object.
The CreateTaskInfo object is needed in order to call
createTask().
getEmptyCreateTaskInfo in interface TaskManagerCreateTaskInfo object.createTask()
public java.lang.Long setupWorkflowUser()
throws TaskManagerException
TaskManagerContext object)
has a default queue, has access to that queue, and has the default email settings.
It is safe to call this method for users who have already been set up, but you should call it only once per web session. Calling it repeatedly will degrade performance.
setupWorkflowUser in interface TaskManagerTaskManagerException - if the Context does not contain an authenticated user.
public java.lang.Long setupWorkflowUserWithId(java.lang.String userOid)
throws TaskManagerException
TaskManagerContext object)
has a default queue, has access to that queue, and has the default email settings.
It is safe to call this method for users who have already been set up, but you should call it only once per web session. Calling it repeatedly will degrade performance.
setupWorkflowUserWithId in interface TaskManagerTaskManagerException - if the Context does not contain an authenticated user.
public SetupWorkflowUserResult setupWorkflowUserWithInfo()
throws TaskManagerException
TaskManagerIt is safe to call this method for users who have already been set up, but you should call it only once per web session. Calling it repeatedly will degrade performance.
setupWorkflowUserWithInfo in interface TaskManagerTaskManagerException - if the Context does not contain an authenticated user.
public CreateTaskResult createTask(long actionId,
FormInstance aFormData,
java.lang.String instructions,
long queueId,
boolean aCopyAttachments,
boolean aShowAttachments)
throws TaskManagerException
TaskManagerThis method is typically called by components.
createTask in interface TaskManageractionId - The action instance identifier.aFormData - The FormInstance object to use to create this task.instructions - Text metadata associated with the task. The metadata usually contains
instructions for the user to whom this task is assigned.
The instructions appear in the user interface or in email notifications.queueId - The queue to which the task will be assigned.aCopyAttachments - If true, attachments are copied from the previous task.aShowAttachments - Flag to be used by user interface components so that they know
whether the process designer intends to support attachments for this process.
TaskManagerException
public CreateTaskResult createTask(long actionId,
FormInstance aFormData,
java.lang.String instructions,
long queueId,
java.util.List aAttachmentsToCopy,
boolean aShowAttachments)
throws TaskManagerException
TaskManagerThis method is typically called by components.
createTask in interface TaskManageractionId - The action instance identifier.aFormData - The FormInstance object to use to create this task.instructions - Text metadata associated with the task. The metadata usually contains
instructions for the user to whom this task is assigned.
The instructions appear in the user interface or in email notifications.queueId - The queue to which the task will be assigned.aAttachmentsToCopy - A java.util.List of Document objects
to be used to populate the task attachments.
Properties of the Document are used to populate attachment properties such as file name and permissions.aShowAttachments - A flag to be used by user interface components so that they
can determine whether the process designer intends to support attachments for this process.
TaskManagerException
public CreateTaskResult createTask(FormInstance newFormData,
java.lang.String instructions,
boolean showAttachments)
throws TaskManagerException
TaskManagerThe default queue for the user for whom setContext() was called is added to the task.
TaskManager will use this method to initiate a workflow or to create a task not associated with a workflow.
The user interface may have tasks that are not associated with a process. These go to the archived state once they have been submitted.
The template path set in the form URL will be used to determine if a workflow is started
when completeTask() is called.
createTask in interface TaskManagernewFormData - The FormInstance object to use to create this task.
The template URL must be defined. If no data is passed in, empty data will be created.instructions - Text metadata associated with the task. The metadata usually contains
instructions for the user to whom this task is assigned.
The instructions appear in the user interface or in email notifications.showAttachments - A flag to be used by user interface components so that they
can determine whether the process designer intends to support attachments for this process.
TaskManagerException
public void reAssignTask(long aTaskId,
java.lang.String aReassignToUser)
throws TaskManagerException
TaskManagerOnly an administrator can reassign a task.
reAssignTask in interface TaskManageraTaskId - The task to be reassigned.aReassignToUser - The user identifier of the user being assigned the task.
TaskManagerException
public BatchResult batchReassignTasks(java.lang.Long[] aTaskIds,
java.lang.String aReassignToUser,
boolean ignoreErrors)
throws TaskManagerException
TaskManagerOnly an administrator can reassign a task.
batchReassignTasks in interface TaskManageraTaskIds - A list of task ids to be reassigned.aReassignToUser - The user identifier of the user being assigned the task.ignoreErrors - A flag to determine whether or not errors should be ignored and returned with the result, or
thrown in order to force the transaction to handle any clean up.
TaskManagerException
public void escalateTask(long aTaskId,
long aQueueId)
throws TaskManagerException
TaskManagerEscalating a task does not alter its deadline date.
escalateTask in interface TaskManageraTaskId - The task to be reassigned.aQueueId - The identifier of the queue to which the task is escalated.
TaskManagerException
public void escalateTask(long aTaskId,
long aQueueId,
boolean aAllowOOODesignations)
throws TaskManagerException
TaskManagerEscalating a task does not alter its deadline date.
escalateTask in interface TaskManageraTaskId - The task to be reassigned.aQueueId - The identifier of the queue to which the task is escalated.aAllowOOODesignations - Set to true if you would like OOO designations to occur on this escalation
TaskManagerException
public void consultTask(long aTaskId,
java.lang.String userIdToConsult)
throws TaskManagerException
TaskManagerWhen a user is consulted about a task, the only operation that user can make on that task
is to return the item to the user who requested the consultation, by calling rejectTask().
The requesting user can save the task date.
consultTask in interface TaskManageraTaskId - The identifier of the task.userIdToConsult - The identifier of the user to be consulted.
TaskManagerException
public void forwardTask(long aTaskId,
java.lang.String userIdToForward)
throws TaskManagerException
TaskManageruserIdToForward parameter.
To call this method, the user must be the owner of the queue for which the task is currently assigned (tasks can only be forwarded by their owner).
This method adds a new row to the assignment table. Previous assignments can be tracked by querying all the assignments for the task.
Tasks that have been forwarded can be rejected using the rejectTask() method.
In order for a user to have access to forward a task, he must have the corresponding ACL set
(see TaskACL.setCanForward()).
forwardTask in interface TaskManageraTaskId - The task to forward.userIdToForward - The identifier of the user to whom to forward the task.
TaskManagerException - if an invalid task identifier or user identifiers are provided,
if userIdForwarding is not the owner of the queue for the
current assignment, if the task has already been completed, if the task is currently assigned to a skill or organization queue,
or if the default queue for userIdToForward is not active.TaskACL
public void forwardTaskUnsecure(long aTaskId,
java.lang.String userIdToForward,
java.lang.String principalOid)
throws TaskManagerException
TaskManageruserIdToForward parameter.
The caller of this API can forward task of any other user. This will only honour an in-VM call.
This method adds a new row to the assignment table. Previous assignments can be tracked by querying all the assignments for the task.
Tasks that have been forwarded can be rejected using the rejectTask() method.
In order for a user to have access to forward a task, he must have the corresponding ACL set
(see TaskACL.setCanForward()).
forwardTaskUnsecure in interface TaskManageraTaskId - The task to forward.userIdToForward - The identifier of the user to whom to forward the task.principalOid - The current owner of task.
TaskManagerException - if an invalid task identifier or user identifiers are provided,
if userIdForwarding is not the owner of the queue for the
current assignment, if the task has already been completed, if the task is currently assigned to a skill or organization queue,
or if the default queue for userIdToForward is not active.TaskACL
public void shareTask(long aTaskId,
java.lang.String userIdToShare)
throws TaskManagerException
TaskManagerTo call this method, the user must be the owner of the queue for which the task is currently assigned (tasks can only be shared by their owner).
Once a task is shared with a user, he may claim the task.
A user may only share a task if he has the corresponding ACL set (see TaskACL.setCanShare()).
shareTask in interface TaskManageraTaskId - The task to forward.userIdToShare - The identifier of the user with whom to share the task.
TaskManagerException - if an invalid task identifier or user identifiers are provided,
if userIdSharing is not the owner of the queue for the
current assignment, if the task has already been completed, if the task is currently assigned to a skill or organization queue,
if the user does not have the appropriate ACL set,
or if the default queue for userIdToForward is not active.TaskACL
public void claimTask(long aTaskId)
throws TaskManagerException
TaskManagerTaskACL.isCanClaim() and
TaskACL.setCanClaim()),
or from a group queue of which the user is a member.
Claimed tasks are put in the user's default queue.
Completed tasks cannot be claimed.
Tasks for which the user already has an assignment cannot be claimed.
The user claiming the task must be active in User Manager.
Claimed tasks can be returned to the original queue from which they were claimed by calling rejectTask().
claimTask in interface TaskManageraTaskId - The identifier of the task being claimed.
TaskManagerException - if
public void rejectTask(long aTaskId)
throws TaskManagerException
TaskManagerTo call this method, the user must be the owner of the queue for which the task is currently assigned (tasks can only be rejected by their owner).
This method adds a new row to the assignment table. Previous assignments can be tracked by querying all the assignments for the task.
The user performing this action must be the owner of the queue the current assignment is in.
rejectTask in interface TaskManageraTaskId - The task to be rejected.
TaskManagerException - if
public void rejectTaskUnsecure(long aTaskId,
java.lang.String principalOid)
throws TaskManagerException
TaskManagerThis method adds a new row to the assignment table. Previous assignments can be tracked by querying all the assignments for the task.
rejectTaskUnsecure in interface TaskManageraTaskId - The task to be rejected.
TaskManagerException - if
public void changeQueueForTask(long aTaskId,
long aTargetQueueId)
throws TaskManagerException
TaskManagerOnly the user owning the queue for the task's current assignment is allowed to move the task to another queue. The target queue must also be owned by the same user who owns the current queue.
The user must own both the source and target queue.
changeQueueForTask in interface TaskManageraTaskId - The task which to be moved.aTargetQueueId - The queue to which this task is being moved.
TaskManagerException - if the task is not found, the task is complete,
the specified user does not own the current queue, or the specified user does not own the target queue.
public void cancelTask(long aTaskId)
throws TaskManagerException
TaskManagerThe user must own the assignment for this task.
cancelTask in interface TaskManageraTaskId - The task identifier identifying the task to be cancelled.
TaskManagerException - If
no task matches the task identifier or if the task is already completed or is part of a workflow.
public void cancelTaskUnsecure(long aTaskId,
java.lang.String principalOid)
throws TaskManagerException
TaskManager
cancelTaskUnsecure in interface TaskManageraTaskId - The task identifier identifying the task to be cancelled.principalOid - The UM principal Oid of the user who owns this task.
TaskManagerException - If
no task matches the task identifier or if the task is already completed or is part of a workflow.
public CompleteTaskResult completeTask(long aTaskId)
throws TaskManagerException
TaskManagerThe selected action may have already been provided in the form data.
completeTask in interface TaskManageraTaskId - The identifier of the task to be completed.
TaskNotFoundException - if the task is not found.
TaskNotRunningException - if the specified task has already been completed.
TaskManagerException - otherwise.
public CompleteTaskResult completeTask(long aTaskId,
java.lang.String selectedAction)
throws TaskManagerException
TaskManager
completeTask in interface TaskManageraTaskId - The identifier of the task to be completed.selectedAction - The action the user selected.
TaskManagerException
public CompleteTaskResult completeTask(long aTaskId,
FormInstance formData)
throws TaskManagerException
TaskManagerThis method allows the data to be committed to the database as part of the
same transaction during which the task is completed. It is safe to pass null for the selected action if the action
is to be submitted as part of the data.
completeTask in interface TaskManageraTaskId - The identifier of the task to be completed.formData - Form data to commit as part of the transaction.
TaskManagerException
public FormInstance getFormInstanceForTask(long aTaskId)
throws TaskManagerException
TaskManagerFormInstance object associated with a task.
The user requests the FormInstance data and must be the owner of the current assignment for this task.
getFormInstanceForTask in interface TaskManageraTaskId - The identifier of the task data being retrieved.
FormInstance object populated with the template path and XML data.
TaskManagerException - if the user does not have access to this task.
public FormInstance getFormInstanceForTask(long aTaskId,
boolean aRetrieveData)
throws TaskManagerException
TaskManagerFormInstance object associated with a task.
The user requests the FormInstance data and must be the owner of the current assignment for this task.
This method provides specific instructions on whether to retrieve the actual data along with the other form instance information. To ensure the best performance, if the data is not needed, do not retrieve it.
getFormInstanceForTask in interface TaskManageraTaskId - The identifier of the task data being retrieved.aRetrieveData - Specify true to populate the data in the resulting object.
FormInstance object populated with the template path and XML data.
TaskManagerException - if the user does not have access to this task.
public FormInstance getFormInstanceForTask(long aTaskId,
long aFormInstanceId)
throws TaskManagerException
TaskManagerFormInstance object associated with a task.
The user requests the FormInstance data and must be the owner of the current assignment for this task.
getFormInstanceForTask in interface TaskManageraTaskId - The identifier for the task data being retrieved.aFormInstanceId - The FormInstance identifier.
FormInstance object populated with the template path and XML data.
TaskManagerException - if the user does not have access to this task.
public FormInstance getFormInstanceForTask(long aTaskId,
long aFormInstanceId,
boolean aRetrieveData)
throws TaskManagerException
TaskManagerFormInstance object associated with a task.
The user requests the FormInstance data and must be the owner of the current assignment for this task.
This method provides specific instructions on whether to retrieve the actual data along with the other form instance information. To ensure the best performance, if the data is not needed, do not retrieve it.
getFormInstanceForTask in interface TaskManageraTaskId - The identifier for the task data being retrieved. aRetrieveData - true to populate the data in the resulting object, false otherwise.
FormInstance object populated with the template path and XML data.
TaskManagerException - if the user does not have access to this task.
public CompleteTaskResult deadlineTask(long aTaskId,
java.lang.String aDeadlineAction,
boolean aChangeInstructions,
java.lang.String aDeadlineInstructions)
throws TaskManagerException,
NoActionSelectedException
TaskManagerIf the deadline action was provided, it is used as the selected action.
This method can only be called by an administrative user, and is usually called by the User Service.
deadlineTask in interface TaskManageraTaskId - The identifier of the task.aDeadlineAction - null or a valid action name as specified by the task's form data.aChangeInstructions - Specify true to change the instructions of the current task to aDeadlineInstructions.aDeadlineInstructions - The new task instructions for deadline. This is only used if aChangeInstructions is true.
The instructions appear in the user interface or in email notifications.
CompleteTaskResult containing the status of the task completion.
TaskManagerException
NoActionSelectedException
public CompleteTaskResult terminateTask(long aTaskId)
throws TaskManagerException
TaskManagerThe user must be in the process administrator role (and will usually be the system user).
terminateTask in interface TaskManageraTaskId - The identifier of the task to terminate.
CompleteTaskResult containing the status of the task termination.
TaskManagerException
public CompleteTaskResult[] terminateTasksForJobId(java.lang.String aJobID)
throws TaskManagerException
TaskManagerThe user must be in the process administrator role (and will usually be the system user).
terminateTasksForJobId in interface TaskManageraJobID - The long lived job id which you wish to have tasks terminated for.
CompleteTaskResult array containing the status of task terminations.
TaskManagerException
public void sendTaskReminder(long aTaskId,
boolean aChangeInstructions,
java.lang.String aReminderInstructions,
long aNextReminder)
throws TaskManagerException
TaskManagerThe user sends the reminder (and is probably a system user).
sendTaskReminder in interface TaskManageraTaskId - The identifier of the task.aChangeInstructions - true to change the task instructions to aReminderInstructions,
false otherwise.aReminderInstructions - The new instructions (only used if aChangeInstructions is true).aNextReminder - If this is greater than 0, a new reminder will be scheduled for this number of minutes.
Assign 0 to this parameter if no subsequent reminder is needed.
The instructions appear in the user interface or in email notifications.
TaskManagerException
public void sendTaskReminder(long aTaskId,
boolean aChangeInstructions,
java.lang.String aReminderInstructions,
long aNextReminder,
boolean aUseBusinessDays)
throws TaskManagerException
TaskManagerThe user sends the reminder (and is probably a system user).
sendTaskReminder in interface TaskManageraTaskId - The identifier of the task.aChangeInstructions - true to change the task instructions to aReminderInstructions,
false otherwise.aReminderInstructions - The new instructions (only used if aChangeInstructions is true).aNextReminder - If this is greater than 0, a new reminder will be scheduled for this number of minutes if not business days, otherwise number of business days.
Assign 0 to this parameter if no subsequent reminder is needed.
The instructions appear in the user interface or in email notifications.aUseBusinessDays - Indicates if the next reminder value is in business days or in total minutes. Pass true for number of business days, false for total minutes
TaskManagerException
public void updateHardenedPath(long aTaskId,
java.lang.String aHardenedPath)
throws TaskManagerException
TaskManagerThis is useful in the case where a hardened path is not set by Adobe Experience Manager forms workflow. Only active tasks can have their hardened path updated.
A hardened path contains specific version information.
updateHardenedPath in interface TaskManageraTaskId - The task for which to update the hardened path.aHardenedPath - The hardened path to update.
TaskManagerException
public SaveTaskResult save(long aTaskId,
java.lang.String taskName,
FormInstance aFormData)
throws TaskManagerException
TaskManagerThe form URL and data will overwrite what currently is associated with the task.
The user performing this action must be the user who is assigned the task,
otherwise a TaskPermissionException is thrown.
save in interface TaskManageraTaskId - The identifier of the task being saved.taskName - The name of the task being saved.aFormData - The FormInstance object that contains the data, URL, and other data to save for this task.
The form instance identifier must be set if there is more than one form allocated for this task.
SaveTaskResult object containing the name of the action that was selected.
TaskManagerException - if the user identified
by the Context object is not assigned this task.
TaskNotRunningException - if the task is not in a running state (it has already completed).
TaskNotFoundException - if the task is not found.
public SaveTaskResult save(long aTaskId,
FormInstance aFormData)
throws TaskManagerException
TaskManagerThe form URL and data will overwrite what currently is associated with the task.
The user performing this action must be the user who is assigned the task,
otherwise a TaskPermissionException is thrown.
save in interface TaskManageraTaskId - The identifier of the task being saved.aFormData - The FormInstance object that contains the data, URL, and other data to save for this task.
The form instance identifier must be set if there is more than one form allocated for this task.
SaveTaskResult object containing the name of the action that was selected.
TaskManagerException - if the user identified
by the Context object is not assigned this task.
TaskNotRunningException - if the task is not in a running state (it has already completed).
TaskNotFoundException - if the task is not found.public AttachmentInfo newAttachmentInfo()
TaskManagerAttachmentInfo object.
newAttachmentInfo in interface TaskManagerAttachmentInfo object.
public AttachmentInfo[] getAllAttachments(long aTaskId)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
getAllAttachments in interface TaskManageraTaskId - The task identifier.
AttachmentInfo objects representing all currently readable (visible) attachments for this task.
TaskManagerException - if the user does not have access to this task.
public AttachmentInfo getAttachmentInfo(long aTaskId,
long aAttachmentId)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
getAttachmentInfo in interface TaskManageraTaskId - The task identifier.aAttachmentId - The attachment identifier.
TaskManagerException - if the user does not have access to this task.
public AttachmentInfo updateAttachmentInfo(long aTaskId,
AttachmentInfo aAttachmentInfo)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
For attachments of type AttachmentInfo.TYPE_NOTE, you can update the note contents by providing a new description.
updateAttachmentInfo in interface TaskManageraTaskId - The task identifier.aAttachmentInfo - Specifies the attachment information to modify.
TaskManagerException
public AttachmentInfo updateAttachmentInfo(long aTaskId,
AttachmentInfo aAttachmentInfo,
Document aAttachmentDocument)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
updateAttachmentInfo in interface TaskManageraTaskId - The task identifier.aAttachmentInfo - Specifies the attachment information to modify.aAttachmentDocument - A com.adobe.idp.Document object containing the attachment content.
TaskManagerException
public AttachmentInfo updateAttachmentInfo(long aTaskId,
AttachmentInfo aAttachmentInfo,
byte[] aAttachmentBytes)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
updateAttachmentInfo in interface TaskManageraTaskId - The task identifier.aAttachmentInfo - Specifies the attachment information to modify.aAttachmentBytes - A byte array object containing the attachment content.
TaskManagerException
public AttachmentInfo addAttachment(long aTaskId,
AttachmentInfo aAttachmentInfo,
java.io.InputStream attachmentStream)
throws TaskManagerException
TaskManagerAttachmentInfo.TYPE_ATTACHMENT to the specified task.
The task must be assigned to the user.
addAttachment in interface TaskManageraTaskId - The task identifier.aAttachmentInfo - The AttachmentInfo object populated with the relevant information.attachmentStream - The new attachment content, represented as a stream.
AttachmentInfo object for this attachment, with the newly created attachment identifier set.
TaskManagerException
public AttachmentInfo addNote(long aTaskId,
AttachmentInfo aAttachmentInfo)
throws TaskManagerException
TaskManagerAttachmentInfo.TYPE_NOTE to the specified task.
You can use the updateAttachmentInfo() method to update the note content.
In this case you would place the new note content in the description field.
The task must be assigned to the user.
addNote in interface TaskManageraTaskId - The task identifier.aAttachmentInfo - The AttachmentInfo object populated with the relevant information.
AttachmentInfo object for this note with the newly created attachment identifier set.
TaskManagerException
public AttachmentInfo addAttachment(long aTaskId,
AttachmentInfo aAttachmentInfo,
Document aAttachmentDocument)
throws TaskManagerException
TaskManagerAttachmentInfo.TYPE_ATTACHMENT to the specified task.
The task must be assigned to the user.
addAttachment in interface TaskManageraTaskId - The task identifier.aAttachmentInfo - The AttachmentInfo object populated with the relevant information.aAttachmentDocument - The new attachment content as a Document.
AttachmentInfo for this attachment with the newly created attachment identifier set.
TaskManagerException
public AttachmentInfo addAttachment(long aTaskId,
AttachmentInfo aAttachmentInfo,
byte[] aAttachmentBytes)
throws TaskManagerException
TaskManagerAttachmentInfo.TYPE_ATTACHMENT to the specified task.
The task must be assigned to the user.
addAttachment in interface TaskManageraTaskId - The task identifier.aAttachmentInfo - An AttachmentInfo object populated with the relevant information.aAttachmentBytes - The new attachment's content in bytes.
AttachmentInfo for this attachment with the newly created attachment identifier set.
TaskManagerException
public void deleteAttachment(long aTaskId,
long aAttachmentId)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
deleteAttachment in interface TaskManageraTaskId - The task containing the attachment.aAttachmentId - The attachment to be removed.
TaskManagerException
public void updateAttachment(long aTaskId,
long aAttachmentId,
java.io.InputStream aAttachmentStream)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
updateAttachment in interface TaskManageraTaskId - The task containing the attachment.aAttachmentId - The identifier for the attachment to be updated.aAttachmentStream - A stream representing the attachment content.
TaskManagerException - if the user does not have access to this task.
public void updateAttachment(long aTaskId,
long aAttachmentId,
Document aAttachmentDocument)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
updateAttachment in interface TaskManageraTaskId - The task containing the attachment.aAttachmentId - The identifier for the attachment to be updated.aAttachmentDocument - A com.adobe.idp.Document object containing the attachment content.
TaskManagerException - if the user does not have access to this task.
public void updateAttachment(long aTaskId,
long aAttachmentId,
byte[] aAttachmentBytes)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
updateAttachment in interface TaskManageraTaskId - The task containing the attachment.aAttachmentId - The identifier for the attachment to be updated.aAttachmentBytes - A byte array containing the attachment content.
TaskManagerException - if the user does not have access to this task.
public Document readAttachmentDocument(long aTaskId,
long aAttachmentId)
throws TaskManagerException
TaskManagerDocument containing the binary content of the specified attachment.
The task must be assigned to the user.
readAttachmentDocument in interface TaskManageraTaskId - The task containing the attachment.aAttachmentId - The identifier of the requested attachment.
Document containing the requested attachment.
TaskManagerException - if the user does not have access to this task.
public java.io.InputStream readAttachmentStream(long aTaskId,
long aAttachmentId)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
readAttachmentStream in interface TaskManageraTaskId - The task containing the attachment.aAttachmentId - The identifier of the requested attachment.
TaskManagerException - if the user does not have access to this task.
public byte[] readAttachmentBytes(long aTaskId,
long aAttachmentId)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
readAttachmentBytes in interface TaskManageraTaskId - The task containing the attachment.aAttachmentId - The identifier of the requested attachment.
byte array containing the requested attachment.
TaskManagerException - if the user does not have access to this task.
public java.lang.String readFullNoteContent(long taskId,
long attachmentId)
throws TaskManagerException
TaskManagerThe task must be assigned to the user.
readFullNoteContent in interface TaskManagertaskId - The task with which the note is associated.attachmentId - The identifier of the requested note.
String containing the requested note content.
TaskManagerException - if the user does not have access to this task.
public void copyAttachmentsToTask(long aTaskId,
java.util.List aAttachmentList)
throws TaskManagerException
TaskManagerjava.util.List of Document objects to the task.
Either the task must be assigned to the user, or the user must be an administrator.
copyAttachmentsToTask in interface TaskManageraTaskId - The task with which the attachment is associated.aAttachmentList - The List of attachments to be added.
TaskManagerException - if
the user does not have access to this task or if the objects contained in the list
are not Document objects.
public java.util.List getAttachmentListForTask(long aTaskId)
throws TaskManagerException
TaskManagerjava.util.List of Document objects representing the attachments for a task.
Either the task must be assigned to the user, or the user must be an administrator.
getAttachmentListForTask in interface TaskManageraTaskId - The task with which the attachment is associated.
java.util.List of Document objects, each of which is an attachment.
TaskManagerException - if the user does not have access to this task
or if the objects contained in the list are not Document objects.
public java.lang.String getCompletionNote(long aTaskId)
throws TaskManagerException
TaskManager
getCompletionNote in interface TaskManageraTaskId - The task to retrieve the completion note for
TaskManagerException - if the user calling is not assigned the task.
public void setCompletionNote(long aTaskId,
java.lang.String completionNote)
throws TaskManagerException
TaskManager
setCompletionNote in interface TaskManageraTaskId - task id to set the completion notecompletionNote - String representing the note
TaskManagerException - if the user does not have the task assigned to them, or the task is completed.
public CreateTaskResult createTask(CreateTaskInfo createTaskInfo)
throws TaskManagerException
TaskManagerIf no queue identifier is specified, the default queue for the user for the calling context will be assigned the task.
createTask in interface TaskManagercreateTaskInfo - A value object containing all of the relevant information required to create a task.
TaskManagerException
public TaskInfo getTaskInfo(long aTaskId)
throws TaskManagerException
TaskManager
getTaskInfo in interface TaskManageraTaskId - The identifier of the task being returned.
TaskInfo object populated with all of the information about the task.
TaskManagerException
public TaskInfo getTaskInfo(long aTaskId,
boolean aReturnFormInstance)
throws TaskManagerException
TaskManager
getTaskInfo in interface TaskManageraTaskId - The identifier of the task being returned.aReturnFormInstance - Indicates whether the data for any forms associated with the task should be returned.
TaskInfo object populated with all of the information about the task.
TaskManagerException
public TaskUserInfo[] getUsersWithAccessToTask(long aTaskId)
throws TaskManagerException
TaskManagerYou can determine if a particular user is the task owner by calling the
TaskUserInfo.isTaskOwner() method of the returned object.
getUsersWithAccessToTask in interface TaskManageraTaskId - The task identifier.
TaskManagerException
public java.util.List addTasks(java.lang.Long aActionId,
java.util.List aPrincipalOids)
throws TaskManagerException
TaskManager
addTasks in interface TaskManageraActionId - The id of the action that you want to add tasks to.aPrincipalOids - The object identifiers for the users who you want to assign new tasks to.
TaskManagerException
public java.util.List removeTasks(java.lang.Long aActionId,
java.util.List aTaskIds)
throws TaskManagerException
TaskManager
removeTasks in interface TaskManageraActionId - The id of the action that is associated with the tasks you wish to remove.aTaskIds - A list of ids for the tasks you wish to remove
TaskManagerException
public void modifyTaskPermissions(long aTaskId,
TaskACL[] aPermissions)
throws TaskManagerException
TaskManagerThe array of permissions passed into this method will replace all permissions that previously existed for the task.
The user calling this method must have permission to modify the permissions. This is established by calling
TaskACL.setCanModifyPermissions(). If the user does not have permission to do so,
an exception is thrown.
modifyTaskPermissions in interface TaskManageraTaskId - The task identifier for which the permissions are being changed.aPermissions - An array of TaskACL objects indicating all the permissions to be set for the task.
TaskManagerException - if the user is not currently assigned the task
or if the user does not have permissions to change the task.
public void lockTask(long aTaskId)
throws TaskManagerException
TaskManagerThis method is useful when a user is making changes to a task or is working on a task form. Calling this method ensures that another user cannot claim the task during that period.
It is recommended that your user interface calls this method when the user is working on the task,
and that it provides a way to call unLockTask() when the user would like to
allow other users to claim the task.
lockTask in interface TaskManageraTaskId - The identifier of the task to be locked.
TaskManagerException - if the user calling this method
is not the current owner of the task.
public void unLockTask(long aTaskId)
throws TaskManagerException
TaskManagerIt is recommended that your user interface calls lockTask() when the user is working on the task,
and that it provides a way to call this method when the user would like to
allow other users to claim the task.
unLockTask in interface TaskManageraTaskId - The identifier of the task to be unlocked.
TaskManagerException - if the user calling this method is not the current owner of the task
public void changeDeadline(long taskID,
java.util.Date newDeadline)
throws TaskManagerException
TaskManager
changeDeadline in interface TaskManagertaskID - The identifier of the task.newDeadline - The date of the new deadline.
TaskManagerException
public void changeReminder(long taskID,
java.util.Date newReminder)
throws TaskManagerException
TaskManagerException
public void claimTask(long aTaskId,
boolean aLockTask)
throws TaskManagerException
TaskManagerClaimed tasks are placed in the user's default queue.
Completed tasks cannot be claimed.
Tasks for which the user already has an assignment cannot be claimed.
The user claiming the task must be active in User Manager.
Claimed tasks can be returned to the original queue from which they were claimed by calling rejectTask().
This method also optionally locks the task. The user calling this method is the user for whom the task will be locked to.
For more information about locking a task, see lockTask().
claimTask in interface TaskManageraTaskId - The identifier of the task being claimed.aLockTask - true if the task should also be locked in the same transaction, false otherwise.
TaskManagerException - if
public Document getImage(ImageTicket aImageId)
throws TaskManagerException
TaskManager
getImage in interface TaskManageraImageId - ImageTicket for the image to be returned.
The Document returned has an attribute set for the file name. The attribute name is
TaskManagerConstants.TASK_IMAGE_FILENAME_ATTRIBUTE.
Document.
TaskManagerExceptionTaskInfo.getImageTicket(),
TaskRow.getImageTicket()public ImageTicket reconstructImageTicket(java.lang.String aSerializedValue)
TaskManagerImageTicket object.
reconstructImageTicket in interface TaskManageraSerializedValue - The image ticket's serialized value.
ImageTicket object for this serialized value.ImageTicket.getSerializedValue()
public FormServiceInvokeResponse callRenderService(long aTaskId,
long aFormId,
java.util.Map aInputMap)
throws TaskManagerException
TaskManager
callRenderService in interface TaskManageraTaskId - The task identifier with which the form is associated.aFormId - The identifier of the form to render.aInputMap - A Map of arbitrary values to be passed to the render service.
FormServiceInvokeResponse object populated with the rendered form.
TaskManagerException
public FormServiceInvokeResponse callSubmitService(long aTaskId,
long aFormId,
Document aDocumentSubmitted,
java.util.Map aInputMap)
throws TaskManagerException
TaskManager
callSubmitService in interface TaskManageraTaskId - The task identifier with which the form is associated.aFormId - The identifier of the form to be submitted.aDocumentSubmitted - The raw data to be processed by the submit service.aInputMap - A Map of arbitrary values to be passed to the submit service.
FormServiceInvokeResponse object populated with the processed submitted content.
TaskManagerException
public void setVisibility(long aTaskId,
boolean aVisible)
throws TaskManagerException
TaskManager
setVisibility in interface TaskManageraTaskId - The task identifier.aVisible - false if the task is to be visible, true otherwise.
TaskManagerException - if the task is active or the user does not own the task.
public void changeDescription(java.lang.Long aTaskId,
java.lang.String aUpdatedDescription)
throws TaskManagerException
TaskManager
changeDescription in interface TaskManageraTaskId - Task to change the description foraUpdatedDescription - Updated description Text.
TaskManagerException - If a user other than the currently assigned user calls this method.
public TaskUIInfo retrieveTaskUI(long aTaskId,
boolean approvalContainer)
throws TaskManagerException
TaskManager
retrieveTaskUI in interface TaskManageraTaskId - The task you are attempting to load the Custom UI forapprovalContainer - Flag used to indicate if the built-in approval container is being loaded. This is a performance short-uct if the client already knows this information
TaskManagerException - If no custom UI or Approval Container is specified for this task.
public void sendNotification(java.lang.String message,
java.util.List userIds,
java.util.List grpIds)
throws TaskManagerException
TaskManager
sendNotification in interface TaskManagermessage - the message going to be sentuserIds - send to user ID list.grpIds - send to group ID list.
TaskManagerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||