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