Preface:
- I'm inclined to say that I should track my state in a database and write a script to implement this business logic, but I will ask my question anyway.
I have two jobs:
- Job A
- Job B
Problem:
- When Job A runs between 5 PM and 7 PM, Monday through Friday...
- And it returns a job return code of 'Success'...
- It should trigger Job B once and only once for the given calendar day.
- This is key. It should not trigger Job B more than once for the given calendar day.
Question:
- Should I code this business rule and conditional logic in a script?
- Or are there ways that adTempus can implement this conditional and business logic out of the box?
- I'm particularly interested in tracking the number of times that Job A has triggered Job B for the given calendar day.
- And I would be amendable to querying the adTempus database within the script if that seems best.