Using A Scheduled Workflow; Coding Workflow Schedules - Oracle ZFS Storage Appliance Administration Manual

Hide thumbs Also See for ZFS Storage Appliance:
Table of Contents

Advertisement

Using a Scheduled Workflow

Once a workflow has been loaded into the appliance a schedule can be defined for it via the CLI
interface as follows:
EXAMPLE 28
dory:> maintenance workflows
dory:maintenance workflows> "select workflow-002'''
dory:maintenance workflow-002> schedules
dory:maintenance workflow-002 schedules>create
dory:maintenance workflow-002 schedule (uncommitted)> set frequency=day
dory:maintenance workflow-002 schedule (uncommitted)> set hour=10
dory:maintenance workflow-002 schedule (uncommitted)> set minute=05
dory:maintenance workflow-002 schedule (uncommitted)> commit
dory:maintenance workflow-002 schedules> list
NAME
schedule-001
dory:maintenance workflow-002 schedules> create
dory:maintenance workflow-002 schedule (uncommitted)> set frequency=week
dory:maintenance workflow-002 schedule (uncommitted)> set day=Monday
dory:maintenance workflow-002 schedule (uncommitted)> set hour=13
dory:maintenance workflow-002 schedule (uncommitted)> set minute=15
dory:maintenance workflow-002 schedule (uncommitted)> commit
dory:maintenance workflow-002 schedules> list
NAME
schedule-001
schedule-002
dory:maintenance workflow-002 schedules>

Coding Workflow Schedules

Schedules can also be specified in the workflow code as a property in the Object workflow.
The property syntax used here differs from the CLI schedule creation. Here three properties are
used,
Scheduled Workflow in the CLI
frequency = day (uncommitted)
hour = 10 (uncommitted)
minute = 05 (uncommitted)
FREQUENCY
day
frequency = week (uncommitted)
day = Monday (uncommitted)
hour = 13 (uncommitted)
minute = 15 (uncommitted)
FREQUENCY
day
week
DAY
HH:MM
-
10:05
DAY
HH:MM
-
Monday
Maintenance Workflows
Using a Scheduled Workflow
10:05
13:15
601

Advertisement

Table of Contents
loading

Table of Contents