Search in sources :

Example 1 with ParametrizedQuery

use of org.kie.internal.query.ParametrizedQuery in project jbpm by kiegroup.

the class TaskSummaryQueryBuilderImpl method build.

@Override
public ParametrizedQuery<TaskSummary> build() {
    return new ParametrizedQuery<TaskSummary>() {

        private QueryWhere queryWhere = new QueryWhere(getQueryWhere());

        @Override
        public List<TaskSummary> getResultList() {
            TaskSummaryQueryCommand cmd = new TaskSummaryQueryCommand(queryWhere);
            cmd.setUserId(userId);
            return executor.execute(cmd);
        }
    };
}
Also used : TaskSummaryQueryCommand(org.jbpm.services.task.commands.TaskSummaryQueryCommand) ParametrizedQuery(org.kie.internal.query.ParametrizedQuery) TaskSummary(org.kie.api.task.model.TaskSummary) QueryWhere(org.jbpm.query.jpa.data.QueryWhere)

Aggregations

QueryWhere (org.jbpm.query.jpa.data.QueryWhere)1 TaskSummaryQueryCommand (org.jbpm.services.task.commands.TaskSummaryQueryCommand)1 TaskSummary (org.kie.api.task.model.TaskSummary)1 ParametrizedQuery (org.kie.internal.query.ParametrizedQuery)1