Calling Expression Rule inside Timer Event

Certified Associate Developer

We have a requirement to build the scheduler process to run 3 days before every quarter. The  Logic has been built in the expression rule . When I am trying to call the rule in the timer to get the specific day to run, the process is not running whereas when I implicitly paste the logic, it works. Is there any limitations that expression rule can't be evaluated inside the timer.

  Discussion posts and replies are publicly visible

Parents
  • Yes, agree with both comments here.  You will also note this if you set a start timer for a process model based on a constant, then you change the constant later, the process model start time will not change until you re-publish the process model, at which time the timer re-evaluates against the new constant value.

    We use Stewart's solution typically - have a parent process start an instance every day, run to an XOR node where your rule is evaluated to determine if it is the correct day.  If it is the 3rd day before the quarter, continue to the process.  If it is not, simply exit to an end node.  Have a short cleanup period on the processes and this should work fine for you.

Reply
  • Yes, agree with both comments here.  You will also note this if you set a start timer for a process model based on a constant, then you change the constant later, the process model start time will not change until you re-publish the process model, at which time the timer re-evaluates against the new constant value.

    We use Stewart's solution typically - have a parent process start an instance every day, run to an XOR node where your rule is evaluated to determine if it is the correct day.  If it is the 3rd day before the quarter, continue to the process.  If it is not, simply exit to an end node.  Have a short cleanup period on the processes and this should work fine for you.

Children
No Data