Interface BAMTaskSummaryQueryBuilder

    • Method Detail

      • startDate

        BAMTaskSummaryQueryBuilder startDate​(Date... startDate)
        Specify one or more (task) start dates to use as a criteria.
        Parameters:
        startDate - one or more dates
        Returns:
        The current query builder instance
      • startDateRange

        BAMTaskSummaryQueryBuilder startDateRange​(Date startDateMin,
                                                  Date startDateMax)
        Specify an inclusive range of (task) start dates to use as a criteria

        If the lower or upper end of the range is given as null, then an open-ended range using the non-null range end is used as the criteria
        Parameters:
        startDateMin - the minimal (lower) date to use in the range
        startDateMax - the max (upper) date to use in the range
        Returns:
        The current query builder instance
      • duration

        BAMTaskSummaryQueryBuilder duration​(long... duration)
        Specify one or more duration to use as a criteria
        Parameters:
        duration - one or more durations
        Returns:
        The current query builder instance
      • taskStatus

        BAMTaskSummaryQueryBuilder taskStatus​(org.kie.api.task.model.Status... status)
        Specify one or more task statuses to use as a criteria.
        Parameters:
        status - one or more task statuses
        Returns:
        The current query builder instance
      • userId

        BAMTaskSummaryQueryBuilder userId​(String... userId)
        Specify one or more user ids to use as a criteria
        Parameters:
        userId - one or more (string) user ids
        Returns:
        The current query builder instance
      • endDate

        BAMTaskSummaryQueryBuilder endDate​(Date... endDate)
        Specify one or more (task) end dates to use as a criteria.
        Parameters:
        endDate - one or more dates
        Returns:
        The current query builder instance
      • endDateRange

        BAMTaskSummaryQueryBuilder endDateRange​(Date endDateMin,
                                                Date endDateMax)
        Specify an inclusive range of (task) end dates to use as a criteria

        If the lower or upper end of the range is given as null, then an open-ended range using the non-null range end is used as the criteria
        Parameters:
        endDateMin - the minimal (lower) date to use in the range
        endDateMax - the max (upper) date to use in the range
        Returns:
        The current query builder instance
      • createdOn

        BAMTaskSummaryQueryBuilder createdOn​(Date... createdOn)
        Specify one or more dates to use as a criteria for the created-on date of a task as logged in the task event
        Parameters:
        createdOn - one or more dates
        Returns:
        The current query builder instance
      • createdOnRange

        BAMTaskSummaryQueryBuilder createdOnRange​(Date createdOnMin,
                                                  Date createdOnMax)
        Specify an inclusive range of (task) creation dates to use as a criteria

        If the lower or upper end of the range is given as null, then an open-ended range using the non-null range end is used as the criteria
        Parameters:
        createdOnMin - the minimal (lower) date to use in the range
        createdOnMax - the max (upper) date to use in the range
        Returns:
        The current query builder instance
      • taskName

        BAMTaskSummaryQueryBuilder taskName​(String... name)
        Specify one or more task names to use as a criteria.
        Parameters:
        name - one or more string names
        Returns:
        The current query builder instance
      • ascending

        BAMTaskSummaryQueryBuilder ascending​(BAMTaskSummaryQueryBuilder.OrderBy field)
        Specify which field to use when ordering the results, in ascending order.

        If this method is not used, the results will be ordered in ascending order by the id field.
        Parameters:
        field - the field by which the query results should be ordered
        Returns:
        The current instance of this query builder
      • descending

        BAMTaskSummaryQueryBuilder descending​(BAMTaskSummaryQueryBuilder.OrderBy field)
        Specify which field to use when ordering the results, in descending order.

        If this method is not used, the results will be ordered in ascending order by the id field.
        Parameters:
        field - the field by which the query results should be ordered
        Returns:
        The current instance of this query builder