use of org.camunda.bpm.engine.repository.DecisionDefinitionQuery in project camunda-bpm-platform by camunda.
the class DecisionDefinitionQueryTest method queryByLatest.
@Test
public void queryByLatest() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
query.latestVersion();
verifyQueryResults(query, 3);
query.decisionDefinitionKey("one").latestVersion();
verifyQueryResults(query, 1);
query.decisionDefinitionKey("two").latestVersion();
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.repository.DecisionDefinitionQuery in project camunda-bpm-platform by camunda.
the class DecisionDefinitionQueryTest method queryByDeploymentId.
@Test
public void queryByDeploymentId() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
query.deploymentId(firstDeploymentId);
verifyQueryResults(query, 2);
}
use of org.camunda.bpm.engine.repository.DecisionDefinitionQuery in project camunda-bpm-platform by camunda.
the class DecisionDefinitionQueryTest method queryByInvalidNameLike.
@Test
public void queryByInvalidNameLike() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
query.decisionDefinitionNameLike("%invalid%");
verifyQueryResults(query, 0);
try {
query.decisionDefinitionNameLike(null);
fail();
} catch (NotValidException e) {
// Expected exception
}
}
use of org.camunda.bpm.engine.repository.DecisionDefinitionQuery in project camunda-bpm-platform by camunda.
the class DecisionDefinitionQueryTest method queryByCategory.
@Test
public void queryByCategory() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
query.decisionDefinitionCategory("Examples");
verifyQueryResults(query, 2);
}
use of org.camunda.bpm.engine.repository.DecisionDefinitionQuery in project camunda-bpm-platform by camunda.
the class DecisionDefinitionQueryTest method queryByCategoryLike.
@Test
public void queryByCategoryLike() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
query.decisionDefinitionCategoryLike("%Example%");
verifyQueryResults(query, 3);
query.decisionDefinitionCategoryLike("%amples2");
verifyQueryResults(query, 1);
query.decisionDefinitionCategoryLike("%z\\_");
verifyQueryResults(query, 1);
}
Aggregations