--fixes for HR-344,changes to retrieve caseId based on case_type