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

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

public class DefaultCreateTaskResult
extends java.lang.Object
implements CreateTaskResult

See Also:
Serialized Form

Constructor Summary
DefaultCreateTaskResult()
           
DefaultCreateTaskResult(long aTaskId, long[] aFormInstanceIDs, boolean isDataModified, boolean isWorkflowTask)
           
DefaultCreateTaskResult(long aTaskId, long aFormInstanceId, boolean isDataModified, boolean isWorkflowTask)
          Deprecated. Use the constructor which takes an array of FormIDs
 
Method Summary
 long getFormInstanceId()
           
 long[] getFormInstanceIDs()
          Retrieves the list of FormInstance identfiers for the newly created task.
 TaskInfo getResultingTaskInfo()
          Returns the resulting TaskInfo for the task that was just created.
 long getTaskId()
          Retrieves the task identifier of the newly created task.
 boolean isDataModified()
          Determines whether the created task modified the form instance data which was passed into TaskManager.createTask().
 boolean isWorkflowTask()
          Determines whether this new task is part of a workflow.
 void setDatamodified(boolean aModified)
           
 void setFormInstanceId(long aFormInstanceId)
           
 void setResultingTaskInfo(TaskInfo ataskInfo)
           
 void setTaskId(long aTaskId)
           
 void setWorkflowTask(boolean aWorkflowTask)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCreateTaskResult

public DefaultCreateTaskResult(long aTaskId,
                               long aFormInstanceId,
                               boolean isDataModified,
                               boolean isWorkflowTask)
Deprecated. Use the constructor which takes an array of FormIDs

Parameters:
aTaskId -
aFormInstanceId -
isDataModified -
isWorkflowTask -

DefaultCreateTaskResult

public DefaultCreateTaskResult(long aTaskId,
                               long[] aFormInstanceIDs,
                               boolean isDataModified,
                               boolean isWorkflowTask)

DefaultCreateTaskResult

public DefaultCreateTaskResult()
Method Detail

isWorkflowTask

public boolean isWorkflowTask()
Description copied from interface: CreateTaskResult
Determines whether this new task is part of a workflow.

If you call TaskManager.createTask() without an actionInstance, and the TemplateURL matches a form instance, this method returns true to indicate that this task, when it is completed, will invoke a process.

Specified by:
isWorkflowTask in interface CreateTaskResult
Returns:
true if this task is or will be part of a workflow; false otherwise.

setWorkflowTask

public void setWorkflowTask(boolean aWorkflowTask)

setDatamodified

public void setDatamodified(boolean aModified)

isDataModified

public boolean isDataModified()
Description copied from interface: CreateTaskResult
Determines whether the created task modified the form instance data which was passed into TaskManager.createTask().

If this method returns true, the client should reload the form instance by calling TaskManager.getFormInstanceForTask(). The data may have been modified because the task created is part of a workflow and the list of actions was added to the form instance data.

Specified by:
isDataModified in interface CreateTaskResult
Returns:
true if TaskManager.createTask() modified the form instance data, false otherwise.

getTaskId

public long getTaskId()
Description copied from interface: CreateTaskResult
Retrieves the task identifier of the newly created task.

Specified by:
getTaskId in interface CreateTaskResult
Returns:
The task identifier of the newly created task.

setTaskId

public void setTaskId(long aTaskId)

getFormInstanceId

public long getFormInstanceId()
Specified by:
getFormInstanceId in interface CreateTaskResult
Returns:
The first FormInstance identifier for the newly created task.

setFormInstanceId

public void setFormInstanceId(long aFormInstanceId)

getFormInstanceIDs

public long[] getFormInstanceIDs()
Description copied from interface: CreateTaskResult
Retrieves the list of FormInstance identfiers for the newly created task.

Specified by:
getFormInstanceIDs in interface CreateTaskResult
Returns:
A list of values indicating the identfiers of the forms.

setResultingTaskInfo

public void setResultingTaskInfo(TaskInfo ataskInfo)

getResultingTaskInfo

public TaskInfo getResultingTaskInfo()
Description copied from interface: CreateTaskResult
Returns the resulting TaskInfo for the task that was just created.

Specified by:
getResultingTaskInfo in interface CreateTaskResult
Returns: