当前位置: 首页>>代码示例>>Java>>正文


Java Query类代码示例

本文整理汇总了Java中org.flowable.engine.common.api.query.Query的典型用法代码示例。如果您正苦于以下问题:Java Query类的具体用法?Java Query怎么用?Java Query使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Query类属于org.flowable.engine.common.api.query包,在下文中一共展示了Query类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getForms

import org.flowable.engine.common.api.query.Query; //导入依赖的package包/类
protected <T extends Query<?, ?>, U extends Object> List<WorkflowFormTO> getForms(final Query<T, U> query) {
    List<WorkflowFormTO> forms = new ArrayList<>();

    query.list().forEach(obj -> {
        try {
            if (obj instanceof HistoricTaskInstance) {
                forms.add(getFormTO((HistoricTaskInstance) obj));
            } else if (obj instanceof Task) {
                forms.add(getFormTO((Task) obj));
            } else {
                throw new FlowableException(
                        "Failure retrieving form", new IllegalArgumentException("Invalid task type"));
            }
        } catch (FlowableException e) {
            LOG.debug("No form found for task {}", obj, e);
        }
    });

    return forms;
}
 
开发者ID:apache,项目名称:syncope,代码行数:21,代码来源:FlowableUserWorkflowAdapter.java

示例2: paginateList

import org.flowable.engine.common.api.query.Query; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public DataResponse paginateList(Map<String, String> requestParams, Query query, String defaultSort, Map<String, QueryProperty> properties) {
	return paginateList(requestParams, null, query, defaultSort, properties);
}
 
开发者ID:wengwh,项目名称:plumdo-work,代码行数:5,代码来源:AbstractPaginateList.java

示例3: paginateList

import org.flowable.engine.common.api.query.Query; //导入依赖的package包/类
/**
 * Uses the pagination parameters from the request and makes sure to order the result and set all pagination attributes for the response to render.
 *
 * @param requestParams
 *            The request containing the pagination parameters
 * @param query
 *            The query to get the paged list from
 * @param defaultSort
 *            The default sort column (the rest attribute) that later will be mapped to an internal engine name
 * @param properties
 *
 */
public DataResponse<RES> paginateList(Map<String, String> requestParams, Query<?, REQ> query, String defaultSort, Map<String, QueryProperty> properties) {
    return paginateList(requestParams, null, query, defaultSort, properties);
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:16,代码来源:AbstractPaginateList.java


注:本文中的org.flowable.engine.common.api.query.Query类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。