Events Viewer

◷ Reading Time: 4 minutes

You can use the event viewer in FlexRule Designer to see the step-by-step process of executed logic.

As the first step, run or debug your project.
You can use the options, Run, Run with JSON Composer, or Logic Run Template.

Once you finish the execution, events can be seen under the Parameters window.

If you click on $events and then click on the Data Viewer, it will open the Events Viewer window.

Event Viewer shows a detailed view of the logic execution.

  1. Name of the node in a flow
  2. The linked file name of the node
  3. The time it took to run the node in milliseconds
  4. Passed rules
  5. The action that took upon a passed rule
  6. If a rule with multiple expressions failed, the expressions that passed can be seen.
  7. Failed rules

Search for Events

Type the phrase you want to search and click on “Find and Mark” to mark the search results.

You can search for multiple terms.
To remove a search, type the searched phrase and click on “Remove a Mark”.

And, to mark a result, “Toggle Node Mark” can be used

If you want to search for a phrase in the project, go to Edit –> Find and enter the phrase.

Analyze Event Log

You can use the event log for further analysis of your project performance.

Once you have the events marked, you can find the following information on their durations.

  • Average: Average duration
  • Sum: Sum of duration
  • Slowest: The longest execution time
  • Fastest: The fastest execution time

In the below example, it recorded the duration values as follows.

  • Average: 4.503
  • Sum: 27.017
  • Slowest: 8.958
  • Fastest: 0.942

Export Event Log

The event log can also be saved as an as Excel spreadsheet, as a csv file or as a JSON Dump file.

Events export

All the event details (i.e. level, name, type, duration, and result) can be saved as follows.

Import Event Log

You can import events dump files and service log files(JSON) to the Event Viewer.

Click on the Event Viewer under Tools section in the menu bar.

Tool in menu bar

Click on “Open events JSON File” to load you dump files or service log files.

Event viewer import json

Once you load the files into Event Viewer, you can dock it to document area by clicking on “Dock to Document Area” button on the top.

Create service response for Event Viewer

Once you deploy your model to a service end point, you can load the responses from service where it has the fulllog=true to get the conclusion log.

FullLog true

Once you get the service response including conclusion log you can copy all the response body and save it as a JSON file. Then you can load this JSON file into Event Viewer to analyze the log.

Updated on May 26, 2023

Was this article helpful?

Related Articles