You are here:
InsPolicyService:getRuleLogs
This service retrieves rule logs for a target policy, sorted by execution date in ascending order.
How It Works
-
This service retrieves logs by querying the ObjectAppliedResult__c table to see if there are any rows with a RecordId__c corresponding to the target object.
-
If such rows exist, the service transforms the rows and returns to the caller in ascending order according to the AppliedDateTime_c field.
Output JSON
See the following sample of output JSON.
{
"result": [{
"id": <Id>,
"objectId": <Id>,
"stateTransitionId": <Id>,
"stateTransitionName": <String>,
"executionDate": <Datetime>,
"results": [{
"id": <Id>,
"name": <String>,
"condition": <String>,
"message": <String>,
"action": <String>,
"result": <Boolean>,
"details": {
<String>: <String>
}
}]
}]
}Results Description
This JSON includes these key/value pairs:
Key |
Values |
|---|---|
id |
Id of rule |
name |
Name of rule |
condition |
Rule condition |
message |
Success message if rule condition evaluated true against target policy Failure message if rule condition evaluated false against target policy |
action |
Name of action executed if rule condition evaluated true |
result |
Result of rule condition evaluation against target policy |
details |
Map of information associated with the target policy |

