All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.flowable.task.api.TaskInfoQueryWrapper Maven / Gradle / Ivy

There is a newer version: 7.1.0
Show newest version
/* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.flowable.task.api;

/**
 * This is a helper class to help you work with the {@link TaskInfoQuery}, without having to care about the awful generics.
 * 
 * Example usage:
 * 
 * TaskInfoQueryWrapper taskInfoQueryWrapper = new TaskInfoQueryWrapper(taskService.createTaskQuery()); List taskInfos = taskInfoQueryWrapper.getTaskInfoQuery().or()
 * .taskNameLike("%task%") .taskDescriptionLike("%blah%"); .endOr() .list();
 * 
 * First line can be switched to TaskInfoQueryWrapper taskInfoQueryWrapper = new TaskInfoQueryWrapper(historyService.createTaskQuery()); and the same methods can be used on the result.
 * 
 * @author Joram Barrez
 */
public class TaskInfoQueryWrapper {

    protected TaskInfoQuery, ? extends TaskInfo> taskInfoQuery;

    public TaskInfoQueryWrapper(TaskInfoQuery, ? extends TaskInfo> taskInfoQuery) {
        this.taskInfoQuery = taskInfoQuery;
    }

    public TaskInfoQuery, ? extends TaskInfo> getTaskInfoQuery() {
        return taskInfoQuery;
    }

    public void setTaskInfoQuery(TaskInfoQuery, ? extends TaskInfo> taskInfoQuery) {
        this.taskInfoQuery = taskInfoQuery;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy