Answered

CHelper.trace does not perform in filter expression?

Hi,

I followed the documentation below:

https://help.bizagi.com/bpm-suite/en/index.html?validating_my_business_r.htm

I have created filter expressions that work fine. In it, I included CHelper.trace as I wanted to display some info, for the test I have set it to some random pure-string expression just to make sure it works.

For some reason, while the filter still performing the file, the tracer does not write in the specified file, located in

C:\Bizagi\Projects\My_Project_Name\Trace

Is tracing disabled in filter expressions?

Bizagi Studio version: 11.2.5.0528

Kind regards,

Dejan Penko

Comments (4)

photo
1

Good afternoon Dejan,

I recommend that you put the trace in an action when entering, saving or exiting, in this way you make sure that it is executed in any of the moments.

Andres Montoya

photo
1

Hi, thank you for a fast reply.

I've just tried it. I've set an expression using the trace method to save the Activity action (on save) and still no effect, there is no trace/log file created.

The expression does run, as I've added in the same expression ThrowValidationAlert and it works fine.

Please see the attachment for more info.

Am I missing something?

Kind regards,

Dejan

photo
1

I've found out what was the issue, possibly also in the first case...

I was running ThrowValidationAlert before tracing (was testing which method would be the best to display the value of the variable).

And when ThrowValidationAlert is thrown the rest of the expression does not execute...

photo
1

I confirm. CHelper.trace works in filter expression (when executed!).