﻿<ProcessDefinition Version="13" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <Namespaces>
    <Namespace Prefix="forms" NamespaceURI="http://schemas.emakin.com" SchemaLocation="http://schemas.emakin.com" />
  </Namespaces>
  <Pools>
    <Pool Id="0a8d110c-18ff-43b6-b164-34e21981de6d" Name="Correction Loop" RootElement="Request" DefaultForm="cafe33c1-f82d-47c9-a005-3168ff86c51e">
      <Tasks>
        <Task Id="60f4646c-3227-4315-8d6c-ff5aab526cb0" Name="Submit Request" Caption="Submit Request" IsInitiator="True" Module="Automation">
          <Actions>
            <Action Id="9346e071-6160-4c76-be50-52d57f43b913" Name="Submit" Caption="Submit" ValidationGroup="Submit">
              <Routes>
                <Route Id="55d55959-7dcb-4b20-8169-351b909836f9" Target="9f227535-0c16-4a4b-864b-980f510f3685" />
              </Routes>
            </Action>
          </Actions>
          <Configurations>
            <User Form="cafe33c1-f82d-47c9-a005-3168ff86c51e" DeadlineNotify="False" AllowDefaultPrint="False" AllowForward="False" AllowDelegation="False">
              <Instructions><![CDATA[Enter or correct the request, then submit it for review.]]></Instructions>
              <FormSections>
                <FormSection Name="Request" State="Default" />
              </FormSections>
            </User>
          </Configurations>
        </Task>
        <Task Id="9f227535-0c16-4a4b-864b-980f510f3685" Name="Review Request" Caption="Review Request" Module="Automation">
          <Actions>
            <Action Id="29ac663a-e04b-4735-8b5d-817eeca9ae0e" Name="Approve" Caption="Approve">
              <Routes>
                <Route Id="fa9f2ab7-f7ce-492e-9e82-354013fc5af0" Target="b3bf64ab-d834-46a0-b2bf-83e899f186ea" />
              </Routes>
            </Action>
            <Action Id="374cf51b-b58c-44b7-a614-ebf4587ecdbc" Name="Request Correction" Caption="Request Correction" Order="1" Comment="Required" ValidationGroup="Correction">
              <Routes>
                <Route Id="c447c9e5-1d7a-43d9-8c25-b135727bf9ff" Target="60f4646c-3227-4315-8d6c-ff5aab526cb0" />
              </Routes>
            </Action>
          </Actions>
          <Configurations>
            <User Role="cc628ffd-cc7a-4d88-a8be-88c0cfec97c1" Form="cafe33c1-f82d-47c9-a005-3168ff86c51e" DeadlineNotify="False" AllowDefaultPrint="False" AllowForward="False" AllowDelegation="False">
              <Instructions><![CDATA[Approve the request or enter a correction note and return it to the requester.]]></Instructions>
              <FormSections>
                <FormSection Name="Request" />
              </FormSections>
            </User>
          </Configurations>
        </Task>
        <Task Id="b3bf64ab-d834-46a0-b2bf-83e899f186ea" Name="Complete Request" Caption="Complete Request" Module="Automation">
          <Actions>
            <Action Id="d9f774f0-6276-41bc-a5c1-7440d3c044e0" Name="Complete" Caption="Complete" />
          </Actions>
          <Configurations>
            <User Form="cafe33c1-f82d-47c9-a005-3168ff86c51e" DeadlineNotify="False" AllowDefaultPrint="False" AllowForward="False" AllowDelegation="False">
              <Instructions><![CDATA[Review the approved request and complete the process.]]></Instructions>
              <FormSections>
                <FormSection Name="Request" />
              </FormSections>
            </User>
          </Configurations>
        </Task>
      </Tasks>
      <Roles>
        <Role Id="cc628ffd-cc7a-4d88-a8be-88c0cfec97c1" Name="Reviewer" Caption="Reviewer" />
      </Roles>
      <Forms>
        <Form Id="cafe33c1-f82d-47c9-a005-3168ff86c51e" Name="Request Form" Caption="Request Form">
          <Contents>
            <RowContent Type="Section" SectionName="Request">
              <Label>
                <Content><![CDATA[Request]]></Content>
              </Label>
              <Columns>
                <Column WidthXS="12" WidthSM="12" WidthMD="12" WidthLG="12">
                  <Controls>
                    <TextBox MaxLength="500" Size="Large" RequiredForGroup="Submit" XPath="Description">
                      <Hints><![CDATA[Describe the requested work.]]></Hints>
                      <PlaceHolder><![CDATA[Request description]]></PlaceHolder>
                    </TextBox>
                    <TextBox MaxLength="500" Size="Large" RequiredForGroup="Correction" XPath="CorrectionNote">
                      <Hints><![CDATA[Explain what must be corrected.]]></Hints>
                      <PlaceHolder><![CDATA[Correction note]]></PlaceHolder>
                    </TextBox>
                  </Controls>
                </Column>
              </Columns>
            </RowContent>
          </Contents>
          <Script>
            <Content><![CDATA[]]></Content>
          </Script>
        </Form>
      </Forms>
    </Pool>
  </Pools>
  <AccessScopes />
  <Reports />
  <XmlSchemas>
    <xs:schema elementFormDefault="qualified">
      <xs:element name="Request">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="0" name="Description" type="xs:string" />
            <xs:element minOccurs="0" name="CorrectionNote" type="xs:string" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
  </XmlSchemas>
  <ExternalXmlSchemas />
  <Localization>
    <Translations>
      <Translation Name="Instructions" Entity="True">
        <Locations>
          <Location><![CDATA[//Route/Instructions]]></Location>
          <Location><![CDATA[//Task/Configurations/User/Instructions]]></Location>
        </Locations>
      </Translation>
      <Translation Name="TaskName" Entity="True">
        <Locations>
          <Location><![CDATA[//Task/@Caption]]></Location>
        </Locations>
      </Translation>
      <Translation Name="ActionName" Entity="True">
        <Locations>
          <Location><![CDATA[//Action/@Caption]]></Location>
        </Locations>
      </Translation>
      <Translation Name="DashboardName" Entity="False">
        <Locations>
          <Location><![CDATA[//Screen[@IsDashboard = 'True']/@Name]]></Location>
        </Locations>
      </Translation>
      <Translation Name="FormCaption" Entity="False">
        <Locations>
          <Location><![CDATA[//Form/@Caption]]></Location>
          <Location><![CDATA[//Screen/@Caption]]></Location>
        </Locations>
      </Translation>
      <Translation Name="Variable" Entity="True">
        <Locations>
          <Location><![CDATA[//Pool/Variables/Variable]]></Location>
        </Locations>
      </Translation>
      <Translation Name="RoleName" Entity="False">
        <Locations>
          <Location><![CDATA[//Pool/Roles/Role/@Caption]]></Location>
        </Locations>
      </Translation>
      <Translation Name="ActionConfirmation" Entity="False">
        <Locations>
          <Location><![CDATA[//Action/ConfirmationMessage]]></Location>
        </Locations>
      </Translation>
      <Translation Name="Template" Entity="False">
        <Locations>
          <Location><![CDATA[//Templates/Template/Content]]></Location>
        </Locations>
      </Translation>
      <Translation Name="TemplateSubject" Entity="False">
        <Locations>
          <Location><![CDATA[//Templates/Template/Subject]]></Location>
        </Locations>
      </Translation>
      <Translation Name="Label" Entity="True">
        <Locations>
          <Location><![CDATA[//Label/Content]]></Location>
        </Locations>
      </Translation>
      <Translation Name="Literal" Entity="False">
        <Locations>
          <Location><![CDATA[//AddNewLabel/Content]]></Location>
          <Location><![CDATA[//Column/@Caption]]></Location>
          <Location><![CDATA[//Column/Caption]]></Location>
          <Location><![CDATA[//Column/Properties/@Caption]]></Location>
          <Location><![CDATA[//DataExchange/Columns/Column/Caption]]></Location>
          <Location><![CDATA[//Footer/Content]]></Location>
          <Location><![CDATA[//LineChart/Title/Content]]></Location>
          <Location><![CDATA[//LineChart/XAxisLabel/Content]]></Location>
          <Location><![CDATA[//LineChart/YAxisLabel/Content]]></Location>
          <Location><![CDATA[//Literal/Content]]></Location>
          <Location><![CDATA[//PieChart/Title/Content]]></Location>
        </Locations>
      </Translation>
      <Translation Name="Html" Entity="False">
        <Locations>
          <Location><![CDATA[//Html/Content]]></Location>
        </Locations>
      </Translation>
      <Translation Name="XPath" Entity="False">
        <Locations>
          <Location><![CDATA[//LineChart/Lines/Line/LabelXPath]]></Location>
          <Location><![CDATA[//PieChart/Pies/Pie/LabelXPath]]></Location>
          <Location><![CDATA[//PieChart/Pies/Pie/ValueUnitXPath]]></Location>
        </Locations>
      </Translation>
      <Translation Name="FieldHint" Entity="False">
        <Locations>
          <Location><![CDATA[//Hints]]></Location>
        </Locations>
      </Translation>
      <Translation Name="PlaceHolder" Entity="False">
        <Locations>
          <Location><![CDATA[//PlaceHolder]]></Location>
        </Locations>
      </Translation>
      <Translation Name="ListItem" Entity="True">
        <Locations>
          <Location><![CDATA[//Items/Item/Text]]></Location>
        </Locations>
      </Translation>
      <Translation Name="Transforms" Entity="False">
        <Locations>
          <Location><![CDATA[//Form//Query/Columns/Column/Transforms/Transform/TransformValue]]></Location>
        </Locations>
      </Translation>
    </Translations>
    <Languages />
  </Localization>
</ProcessDefinition>