Flowable源码地址:https://github.com/flowable/flowable-engine
DeploymentQuery 部署查询接口类
-
允许对部署情况{@link Deployment}进行编程查询
-
请注意,通过此操作的结果检索部署资源是不可能的,因为这将导致大量(可能)不需要的字节通过网络传输。
-
要检索部署资源的实际字节,请使用{@linkRepositoryService#getDeploymentResourceNames(String)}和{@linkRepositoryService#getResourceAsStream(String,String)}方法。
package org.flowable.engine.repository;
import java.util.List;
import org.flowable.common.engine.api.query.Query;
import org.flowable.engine.RepositoryService;
/**
*
* @author Tom Baeyens
* @author Joram Barrez
*/
public interface DeploymentQuery extends Query<DeploymentQuery, Deployment> {
/**
* 仅选择具有给定部署id的部署.
*/
DeploymentQuery deploymentId(String deploymentId);
/**
*仅选择具有给定id集中id的部署.
*/
DeploymentQuery deploymentIds(List<String> deploymentId);
/**
* 仅选择具有给定名称的部署.
*/
DeploymentQuery deploymentName(String name);
/**
* 仅选择名称与给定字符串类似的部署.
*/
DeploymentQuery deploymentNameLike(String nameLike);
/**
* 仅选择具有给定类别的部署.
*
* @see DeploymentBuilder#category(String)
*/
DeploymentQuery deploymentCategory(String category);
/**
* 仅选择具有类似给定字符串类别的部署.
*/
DeploymentQuery deploymentCategoryLike(String categoryLike);
/**
* 仅选择与给定类别不同的部署.
*
* @see DeploymentBuilder#category(String)
*/
DeploymentQuery deploymentCategoryNotEquals(String categoryNotEquals);
/**
* 仅选择具有给定key的部署.
*/
DeploymentQuery deploymentKey(String key);
/**
* 仅选择键类似于给定字符串的部署.
*/
DeploymentQuery deploymentKeyLike(String keyLike);
/**
* 仅选择具有给定租户id的部署.
*/
DeploymentQuery deploymentTenantId(String tenantId);
/**
* 仅选择与租户id类似的部署.
*/
DeploymentQuery deploymentTenantIdLike(String tenantIdLike);
/**
* 仅选择没有租户id的部署.
*/
DeploymentQuery deploymentWithoutTenantId();
/**
* 仅选择具有给定引擎版本的部署.
*/
DeploymentQuery deploymentEngineVersion(String engineVersion);
/**
* 仅选择从给定部署派生的部署.
*/
DeploymentQuery deploymentDerivedFrom(String deploymentId);
/**
* 仅选择具有给定父部署id的部署.
*/
DeploymentQuery parentDeploymentId(String parentDeploymentId);
/**
* 仅选择与给定父部署id类似的部署.
*/
DeploymentQuery parentDeploymentIdLike(String parentDeploymentIdLike);
/**
* 仅选择父部署id与给定部署集合之中相同的部署.
*/
DeploymentQuery parentDeploymentIds(List<String> parentDeploymentIds);
/**
* 仅选择具有给定流程定义键的部署.
*/
DeploymentQuery processDefinitionKey(String key);
/**
* 仅选择与给定流程定义键类似的部署.
*/
DeploymentQuery processDefinitionKeyLike(String keyLike);
/**
* 仅选择部署时间为最新值的部署。只能与部署key一起使用.
*/
DeploymentQuery latest();
// sorting
/**
* 按部署id排序(需要后跟{@link#asc()}或{@link#desc()}).
*/
DeploymentQuery orderByDeploymentId();
/**
* 按部署名称排序(需要后跟{@link#asc()}或{@link#desc()}).
*/
DeploymentQuery orderByDeploymentName();
/**
* 按部署时间排序(需要后跟{@link#asc()}或{@link#desc()}).
*/
DeploymentQuery orderByDeploymentTime();
/**
* 按租户id排序(需要后跟{@link#asc()}或{@link#desc()}).
*/
DeploymentQuery orderByTenantId();
}