本文整理汇总了Java中org.camunda.bpm.engine.repository.CaseDefinitionQuery.caseDefinitionKeyLike方法的典型用法代码示例。如果您正苦于以下问题:Java CaseDefinitionQuery.caseDefinitionKeyLike方法的具体用法?Java CaseDefinitionQuery.caseDefinitionKeyLike怎么用?Java CaseDefinitionQuery.caseDefinitionKeyLike使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.camunda.bpm.engine.repository.CaseDefinitionQuery
的用法示例。
在下文中一共展示了CaseDefinitionQuery.caseDefinitionKeyLike方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testQueryByInvalidKeyLike
import org.camunda.bpm.engine.repository.CaseDefinitionQuery; //导入方法依赖的package包/类
public void testQueryByInvalidKeyLike() {
CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();
query
.caseDefinitionKeyLike("%invalid%");
verifyQueryResults(query, 0);
try {
query.caseDefinitionKeyLike(null);
fail();
} catch (NotValidException e) {
// Expected exception
}
}
示例2: 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();
}
}
示例3: testQueryByKeyLike
import org.camunda.bpm.engine.repository.CaseDefinitionQuery; //导入方法依赖的package包/类
public void testQueryByKeyLike() {
CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();
query
.caseDefinitionKeyLike("%o%");
verifyQueryResults(query, 3);
query.caseDefinitionKeyLike("%z\\_");
verifyQueryResults(query, 1);
}