Inspired by one too many games of ‘Peek-a-Boo’ with my darling new niece, I figured a good feature to review for our last Feature Friday is the ability to have a temporal transition in a workflow. Similar to how you only allow a workflow transition based on certain criteria using a validation script, you can call a condition script to only allow transitions based on a timeframe. The script we’ll review in this post was used in several examples:
What it does is allow a workflow transition to only be available if it’s within a month of the calculated time. Let’s look at the specifics. In this first record we’ll look at in an Equipment Maintenance workspace, the workflow transition is not available since the countdown time is greater than one month.
Notice the difference if the time is within a month:
Let’s take a closer look at the computed field that calculates the countdown:
And the script called: