cancel
Showing results for 
Search instead for 
Did you mean: 
1WSCGomez
Moderator
Moderator

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:

1WSCGomez_0-1796390708528.png

· 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.

1WSCGomez_1-1796390708529.png

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.

1WSCGomez_2-1796390708529.png

 

1WSCGomez_3-1796390708530.png

4. Filter with task id or entity id:

1WSCGomez_4-1796390708530.png

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.

Version history
Revision #:
1 of 1
Last update:
12 hours ago
Updated by:
 
Contributors