<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<contentHaul xmlns:a="http://www.appian.com/ae/types/2009">
    <rule>
        <name>${interface_activityHistory_name}</name>
        <uuid>${interface_activityHistory_uuid}</uuid>
        <description>${interface_activityHistory_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!searchTerm,
  local!userFilter,
  {
    #&quot;SYSTEM_SYSRULES_sectionLayout_v1&quot;(
      label: &quot;${activityHistory_header}&quot;,
      contents: a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              #&quot;SYSTEM_SYSRULES_pickerFieldUsers&quot;(
                labelPosition: &quot;COLLAPSED&quot;,
                placeholder: &quot;${activityHistory_user_placeholder}&quot;,
                groupFilter: #&quot;${constant_group_uuid}&quot;,
                maxSelections: 1,
                value: local!userFilter,
                saveInto: local!userFilter
              )
            }
          ),
          a!columnLayout(
            contents: {
              #&quot;SYSTEM_SYSRULES_textField&quot;(
                labelPosition: &quot;COLLAPSED&quot;,
                placeholder: &quot;${activityHistory_search_placeholder}&quot;,
                refreshAfter: &quot;KEYPRESS&quot;,
                value: local!searchTerm,
                saveInto: local!searchTerm
              )
            }
          )
        }
      )
    ),
    #&quot;SYSTEM_SYSRULES_sectionLayout_v1&quot;(
      contents: {
        #&quot;SYSTEM_SYSRULES_gridField_v3&quot;(
          labelPosition: &quot;COLLAPSED&quot;,
          emptyGridMessage: &quot;${activityHistory_noEntries}&quot;,
          data: #&quot;${expRule_getActivityByRecord_uuid}&quot;(
            recordId: ri!id,
            searchTerm: local!searchTerm,
            userFilter: local!userFilter,
            pagingInfo: fv!pagingInfo
          ),
          columns: {
            #&quot;SYSTEM_SYSRULES_gridColumn&quot;(
              label: &quot;${user}&quot;,
              sortField: &quot;who&quot;,
              value: #&quot;SYSTEM_SYSRULES_linkField&quot;(links: { #&quot;${interface_recordLink_uuid}&quot;(label: fv!row.who, username: fv!row.who) })
            ),
            #&quot;SYSTEM_SYSRULES_gridColumn&quot;(
              label: &quot;${action}&quot;,
              sortField: &quot;action&quot;,
              value: fv!row.action
            ),
            #&quot;SYSTEM_SYSRULES_gridColumn&quot;(
              label: &quot;${details}&quot;,
              sortField: &quot;details&quot;,
              value: fv!row.details
            ),
            #&quot;SYSTEM_SYSRULES_gridColumn&quot;(
              label: &quot;${activityHistory_createdOn}&quot;,
              sortField: &quot;when&quot;,
              value: #&quot;${expRule_dateFormat_uuid}&quot;(fv!row.when),
              align: &quot;END&quot;
            )
          },
          pageSize: 25,
          initialSorts: { a!sortInfo("when", false) }
        )
      }
    )
  }
)</definition>
        <namedTypedValue>
            <name>id</name>
            <type>
                <name>int</name>
                <namespace>http://www.w3.org/2001/XMLSchema</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>
