feat(case): query after caseDefinition and caseInstances