<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<contentHaul xmlns:a="http://www.appian.com/ae/types/2009">
    <rule>
        <name>${interface_taskForm_name}</name>
        <uuid>${interface_taskForm_uuid}</uuid>
        <description>${interface_taskForm_desc}</description>
        <parentUuid>${folder_rulesAndConstants}</parentUuid>
        <visibility>
            <advertise>false</advertise>
            <hierarchy>true</hierarchy>
            <indexable>true</indexable>
            <quota>false</quota>
            <searchable>true</searchable>
            <system>false</system>
            <unlogged>false</unlogged>
        </visibility>
        <definition>a!localVariables(
  local!record: #&quot;${expRule_getOneRecord_uuid}&quot;(ri!recordId),
  #&quot;SYSTEM_SYSRULES_formLayout_v1&quot;(
    label: ${task_header},
    contents: {
      #&quot;SYSTEM_SYSRULES_sectionLayout_v1&quot;(
        label: &quot;${task_taskInformation}&quot;,
        contents: a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                #&quot;SYSTEM_SYSRULES_paragraphField&quot;(
                  label: &quot;${task_taskDetails}&quot;,
                  labelPosition: &quot;ADJACENT&quot;,
                  value: ri!taskDetails,
                  readOnly: true
                ),
                #&quot;SYSTEM_SYSRULES_linkField&quot;(
                  label: &quot;${task_recordLink}&quot;,
                  labelPosition: &quot;ADJACENT&quot;,
                  links: #&quot;SYSTEM_SYSRULES_recordLink&quot;(
                    label: local!record.${title_field_name},
                    recordType: #"urn:appian:record-type:v1:${recordType_uuid}",
                    identifier: local!record.id
                  )
                )
              }
            ),
            a!columnLayout(
              contents: {
                #&quot;SYSTEM_SYSRULES_linkField&quot;(
                  label: &quot;${task_taskFrom}&quot;,
                  labelPosition: &quot;ADJACENT&quot;,
                  links: #&quot;${interface_recordLink_uuid}&quot;(
                    username: ri!taskFrom,
                    label: #&quot;${expRule_formatName_uuid}&quot;(ri!taskFrom)
                  )
                ),
                #&quot;SYSTEM_SYSRULES_dateTimeField&quot;(
                  label: &quot;${task_taskSent}&quot;,
                  labelPosition: &quot;ADJACENT&quot;,
                  value: ri!taskedOn,
                  readOnly: true
                )
              }
            )
          }
        )
      ),
      #&quot;SYSTEM_SYSRULES_sectionLayout_v1&quot;(
        label: &quot;&quot;,
        contents: {
          #&quot;SYSTEM_SYSRULES_paragraphField&quot;(
            label: &quot;${comments}&quot;,
            labelPosition: &quot;ADJACENT&quot;,
            required: true,
            validations: if(
              len(ri!comments)&gt;4000,
              ${task_commentsValidation},
              &quot;&quot;
            ),
            helpTooltip: &quot;${task_commentsHelpTooltip}&quot;,
            value: ri!comments,
            saveInto: ri!comments,
            refreshAfter: &quot;KEYPRESS&quot;
          )
        }
      ),
      #&quot;${interface_MAIN_uuid}&quot;(
        label: &quot;${task_recordInformation}&quot;,
        record: local!record,
        creating: false,
        readOnly: true,
        documents: if(
          isnull(local!record.folderId),
          {},
          folder(local!record.folderId, &quot;documentChildren&quot;)
        )
      )
    },
    buttons: #&quot;SYSTEM_SYSRULES_ButtonLayout&quot;(
      primaryButtons: {
        #&quot;SYSTEM_SYSRULES_ButtonWidgetSubmit&quot;(
          label: &quot;${task_completeTask}&quot;,
          style: &quot;PRIMARY&quot;
        )
      },
      secondaryButtons: {
        #&quot;SYSTEM_SYSRULES_ButtonWidgetSubmit&quot;(
          label: &quot;${task_skipTask}&quot;,
          style: &quot;NORMAL&quot;,
          value: true,
          saveInto: ri!cancel,
          skipValidation: true
        )
      }
    )
  )
)</definition>
        <namedTypedValue>
            <name>cancel</name>
            <type>
                <name>boolean</name>
                <namespace>http://www.w3.org/2001/XMLSchema</namespace>
            </type>
        </namedTypedValue>
        <namedTypedValue>
            <name>taskDetails</name>
            <type>
                <name>string</name>
                <namespace>http://www.w3.org/2001/XMLSchema</namespace>
            </type>
            <value/>
        </namedTypedValue>
        <namedTypedValue>
            <name>taskFrom</name>
            <type>
                <name>string</name>
                <namespace>http://www.w3.org/2001/XMLSchema</namespace>
            </type>
            <value/>
        </namedTypedValue>
        <namedTypedValue>
            <name>taskedOn</name>
            <type>
                <name>dateTime</name>
                <namespace>http://www.w3.org/2001/XMLSchema</namespace>
            </type>
        </namedTypedValue>
        <namedTypedValue>
            <name>recordId</name>
            <type>
                <name>int</name>
                <namespace>http://www.w3.org/2001/XMLSchema</namespace>
            </type>
        </namedTypedValue>
        <namedTypedValue>
            <name>comments</name>
            <type>
                <name>string</name>
                <namespace>http://www.w3.org/2001/XMLSchema</namespace>
            </type>
            <value/>
        </namedTypedValue>
        <preferredEditor>interface</preferredEditor>
        <offlineEnabled>false</offlineEnabled>
    </rule>
    <roleMap public="true">
        <role allowForAll="false" inherit="true" name="readers">
            <users/>
            <groups/>
        </role>
        <role allowForAll="false" inherit="true" name="authors">
            <users/>
            <groups/>
        </role>
        <role allowForAll="false" inherit="true" name="administrators">
            <users/>
            <groups/>
        </role>
        <role allowForAll="false" inherit="false" name="denyReaders">
            <users/>
            <groups/>
        </role>
        <role allowForAll="false" inherit="false" name="denyAuthors">
            <users/>
            <groups/>
        </role>
        <role allowForAll="false" inherit="false" name="denyAdministrators">
            <users/>
            <groups/>
        </role>
    </roleMap>
</contentHaul>
