Search in sources :

Example 1 with TaskAuditQueryCriteriaUtil

use of org.jbpm.services.task.audit.service.TaskAuditQueryCriteriaUtil in project jbpm by kiegroup.

the class AbstractTaskAuditQueryCommand method execute.

@Override
public List<R> execute(Context cntxt) {
    TaskContext context = (TaskContext) cntxt;
    TaskAuditQueryCriteriaUtil queryCriteriaUtil = new TaskAuditQueryCriteriaUtil(context.getPersistenceContext());
    List<Q> implResult = queryCriteriaUtil.doCriteriaQuery(getQueryWhere(), getQueryType());
    return QueryCriteriaUtil.convertListToInterfaceList(implResult, getResultType());
}
Also used : TaskContext(org.jbpm.services.task.commands.TaskContext) TaskAuditQueryCriteriaUtil(org.jbpm.services.task.audit.service.TaskAuditQueryCriteriaUtil)

Example 2 with TaskAuditQueryCriteriaUtil

use of org.jbpm.services.task.audit.service.TaskAuditQueryCriteriaUtil in project jbpm by kiegroup.

the class BAMTaskSummaryQueryCommand method execute.

@Override
public List<BAMTaskSummaryImpl> execute(Context cntxt) {
    TaskContext context = (TaskContext) cntxt;
    TaskAuditQueryCriteriaUtil queryCriteriaUtil = new TaskAuditQueryCriteriaUtil(context.getPersistenceContext());
    return queryCriteriaUtil.doCriteriaQuery(getQueryWhere(), BAMTaskSummaryImpl.class);
}
Also used : TaskContext(org.jbpm.services.task.commands.TaskContext) TaskAuditQueryCriteriaUtil(org.jbpm.services.task.audit.service.TaskAuditQueryCriteriaUtil)

Aggregations

TaskAuditQueryCriteriaUtil (org.jbpm.services.task.audit.service.TaskAuditQueryCriteriaUtil)2 TaskContext (org.jbpm.services.task.commands.TaskContext)2