13221323132413251326132713281329133013311332
.withCaseExecution(humanTaskExecutionId) .manualStart(); TaskQuery query = taskService.createTaskQuery(); query.caseDefinitionKey(caseDefinitionKey); verifyQueryResults(query, 1); } public void testQueryByInvalidCaseDefinitionKey() {
13301331133213331334133513361337133813391340
} public void testQueryByInvalidCaseDefinitionKey() { TaskQuery query = taskService.createTaskQuery(); query.caseDefinitionKey("invalid"); verifyQueryResults(query, 0); try { query.caseDefinitionKey(null);
13351336133713381339134013411342134313441345
query.caseDefinitionKey("invalid"); verifyQueryResults(query, 0); try { query.caseDefinitionKey(null); fail("expected exception"); } catch (ProcessEngineException e) { // OK } }