Using a Scheduled Workflow
Once a workflow that contains the scheduled: true
property is loaded onto an Oracle ZFS Storage Appliance system, the schedule can be defined or modified via the CLI interface. See the scheduled
property in the example for "Using Workflow Properties" in Coding Workflow Schedules.
Each schedule entry consists of the following properties:
Table 9-12 Workflow Schedule Properties
Property | Type | Description |
---|---|---|
|
String |
Name of the schedule. This value is system generated. |
|
String |
Values can be |
|
String |
Values can be |
|
String |
Values can be |
|
String |
|
Example 9-15 Scheduled Workflow in the CLI
This example shows how to add two execution times to a workflow named "My Scheduled Workflow". The first execution time is daily at 10:05 a.m. The second scheduled execution time for this workflow is each Monday at 1:15 p.m.
hostname:> maintenance workflows hostname:maintenance workflows> select name="My Scheduled Workflow" hostname:maintenance workflow-002> schedules hostname:maintenance workflow-002 schedules> create hostname:maintenance workflow-002 schedule (uncommitted)> set frequency=day frequency = day (uncommitted) hostname:maintenance workflow-002 schedule (uncommitted)> set hour=10 hour = 10 (uncommitted) hostname:maintenance workflow-002 schedule (uncommitted)> set minute=05 minute = 05 (uncommitted) hostname:maintenance workflow-002 schedule (uncommitted)> commit hostname:maintenance workflow-002 schedules> list NAME FREQUENCY DAY HH:MM schedule-001 day - 10:05 hostname:maintenance workflow-002 schedules> create hostname:maintenance workflow-002 schedule (uncommitted)> set frequency=week frequency = week (uncommitted) hostname:maintenance workflow-002 schedule (uncommitted)> set day=Monday day = Monday (uncommitted) hostname:maintenance workflow-002 schedule (uncommitted)> set hour=13 hour = 13 (uncommitted) hostname:maintenance workflow-002 schedule (uncommitted)> set minute=15 minute = 15 (uncommitted) hostname:maintenance workflow-002 schedule (uncommitted)> commit hostname:maintenance workflow-002 schedules> list NAME FREQUENCY DAY HH:MM schedule-001 day - 10:05 schedule-002 week Monday 13:15 hostname:maintenance workflow-002 schedules>