Conditions - sorengranfeldt/marunscheduler GitHub Wiki
(documentation in writing...)
By applying conditions to a RunItem , you can limit the scope of that item to only run under certain conditions. This way you can have more items for the same Management Agent in the same XML file. An example of this could be to run a Full Import under certain conditions and run Delta Imports under other conditions.
Conditions for a RunItem can have subconditions with different conditions, allowing you to build very complex conditions for a RunItem. The Condition element and the subcondition element must have an 'Operator' type which can be either 'Or' or 'And' - and that operator applies to all conditions within that condition. This way you can have an overall 'Or' condition consisting of one or more sub conditions.
A sample condition for a RunItem could look like this -
The following condition - when added to an item - will constrict that item to only run in the timespan of 7am to 5pm and only when the minutes of the hour is between 00 and 05 or between 30 and 35.
<Conditions Operator="And">
<Condition xsi:type="Between" From="07:00" To="17:00" />
<Condition xsi:type="SubCondition" Operator="And">
<Condition xsi:type="WithinMinutesSpan" From="00" To="05" />
<Condition xsi:type="WithinMinutesSpan" From="30" To="35" />
</Condition>
</Conditions>
You can have the following condition types specified by the 'xsi:type' attribute -
Available from version 1.4.0.0 and on