Table of Contents

Search

  1. Preface
  2. Overview, Downloading, and Installing
  3. Administration API
  4. Identity Service API
  5. Screenflow Programming and SDK
  6. ActiveVOS WSHT API
  7. Embedding Request Forms in Standalone Web Pages
  8. XML-JSON for Process Central

7. APIs, SDKs, and Services

7. APIs, SDKs, and Services

Using a getMyTasks orderBy Element

Using a getMyTasks orderBy Element

You can sort the results returned by
getTasks
by setting the
orderBy
element. The fields name you can use are:
  • Created
  • Expiration
  • Modified
  • Name
  • Owner
  • PresentationName
  • PresName
  • PresSubject
  • Priority
  • State
  • Summary
The following example sorts the results with the most recent first (that is, in descending order), followed by the priority:
orderBy orderBy = new OrderBy(); orderBy.getFieldId().add("-Created"); orderBy.getFieldId().add("Priority");
Notice the minus sign ("
-
") being used to set the order to descending.
In XML, this same example is written as follows:
<ns:orderBy> <ns:fieldId>-Created</ns:fieldId> <ns:fieldIPdriority</ns:fieldId> </ns:orderBy>