<< Click to Display Table of Contents >> Dynamic Rules Tracer |
When developing processes, testing rules, and assessing whether they capture the intended business logic, it is critical the correct implementation of a process. When running unit tests in expressions it is useful to keep track of variables and Xpath values the expression uses.
Bizagi features an application, the Dynamic Rules Tracer, that evaluates an expression executed on an Activity Action at run time. This feature lets you use breakpoints within the rule, so you can execute the rule line by line, and review in a watch window the values of variables and Xpaths used as in the rule executes.
The Dynamic Rule Tracer (DRT) is an application embedded in Bizagi Studio that retrieves in run time the code scripted in a rule on an Activity action, so you can to assess the rule line by line, watching the values of variables and Xpaths.
The following diagram describes the steps to run the DRT:
1.The developer opens Bizagi Studio and the project.
2.The BPM server validates the developer’s credentials to access the project in the Development environment.
3.The developer opens the Dynamic Rule Tracer from Bizagi Studio.
4.The DRT uses a connection with the Bizagi BPM server. This allows access to the project Development environment’s database through the Application Server and provides the code of a rule to be traced.
5.Bizagi displays the DRT as an external application. Here the developer can select the process, case number, and rule to be traced.
6.The developer runs the Development environment’s Work Portal and executes the task where the rule to be traced is triggered. Consider the moment where the rule is executed, that is, OnEnter, OnSave or OnExit.
7.The DRT injects the code into the tracer and the user can execute the expression line by line watching values of variables and Xpaths.
The Dynamic Rule Tracer is available in the Development Environment. You cannot use the DRT in Test or Production environments. Moreover, only scripting expressions executed in Activity actions can be traced. |
The cloud environment is ready for the Dynamic Rules Tracer, so no additional configuration is needed. However, make sure that a Run on Cloud has been made successfully. After, the authentication token can be generated.
Last Updated 1/23/2024 12:03:50 PM