---
schema_version: "1"
id: 8fddf670204c96f6c13c8c25aedfecb2381f8b7c3853bcd07193c98f298a7814
title: Scheduler XML リファレンス
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/mule-runtime/4.3/scheduler-xml-reference.md
canonical_url: https://docs.mulesoft.com/jp/mule-runtime/4.3/scheduler-xml-reference
source_site: docs.mulesoft.com
content_type: documentation
content_hash: d11da3ffc25fb87160b2a44eec887169e5a41273ea376f19d6ad0af359ef9dae
description: MuleSoft Documentation Site
release: "4.3"
latest: false
---
# Scheduler XML リファレンス

Scheduler 用の XML には次の要素があります。

- `scheduler`​ 親要素は他の要素を包含します。
- `scheduling-strategy`​ ブロックは ​`scheduler`​ の内部に置かれます。
- `fixed-frequency`​ または ​`cron`​ 要素は ​`scheduling-strategy`​ ブロックの内部に置かれます。

## [](#scheduler-プロパティ)`<scheduler>`​ プロパティ

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 34%;">
<col style="width: 33%;">
<col style="width: 33%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">属性</th>
<th class="tableblock halign-left valign-top">説明</th>
<th class="tableblock halign-left valign-top">例</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>disallowConcurrentExecution</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">前回のフロー実行が終了していない場合、次にスケジュールされているフロー実行をスキップします。次の実行試行は、別の頻度期間の後になります。デフォルト値は ​<code>false</code>​ です。</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>disallowConcurrentExecution="true"</code></p></td>
</tr>
</tbody>
</table>

```xml
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd">
    <flow name="componentsFlow">
      <scheduler doc:name="Scheduler" disallowConcurrentExecution="true">
        <scheduling-strategy >
          <fixed-frequency frequency="1000"/>
        </scheduling-strategy>
      </scheduler>
    </flow>
</mule>
```

## [](#fixed-frequency-プロパティ)`<fixed-frequency>`​ プロパティ

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 34%;">
<col style="width: 33%;">
<col style="width: 33%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">属性</th>
<th class="tableblock halign-left valign-top">説明</th>
<th class="tableblock halign-left valign-top">例</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>frequency</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">時間単位で指定されるトリガー頻度。​<code>0</code>​ または負の値に指定すると、デフォルト値 (1 分) が使用されます。</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>frequency="1000"</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>timeUnit</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">frequency 値と startDelay 値の時間単位:</p>
<p class="tableblock">MILLISECONDS (ミリ秒)、SECONDS (秒)、MINUTES (分)、HOURS (時)、DAYS (日)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>timeUnit="MILLISECONDS"</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>startDelay</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">フローを最初にトリガーしたときに、Mule はスケジューラーの最初の実行を指定時間だけ遅らせます。この時間は、頻度と同じ時間単位で表されます。</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>startDelay="0"</code></p></td>
</tr>
</tbody>
</table>

```xml
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd">

    <flow name="componentsFlow">
        <scheduler>
            <scheduling-strategy>
                <fixed-frequency startDelay="5" frequency="10" timeUnit="SECONDS"/>
            </scheduling-strategy>
        </scheduler>
        <logger message="my message"/>
    </flow>

</mule>
```

## [](#cron-プロパティ)`<cron>`​ プロパティ

Cron 式を使用することで、より複雑なスケジューリング戦略を設定できます。

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 25%;">
<col style="width: 25%;">
<col style="width: 25%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">パラメーター</th>
<th class="tableblock halign-left valign-top">デフォルト値</th>
<th class="tableblock halign-left valign-top">説明</th>
<th class="tableblock halign-left valign-top">例</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>expression</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">-</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Cron 式を使用してトリガーのタイミングを指定します。</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>expression="1 1 1 1,7 * ?"</code>​</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>timeZone</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">システムプロパティとして渡されるタイムゾーン、またはマシンのオペレーティングシステムで設定されているタイムゾーン。</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html">Java のタイムゾーン</a>​形式のタイムゾーン</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>timeZone="America/Argentina/Buenos_Aires"</code></p></td>
</tr>
</tbody>
</table>

Cron 式を使用した例:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd">

    <flow name="componentsFlow">
        <scheduler>
            <scheduling-strategy>
                <cron expression="0 0 12 * * ?"/>
            </scheduling-strategy>
        </scheduler>
        <logger message="my message"/>
    </flow>

</mule>
```

## [](#関連情報)関連情報

- [スケジューラーエンドポイント (トリガー)](https://docs.mulesoft.com/jp/mule-runtime/4.3/scheduler-concept)