Workflow analyzer - Custom rule | Check is the log message at beginning of every workflow

Hello everyone,

I want to create a custom rule for the Workflow analyzer.

I have checked up:

My idea is to create a new rule that should check is the log message activity created at beginning of every workflow in the project.

Can someone give me some hints on how could I do that?

in general, we can try:

  • level - Workflow
  • retrieving the list of activities
  • checking the position of the log message activity
  • adding some variations e.g. it is allowed to have a comment before the log message
    • does mean: if the log message is on the second position after a comment on the first position it is accepted

Thanks. I understand the logic, but I’m not sure how to write that in code. Also, I’m trying to find where is the default rules saved so I can see how is the code written, but I didn’t have luck for now.

A LINQ can help for getting the position / acitvity filter check
Have a sarch for the UiPath.Studio.RulesLibrary.dll file
e.g.:
C:\Program Files (x86)\UiPath\Studio\Rules (enterprise version)
%localappdata%\UiPath\app-%version%\Rules

1 Like