위치:
InsClaimService:getRuleLogs
이 서비스를 사용하여 실행 날짜별로 오름차순으로 정렬된 클레임에 대한 규칙 로그를 검색합니다.
방법: InsClaimService
클래스: getRuleLogs
작동 방법
-
이 서비스는 대상 개체에 해당하는 RecordId__c가 있는 행이 있는지 확인하기 위해 ObjectAppliedResult__c 테이블을 쿼리하여 로그를 검색합니다.
-
이러한 행이 있는 경우 서비스가 행을 변환하고 AppliedDateTime_c 필드에 따라 오름차순으로 호출자에게 반환합니다.
출력 JSON
다음 샘플 출력 JSON을 참조하십시오.
{
"result": [{
"id": "a1a6g00000087E9AAI",
"objectId": "02i6g000000I21EAAS",
"stateTransitionId": "a1Z6g000000HzX1EAK",
"stateTransitionName": "Draft to Submit",
"executionDate": "2020-01-01T00:00:00.000Z",
"results": [{
"id": "a5Q6g0000005vSPEAY",
"name": "Check Auto Year",
"condition": "Auto.Year > 1990",
"message": "Auto year is greater than 1990",
"action": null,
"result": true,
"details": {
"instanceKey": "2002 Toyota Camry"
}
}]
}, {
"id": "a1a6g00000087E9AAL",
"objectId": "02i6g000000I21EAAS",
"stateTransitionId": "a1Z6g000000HzX1EAP",
"stateTransitionName": "Submit to Underwriting",
"executionDate": "2020-01-05T00:00:00.000Z",
"results": [{
"id": "a5Q6g0000005vSPEAZ",
"name": "Check Auto Make",
"condition": "Auto.Make == 'Lexus'",
"message": "Auto is a Lexus",
"action": "Move to Underwriting",
"result": false,
"details": {
"instanceKey": "2002 Toyota Camry"
}
}]
}]
}