ProfileTasks#

Selects which buckets of a load profile list the tasks booked in them. Set it through ProfileQuery.tasks or withTasks(...); the lists land in LoadBucket.tasks. The default is ProfileTasks.NONE.

Declaration#

package org.dhtmlx.plen;

public enum ProfileTasks {
  NONE,
  OVER,
  ALL
}

Variants#

Variant Description
NONE Default. No bucket lists tasks: LoadBucket.tasks is null in every bucket.
OVER Buckets where load > capacity list their booked tasks. Every other bucket gets an empty list.
ALL Every bucket lists the tasks booked in it. A bucket with no load gets an empty list.

Task ids appear in input order.

In the JSON API (Decode, Encode), the values are spelled "none", "overallocated" (for OVER) and "all".

Example#

import org.dhtmlx.plen.*;

public class ProfileTasksExample {
  public static void main(String[] args) throws Exception {
    ProfileQuery query = new ProfileQuery(Moment.fromYmdHm(2026, 8, 10, 0, 0), Moment.fromYmdHm(2026, 8, 14, 0, 0))
        // List the contending tasks only in overloaded buckets.
        .withTasks(ProfileTasks.OVER);
    System.out.println(query.tasks); // OVER
  }
}