<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2010-2024 Evolveum
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->


<!--

This file provides a set of tasks for demo/testing midPoint multi-node and HA features.

Used for test scenarios (http://wiki.evolveum.com/display/midPoint/Test+Scenarios)
so please do not edit unless you know what you are doing.


-->

<objects xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance/ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2"
         xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
         xsi:schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-3 ../../infra/schema/src/main/resources/xml/ns/public/common/common-3.xsd">

    <task oid="00000001-0000-0000-0000-123450000001">
        <name>Task1: every 20 seconds, takes 18x1 sec</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>18</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000001-0000-0000-0000-123450000001</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>20</interval>
        </schedule>
    </task>

    <task oid="00000001-0000-0000-0000-123450000002">
        <name>Task2: every 22 seconds, takes 20x1 sec</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>20</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000001-0000-0000-0000-123450000002</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>22</interval>
        </schedule>
    </task>

    <task oid="00000001-0000-0000-0000-123450000003">
        <name>Task3: every 24 seconds, takes 22x1 sec</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>22</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000001-0000-0000-0000-123450000003</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>24</interval>
        </schedule>
    </task>

    <task oid="00000001-0000-0000-0000-123450000004">
        <name>Task4: every 26 seconds, takes 24x1 sec</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>24</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000001-0000-0000-0000-123450000004</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>26</interval>
        </schedule>
    </task>

    <task oid="00000001-0000-0000-0000-123450000005">
        <name>Task5: every 19 seconds, takes 18x1 sec</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>18</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000001-0000-0000-0000-123450000005</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>19</interval>
        </schedule>
    </task>

    <task oid="00000001-0000-0000-0000-123450000006">
        <name>Task6: every 2 seconds, takes 1 sec</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>1</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000001-0000-0000-0000-123450000006</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>2</interval>
        </schedule>
    </task>

    <task oid="00000001-0000-0000-0000-123450000007">
        <name>Task7: every 2 seconds, takes 1 sec</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>1</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000001-0000-0000-0000-123450000007</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>2</interval>
        </schedule>
    </task>
</objects>
