Table of Contents

Search

  1. Preface
  2. Part 1: Using Process Developer
  3. Part 2: Creating and Modifying Processes
  4. Part 3: Functions, Events, Errors, and Correlation
  5. Part 4: Testing and Deployment
  6. Part 5: Process Central and Process Server (On-Premises)

Process Developer

Process Developer

Using a getTasks orderBy Element

Using a getTasks orderBy Element

You can sort the results returned by
getTasks
by using 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("-Created");
Notice the minus sign ("-") to set the order to descending.
In XML, this same example is:
<ns:orderBy> <ns:fieldId>-Created</ns:fieldId> <ns:fieldIPdriority</ns:fieldId> </ns:orderBy>

0 COMMENTS

We’d like to hear from you!