Skip to main content
ladislavm0002
April 17, 2023
Solved

Issue to use expression rule in timer settings

  • April 17, 2023
  • 2 replies
  • 0 views

Hello team,

i would like to use an expression rule in timer to define the day when a PM will run based on the values in DB. Every month the cut off day for processes is different and its defined in the DB. The expression rule which i call inside the timer is: =rule!ICH_getCutOffDataByFilters(    year: year(today()),    month: month(today())).day, and it simple calculate the cut off day for current month. But when i publish the PM i am receiving the following error message: ERROR:EVAL:@reason=Expression is invalid (1 token(s) remain after parsing)

Any advice please? Thanks

Best answer by stefanhelzle0001

That's a known issue. The simple solution, is to run the process in a fixed interval and add a gateway to decide whether it is the right time or not.

2 replies

stefanhelzle0001
April 17, 2023

That's a known issue. The simple solution, is to run the process in a fixed interval and add a gateway to decide whether it is the right time or not.

ladislavm0002
April 17, 2023

thanks Stefan, that will work