<?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.
  -->

<objects xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
         xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:noop="http://midpoint.evolveum.com/xml/ns/public/task/noop/handler-3"
>

    <task oid="00000005-0000-0000-0011-123450000001" xsi:type="c:TaskType">
        <name>Task1: long-running (70 sec) exclusive</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>70</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>00000005-0000-0000-0011-123450000001</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <executionConstraints>
            <group>exclusive</group>
            <groupTaskLimit>1</groupTaskLimit>
        </executionConstraints>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>80</interval>
        </schedule>
    </task>

    <task oid="00000005-0000-0000-0011-123450000002" xsi:type="c:TaskType">
        <name>Task2: long-running (70 sec) exclusive</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>70</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>00000005-0000-0000-0011-123450000002</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <executionConstraints>
            <group>exclusive</group>
            <groupTaskLimit>1</groupTaskLimit>
        </executionConstraints>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>80</interval>
        </schedule>
    </task>

</objects>
