本文整理匯總了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);
}