caseService
.withCaseDefinitionByKey(CASE_DEFINITION_KEY)
.setVariable("aStringValue", "abc")
.create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
query.variableValueLike("aStringValue", "ab%");
verifyQueryResults(query, 1);
query = caseService.createCaseExecutionQuery();
query.variableValueLike("aStringValue", "%bc");
verifyQueryResults(query, 1);
query = caseService.createCaseExecutionQuery();
query.variableValueLike("aStringValue", "%b%");
verifyQueryResults(query, 1);
}