当前位置: 首页>>代码示例>>Java>>正文


Java CaseDefinitionQuery.caseDefinitionResourceNameLike方法代码示例

本文整理汇总了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
  }
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:16,代码来源:CaseDefinitionQueryTest.java

示例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();
  }
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:52,代码来源:CaseDefinitionQueryDto.java

示例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);
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:13,代码来源:CaseDefinitionQueryTest.java


注:本文中的org.camunda.bpm.engine.repository.CaseDefinitionQuery.caseDefinitionResourceNameLike方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。