Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use this algorithm, create a priority algorithm in studio Encore and give it the name 'CustomFieldPriority'.

...

The Runtime evaluates the expression modeled in Studio Encore and sets the start date-time of the priority job first evaluation. A few situations exist concerning reevalution:

  • If the evaluation results in a date in the future, the priority algorithm reevaluation will start in the future at that exact modeled time.
  • If the start time evaluation results in either a date in the past or it was not modeled at all, the following rules will apply:
    • If start time was not modeled in studioEncore, the Runtime evaluates the expression to the current date (This is due to backwards compatibility).
    • If start time is in the past at Runtime evaluation and:
      • Reevaluation time is a 'WEEK': priority algorithm start date is set to current date plus 7 days, with the same time from Start time.
      • Reevaluation time is a 'DAY': priority algorithm start date is set to current date, with the same time from Start time.
      • Reevaluation time is an 'HOUR': priority algorithm start date is set to current date, current hour, with the same minute and second from Start time.
      • Reevaluation time is a 'MINUTE': priority algorithm start date is set to current date, current hour and minute, with the same second from Start time.