
Explanation:
* Add a Variable of type string to the workflow named currentDate for storing the current date and time value.
* Add a Workflow element to the schema and configure it to use the Create a Snapshot workflow provided by the orchestrator workflow library.
* Map the name input parameter to the currentDate variable to define the name of the snapshot.
* Add a Schedule workflow element to the schema and configure it to use the Remove all snapshots workflow.
* Configure the Scheduled workflow to run 5 days from the value of the currentDate variable.
In VMware Cloud Foundation (VCF) 9.0, the Operations orchestrator (vRO) is used to build complex, state-aware automation. To satisfy the requirement that the main workflow stops running while a second cleanup task triggers later, the administrator must use the Schedule workflow element rather than a "Waiting Timer". A waiting timer keeps the workflow "Active," consuming system resources for the duration of the wait (5 days), whereas a scheduled task is handed off to the orchestrator's database to be triggered independently.
The configuration begins by defining a currentDate variable of type string. This variable captures the execution timestamp, which is then mapped to the Create a Snapshot library workflow to provide the required dynamic naming. To handle the automated cleanup, the administrator adds a Schedule workflow element. Unlike a standard workflow call, the scheduler allows for a specific execution offset.
By configuring the Remove all snapshots workflow to run 5 days from the currentDate value, the administrator ensures the snapshot exists for exactly the maintenance and cooling-off period before being programmatically removed. This approach is robust against orchestrator service restarts and provides a clean, asynchronous method for managing the temporary infrastructure lifecycle in a VCF
9.0 environment.
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).