<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<contentHaul xmlns:a="http://www.appian.com/ae/types/2009">
    <rule>
        <name>${interface_MAIN_name}</name>
        <uuid>${interface_MAIN_uuid}</uuid>
        <description>${interface_MAIN_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(
  /* The local variables store the options for the Pick Single / Multiple from List fields    *
   * We only show the active options, plus any inactive options already stored on this record */
${interface_mainForm_loadBlock}
  {
    #&quot;SYSTEM_SYSRULES_sectionLayout_v1&quot;(
      label: ri!label,
      contents: a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
${interface_mainForm_columnOneFields}
              if(
                ri!creating,
                {},
                {
                  #&quot;SYSTEM_SYSRULES_linkField&quot;(
                    label: &quot;${createdBy}&quot;,
                    labelPosition: if(ri!readOnly, &quot;ADJACENT&quot;, &quot;ABOVE&quot;),
                    links: #&quot;SYSTEM_SYSRULES_userRecordLink&quot;(
                      label: #&quot;${expRule_formatName_uuid}&quot;(ri!record.createdBy),
                      user: ri!record.createdBy
                    )
                  ),
                  #&quot;SYSTEM_SYSRULES_textField&quot;(
                    label: &quot;${createdOn}&quot;,
                    labelPosition: if(ri!readOnly, &quot;ADJACENT&quot;, &quot;ABOVE&quot;),
                    value: #&quot;${expRule_dateFormat_uuid}&quot;(ri!record.createdOn),
                    readOnly: true
                  )
                }
              )
            }
          ),
          a!columnLayout(
            contents: {
${interface_mainForm_columnTwoFields}
              if(
                ri!creating,
                {},
                {
                  #&quot;SYSTEM_SYSRULES_linkField&quot;(
                    label: &quot;${updatedBy}&quot;,
                    labelPosition: if(ri!readOnly, &quot;ADJACENT&quot;, &quot;ABOVE&quot;),
                    links: #&quot;SYSTEM_SYSRULES_userRecordLink&quot;(
                      label: #&quot;${expRule_formatName_uuid}&quot;(ri!record.updatedBy),
                      user: ri!record.updatedBy
                    )
                  ),
                  #&quot;SYSTEM_SYSRULES_textField&quot;(
                    label: &quot;${updatedOn}&quot;,
                    labelPosition: if(ri!readOnly, &quot;ADJACENT&quot;, &quot;ABOVE&quot;),
                    value: #&quot;${expRule_dateFormat_uuid}&quot;(ri!record.updatedOn),
                    readOnly: true
                  )
                }
              )
            }
          )
        }
      )
    ),
    #&quot;${interface_attachmentsGrid_uuid}&quot;(
      documents: ri!documents,
      deletedDocuments: ri!deletedDocuments,
      readOnly: ri!readOnly,
      target: if(ri!creating,
        #&quot;${constant_tempDocs_uuid}&quot;,
        ri!record.folderId
      )
    )
  }
)</definition>
        <namedTypedValue>
            <name>record</name>
            <type>
                <name>${cdt_main_name}</name>
                <namespace>${cdt_namespace}</namespace>
            </type>
        </namedTypedValue>
        <namedTypedValue>
            <name>creating</name>
            <type>
                <name>boolean</name>
                <namespace>http://www.w3.org/2001/XMLSchema</namespace>
            </type>
        </namedTypedValue>
        <namedTypedValue>
            <name>readOnly</name>
            <type>
                <name>boolean</name>
                <namespace>http://www.w3.org/2001/XMLSchema</namespace>
            </type>
        </namedTypedValue>
        <namedTypedValue>
            <name>documents</name>
            <type>
                <name>CollaborationDocument?list</name>
                <namespace>http://www.appian.com/ae/types/2009</namespace>
            </type>
        </namedTypedValue>
        <namedTypedValue>
            <name>label</name>
            <type>
                <name>string</name>
                <namespace>http://www.w3.org/2001/XMLSchema</namespace>
            </type>
            <value/>
        </namedTypedValue>
        <namedTypedValue>
            <name>deletedDocuments</name>
            <type>
                <name>CollaborationDocument?list</name>
                <namespace>http://www.appian.com/ae/types/2009</namespace>
            </type>
        </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>
