Search in sources :

Example 6 with SimpleQueryCriteria

use of org.wso2.carbon.humantask.core.dao.SimpleQueryCriteria in project carbon-business-process by wso2.

the class HumanTaskDAOConnectionImpl method searchTasks.

public List<TaskDAO> searchTasks(SimpleQueryCriteria queryCriteria) {
    HumanTaskJPQLQueryBuilder queryBuilder = new HumanTaskJPQLQueryBuilder(queryCriteria, entityManager);
    Query taskQuery = queryBuilder.build();
    return taskQuery.getResultList();
}
Also used : Query(javax.persistence.Query) HumanTaskJPQLQueryBuilder(org.wso2.carbon.humantask.core.dao.sql.HumanTaskJPQLQueryBuilder)

Aggregations

Query (javax.persistence.Query)3 SimpleQueryCriteria (org.wso2.carbon.humantask.core.dao.SimpleQueryCriteria)3 HumanTaskJPQLQueryBuilder (org.wso2.carbon.humantask.core.dao.sql.HumanTaskJPQLQueryBuilder)3 HumanTaskDAOConnection (org.wso2.carbon.humantask.core.dao.HumanTaskDAOConnection)2 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Set (java.util.Set)1 IllegalArgumentFault (org.wso2.carbon.humantask.client.api.IllegalArgumentFault)1 IllegalStateFault (org.wso2.carbon.humantask.client.api.IllegalStateFault)1 TStatus (org.wso2.carbon.humantask.client.api.types.TStatus)1 TTaskSimpleQueryResultSet (org.wso2.carbon.humantask.client.api.types.TTaskSimpleQueryResultSet)1 HumanTaskServerConfiguration (org.wso2.carbon.humantask.core.configuration.HumanTaskServerConfiguration)1 TaskDAO (org.wso2.carbon.humantask.core.dao.TaskDAO)1 TaskStatus (org.wso2.carbon.humantask.core.dao.TaskStatus)1 HumanTaskRuntimeException (org.wso2.carbon.humantask.core.engine.runtime.api.HumanTaskRuntimeException)1