<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2010-2017 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 task suspension, resuming, deletion 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:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:noop="http://midpoint.evolveum.com/xml/ns/public/task/noop/handler-3"
>

    <task oid="00000003-0000-0000-0000-123450000001">
        <name>Task1: recurring, TSA=suspend (3600x1s, a 3600s)</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>3600</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000003-0000-0000-0000-123450000001</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>3600</interval>
        </schedule>
        <threadStopAction>suspend</threadStopAction>
    </task>

    <task oid="00000003-0000-0000-0000-123450000002">
        <name>Task2: single-run, TSA=suspend (3600x1s)</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>3600</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000003-0000-0000-0000-123450000002</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <schedule>
            <recurrence>single</recurrence>
        </schedule>
        <binding>loose</binding>
        <threadStopAction>suspend</threadStopAction>
    </task>

    <task oid="00000003-0000-0000-0000-123450000003">
        <name>Task3: recurring, TSA=close (3600x1s, a 3600s)</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>3600</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000003-0000-0000-0000-123450000003</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>3600</interval>
        </schedule>
        <threadStopAction>close</threadStopAction>
    </task>

    <task oid="00000003-0000-0000-0000-123450000004">
        <name>Task4: recurring, TSA=restart (3600x1s, a 3600s)</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>3600</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000003-0000-0000-0000-123450000004</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>3600</interval>
        </schedule>
        <threadStopAction>restart</threadStopAction>
    </task>

    <task oid="00000003-0000-0000-0000-123450000005">
        <name>Task5: recurring, TSA=reschedule (3600x1s, a 3600s)</name>
        <activity>
            <work>
                <noOp>
                    <delay>1000</delay>    <!--  delay simulates a non-interruptible processing -->
                    <steps>3600</steps>        <!--  at the end of each step, the NoOp handler looks for shutdown signal -->
                </noOp>
            </work>
        </activity>
        <taskIdentifier>10000003-0000-0000-0000-123450000005</taskIdentifier>
        <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
        <executionStatus>runnable</executionStatus>

        <binding>loose</binding>
        <schedule>
            <recurrence>recurring</recurrence>
            <interval>3600</interval>
        </schedule>
        <threadStopAction>reschedule</threadStopAction>
    </task>


</objects>
