com.adobe.idp.taskmanager.dsc.client.task
Class DefaultCompleteTaskResult

java.lang.Object
  extended by com.adobe.idp.taskmanager.dsc.client.task.DefaultCompleteTaskResult
All Implemented Interfaces:
CompleteTaskResult, java.io.Serializable

public class DefaultCompleteTaskResult
extends java.lang.Object
implements CompleteTaskResult

See Also:
Serialized Form

Constructor Summary
DefaultCompleteTaskResult()
           
DefaultCompleteTaskResult(long aTaskid)
           
DefaultCompleteTaskResult(long aTaskid, long aProcessInstanceId, long aActionId, long aQueueId, java.lang.String aLongLivedJobId, java.lang.String aProcessName, java.lang.String aStepName, java.lang.String aUserId)
           
 
Method Summary
 long getActionId()
          Retrieves the action identifier for this task.
 java.lang.String getClassOfTask()
           
 java.lang.String getCompleteUserId()
          Retrieves the user identifier.
 TaskManagerException getCompletionException()
           
 long getInitiatedProcessId()
          Retrieves the identifier of the initiated process instance.
 java.lang.String getInitiatedProcessTypeName()
          Retrieves the name of the process type.
 java.lang.String getInvocationId()
          Retrieves the long-lived job identifier associated with this task.
 long getProcessId()
           
 java.lang.String getProcessName()
           
 long getQueueId()
          Retrieves the queue identifier.
 java.lang.String getStepName()
           
 long getTaskId()
          Retrieves the task identifier.
 boolean isProcessInitiated()
          Determines whether TaskManager.completeTask() initiated a new process instance.
 boolean isWorkflowTask()
          Determines whether the completed task is part of a workflow.
 void setClassOfTask(java.lang.String aClassName)
           
 void setCompletionException(TaskManagerException ex)
           
 void setInvocationId(java.lang.String aInvocationId)
           
 void setProcessId(long aProcessId)
           
 void setProcessInitiated(boolean aInitiated)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCompleteTaskResult

public DefaultCompleteTaskResult()

DefaultCompleteTaskResult

public DefaultCompleteTaskResult(long aTaskid)

DefaultCompleteTaskResult

public DefaultCompleteTaskResult(long aTaskid,
                                 long aProcessInstanceId,
                                 long aActionId,
                                 long aQueueId,
                                 java.lang.String aLongLivedJobId,
                                 java.lang.String aProcessName,
                                 java.lang.String aStepName,
                                 java.lang.String aUserId)
Method Detail

setInvocationId

public void setInvocationId(java.lang.String aInvocationId)

getTaskId

public long getTaskId()
Description copied from interface: CompleteTaskResult
Retrieves the task identifier.

Specified by:
getTaskId in interface CompleteTaskResult
Returns:
The task identifier.

getActionId

public long getActionId()
Description copied from interface: CompleteTaskResult
Retrieves the action identifier for this task.

Specified by:
getActionId in interface CompleteTaskResult
Returns:
The action identifier.

getCompleteUserId

public java.lang.String getCompleteUserId()
Description copied from interface: CompleteTaskResult
Retrieves the user identifier.

Specified by:
getCompleteUserId in interface CompleteTaskResult
Returns:
The user identifier.

getQueueId

public long getQueueId()
Description copied from interface: CompleteTaskResult
Retrieves the queue identifier.

Specified by:
getQueueId in interface CompleteTaskResult
Returns:
The queue identifier.

getInvocationId

public java.lang.String getInvocationId()
Description copied from interface: CompleteTaskResult
Retrieves the long-lived job identifier associated with this task.

Specified by:
getInvocationId in interface CompleteTaskResult
Returns:
The long-lived job identifier.

isProcessInitiated

public boolean isProcessInitiated()
Description copied from interface: CompleteTaskResult
Determines whether TaskManager.completeTask() initiated a new process instance.

Specified by:
isProcessInitiated in interface CompleteTaskResult
Returns:
true if a process instance was created, false otherwise.

setProcessInitiated

public void setProcessInitiated(boolean aInitiated)

isWorkflowTask

public boolean isWorkflowTask()
Description copied from interface: CompleteTaskResult
Determines whether the completed task is part of a workflow.

Specified by:
isWorkflowTask in interface CompleteTaskResult
Returns:
true if the completed task is part of a process instance, false otherwise.

getInitiatedProcessId

public long getInitiatedProcessId()
Description copied from interface: CompleteTaskResult
Retrieves the identifier of the initiated process instance.

Specified by:
getInitiatedProcessId in interface CompleteTaskResult
Returns:
The identifier of the initiated process instance.

setProcessId

public void setProcessId(long aProcessId)

getProcessId

public long getProcessId()

getInitiatedProcessTypeName

public java.lang.String getInitiatedProcessTypeName()
Description copied from interface: CompleteTaskResult
Retrieves the name of the process type. It returns a value only if the completed task initiated a process.

Specified by:
getInitiatedProcessTypeName in interface CompleteTaskResult
Returns:
The name of the process type.

getProcessName

public java.lang.String getProcessName()

getStepName

public java.lang.String getStepName()

getClassOfTask

public java.lang.String getClassOfTask()

setClassOfTask

public void setClassOfTask(java.lang.String aClassName)

setCompletionException

public void setCompletionException(TaskManagerException ex)

getCompletionException

public TaskManagerException getCompletionException()