Timer in process model

Hi Team

Can we trigger a process model from 9 AM and 9 PM. Usually, we add timers to trigger at that particular time.

  Discussion posts and replies are publicly visible

Parents Reply Children
  • +1
    Certified Lead Developer
    in reply to Purvaja

    One pattern I see, is to trigger the process EVERY hour and then add a XOR to decide whether it is the right time to start. This is very flexible and can be controlled using constants or database queries.

    You can also add conditions to the timer trigger to control this. You can also use constants, but just changing the constant will not change the behaviour of the condition. This would need a re-deployment of the model.

  • +1
    Certified Lead Developer
    in reply to Purvaja

    Then you will want to click the "Show Advanced Options" checkbox and enter an expression that checks to see whether the current time is within the current timeframe of that day.  I don't have that expression off the top of my head, however you should be able to formulate something using the Appian function library.

    Edit: Stefan snuck in a reply before mine, but i can vouch for the approach he suggests as well - and that can be slightly easier to troubleshoot/test than using the Timer Conditions feature, to boot.