本文整理汇总了Java中org.camunda.bpm.engine.repository.CaseDefinitionQuery.deploymentId方法的典型用法代码示例。如果您正苦于以下问题:Java CaseDefinitionQuery.deploymentId方法的具体用法?Java CaseDefinitionQuery.deploymentId怎么用?Java CaseDefinitionQuery.deploymentId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.camunda.bpm.engine.repository.CaseDefinitionQuery
的用法示例。
在下文中一共展示了CaseDefinitionQuery.deploymentId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testQueryByDeploymentId
import org.camunda.bpm.engine.repository.CaseDefinitionQuery; //导入方法依赖的package包/类
public void testQueryByDeploymentId() {
CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();
query
.deploymentId(deploymentOneId);
verifyQueryResults(query, 2);
}
示例2: testQueryByInvalidDeploymentId
import org.camunda.bpm.engine.repository.CaseDefinitionQuery; //导入方法依赖的package包/类
public void testQueryByInvalidDeploymentId() {
CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();
query
.deploymentId("invalid");
verifyQueryResults(query, 0);
try {
query.deploymentId(null);
fail();
} catch (NotValidException e) {
// Expected exception
}
}
示例3: applyFilters
import org.camunda.bpm.engine.repository.CaseDefinitionQuery; //导入方法依赖的package包/类
@Override
protected void applyFilters(CaseDefinitionQuery query) {
if (caseDefinitionId != null) {
query.caseDefinitionId(caseDefinitionId);
}
if (caseDefinitionIdIn != null && !caseDefinitionIdIn.isEmpty()) {
query.caseDefinitionIdIn(caseDefinitionIdIn.toArray(new String[caseDefinitionIdIn.size()]));
}
if (category != null) {
query.caseDefinitionCategory(category);
}
if (categoryLike != null) {
query.caseDefinitionCategoryLike(categoryLike);
}
if (name != null) {
query.caseDefinitionName(name);
}
if (nameLike != null) {
query.caseDefinitionNameLike(nameLike);
}
if (deploymentId != null) {
query.deploymentId(deploymentId);
}
if (key != null) {
query.caseDefinitionKey(key);
}
if (keyLike != null) {
query.caseDefinitionKeyLike(keyLike);
}
if (resourceName != null) {
query.caseDefinitionResourceName(resourceName);
}
if (resourceNameLike != null) {
query.caseDefinitionResourceNameLike(resourceNameLike);
}
if (version != null) {
query.caseDefinitionVersion(version);
}
if (TRUE.equals(latestVersion)) {
query.latestVersion();
}
if (tenantIds != null && !tenantIds.isEmpty()) {
query.tenantIdIn(tenantIds.toArray(new String[tenantIds.size()]));
}
if (TRUE.equals(withoutTenantId)) {
query.withoutTenantId();
}
if (TRUE.equals(includeDefinitionsWithoutTenantId)) {
query.includeCaseDefinitionsWithoutTenantId();
}
}