除外ルールをインポートする XML ファイルの例

ユーザーがタグを再利用したり値を変更したりして、要件に従って新しい XML ファイルを作成できるように、除外ルールのインポートに使用する XML ファイルの例が提供されています。

以下の XML タグを使用して、除外ルールをインポートする XML ファイルを作成できます。

<rules>
	<rule>
		<ruleName>Rule1</ruleName><!-- specify rule name -->
		<ruleDescription>Rule for skipping 1/13 to 1/19.</ruleDescription><!-- specify rule description -->
		<ruleStartDate>1/13/2017</ruleStartDate><!-- specify exclusion start date. This should be of format MM/DD/YYYY -->
		<ruleStartTime>8:00:00</ruleStartTime><!-- specify exclusion start time. This should be of format HH:MM:SS-->
		<ruleEndDate>1/19/2017</ruleEndDate><!-- specify exclusion end date. This should be of format MM/DD/YYYY -->
		<ruleEndTime>18:15:00</ruleEndTime><!-- specify exclusion end time. This should be of format HH:MM:SS -->
		<SchedulerIDs>
			<SchedulerID>10</SchedulerID>	<!-- specify scheduler task Ids, on which this rule should get applied. This needs to be obtained from database. -->
			<SchedulerID>15</SchedulerID>
		</SchedulerIDs>
		<ruleStatus>Enabled</ruleStatus> <!-- specify exclusion rule status. valid values Enabled/Disabled -->
	</rule>
</rules>
<rules>
	<rule>
		<ruleName>Rule2</ruleName><!-- specify rule name -->
		<ruleDescription>Rule for skipping 2/6 to 2/10</ruleDescription><!-- specify rule description -->
		<ruleStartDate>2/6/2017</ruleStartDate><!-- specify exclusion start date. This should be of format MM/DD/YYYY -->
		<ruleStartTime>00:00:00</ruleStartTime><!-- specify exclusion start time. This should be of format HH:MM:SS-->
		<ruleEndDate>2/10/2017</ruleEndDate><!-- specify exclusion end date. This should be of format MM/DD/YYYY -->
		<ruleEndTime>23:59:59</ruleEndTime><!-- specify exclusion end time. This should be of format HH:MM:SS -->
		<SchedulerIDs>
			<SchedulerID>45</SchedulerID>	<!-- specify scheduler task Ids, on which this rule should get applied. This needs to be obtained from database. -->
			<SchedulerID>88</SchedulerID>
		</SchedulerIDs>
		<ruleStatus>Disabled</ruleStatus> <!-- specify exclusion rule status. valid values Enabled/Disabled -->
	</rule>
</rules>