scheduled: true プロパティーを含むワークフローがアプライアンスにロードされると、CLI インタフェースを使用してスケジュールを定義または変更できます。Coding Workflow Schedulesの使用例 22, ワークフロープロパティーの使用にある scheduled プロパティーを参照してください。
各スケジュールエントリは、次のプロパティーで構成されています。
|
この例は、「My Scheduled Workflow」という名前のワークフローに 2 つの実行時間を追加する方法を示しています。最初の実行時間は、毎日午前 10:05 です。このワークフローのスケジュールされた 2 番目の実行時間は、毎週月曜日の午後 1:15 です。
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>