|
|
Include client JAR files, such as adobe-taskmanager-client-sdk.jar, in your Java project’s class path. (See Including LiveCycle ES library files.)
• Create a ServiceClientFactory object that contains connection properties. (See Setting connection properties.)
• Create a TaskManagerQueryService object by invoking the TaskManagerClientFactory object’s static getQueryManager method and passing the ServiceClientFactory object.
•
•
• Specify the status of the tasks to search for by invoking the StatusFilter object’s addStatus method and passing a static data member that belongs to StatusFilter. For example, pass StatusFilter.assigned to retrieve tasks that are assigned to a specific user.
• Search for tasks by invoking the TaskManagerQueryServiceService object’s taskList method and passing the TaskFilter object. This method returns a java.util.List object where each element is a TaskRow object that represents a task that conforms to the specified search criteria.
• Create a java.util.Iterator object by invoking the java.util.List object’s iterator method. This object enables you to iterate through the java.util.List instance to retrieve tasks.
• Iterate through the java.util.List object to determine if there are tasks. If so, each element is a TaskRow instance.
• Retrieve information about a task by invoking an appropriate method that belongs to the TaskRow object. For example, to get the task identifier value, invoke the TaskRow object’s getTaskId method. For information about the TaskRow object, see LiveCycle ES Java API Reference.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/retrievingUserTasks.137.3.html