You can set the timeout.date variable of a User interaction element to a relative time and date by binding it to a Date object. You define the object in a scripted function.
If you create a relative Date object in a scripted function, you can bind the timeout.date variable of a user interaction to this Date object. For example, if you bind the timeout.date variable to a Date object that adds 24 hours to the current time, the user interaction times out after waiting for 24 hours.
Prerequisites
- Add a user interaction element to the workflow schema.
- Create a scripted function that calculates a relative time and date and encapsulates it in a Date object in the workflow. See Calculate a Relative Timeout for User Interactions.
Procedure
- Log in to the Automation Orchestrator Client.
- Navigate to , and select your workflow.
- Select the Schema tab.
- Select your User interaction element.
- Under Options, configure
timeout.date
to use the timerDate variable. - To finish editing your workflow, click Save.
Results
You set the timeout.date variable to a relative date and time that a scripted function calculates.