com.adobe.idp.taskmanager.dsc.client.task
Interface CreateTaskResult

All Superinterfaces:
java.io.Serializable

public interface CreateTaskResult
extends java.io.Serializable

A CreateTaskResult object is returned when the TaskManager.createTask() method is called. It contains information about the task object that was created.


Method Summary
 long getFormInstanceId()
          Deprecated. A task can now have many forms. Use getFormInstanceIDs() instead.
 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.
 

Method Detail

isWorkflowTask

boolean isWorkflowTask()
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.

Returns:
true if this task is or will be part of a workflow; false otherwise.

isDataModified

boolean isDataModified()
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.

Returns:
true if TaskManager.createTask() modified the form instance data, false otherwise.

getTaskId

long getTaskId()
Retrieves the task identifier of the newly created task.

Returns:
The task identifier of the newly created task.

getFormInstanceId

long getFormInstanceId()
Deprecated. A task can now have many forms. Use getFormInstanceIDs() instead.

Returns:
The first FormInstance identifier for the newly created task.

getFormInstanceIDs

long[] getFormInstanceIDs()
Retrieves the list of FormInstance identfiers for the newly created task.

Returns:
A list of values indicating the identfiers of the forms.

getResultingTaskInfo

TaskInfo getResultingTaskInfo()
Returns the resulting TaskInfo for the task that was just created.

Returns:


[an error occurred while processing this directive] [an error occurred while processing this directive]