12 hours ago
Debug Business Rules using logs
· You can verify the govern index through the govern get query by providing Entity ID and Entity type. (The govern index is a separate index that stores governance-related details of an entity example: workflow status, validation errors, and business condition status)
Payload:
{
"params": {
"query": {
"id": "<EntityID>",
"filters": {
"typesCriterion": [
"<EntityType>"
]
}
},
"fields": {
"attributes": [
"_ALL"
]
},
"options": {
"maxRecords": 1
}
}
}
URL: /api/entitygovernservice/get
Response:
· In above screenshot you can see that we have details related to attribute error, business condition status and workflow.
· Generally for the success of BR executions, not logging any info in application logs except the Publish(export) rules.
In case we are facing some issue with the rule at development stage we can get details of each keyword and sub step using below steps.
1. Validate if there is any error in the troubleshooting logs under governance page.
2. If there is an issue with the structure or it reaches recursion you should be able to see relevant error messages in the details.
3. If there is no error found in step 2, Navigate to the application logs as shown below.
4. Filter with task id or entity id:
5. You should be able to find relevant logs.
Note: It is recommended to include debug logs and download the logs for better observation.
Also, check our articles on “How to include debug logs under application logs” and “How to export log files”.
Please post your questions in the comments section.