<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<contentHaul xmlns:a="http://www.appian.com/ae/types/2009">
    <rule>
        <name>${interface_taskGridColumn_name}</name>
        <uuid>${interface_taskGridColumn_uuid}</uuid>
        <description>${interface_taskGridColumn_desc}</description>
        <parentUuid>${_a-0000dc10-002c-8000-9b0c-01ef9001ef90_2789}</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>#&quot;SYSTEM_SYSRULES_gridColumn&quot;(
  label: ri!columnConfig.label,
  sortField: ri!columnConfig.field,
  showWhen: if(
    ri!columnConfig.configuredFormatting = &quot;TASK_STATUS&quot;,
    count(index(ri!currentPage.data, ri!columnConfig.field, {})) > 0,
    and(
      /* The column for record ID will not appear if we're filtering by record. */
      not(and(ri!columnConfig.field = &quot;c7&quot;, ri!filterByRecord)),

      /* In addition, the column for Assignee will not appear if we're viewing My Tasks, *
       * and the column for From will not appear if we're filtering by sender.           */
      not(
        and(
          ri!columnConfig.label = if(
            ri!toOrFrom = &quot;my tasks&quot;,
            &quot;${assignee}&quot;,
            &quot;${from}&quot;
          ),
          not(ri!filterByRecord)
        )
      )
    )
  ),
  value: a!localVariables(
    local!columnValue: fv!row[ri!columnConfig.field],
    if(
      ri!columnConfig.configuredFormatting = &quot;TASK_STATUS&quot;,
      /* Show an image column for task status */
      #&quot;SYSTEM_SYSRULES_imageField_v1&quot;(
        images: {
          #&quot;${expRule_formatStatusDisplay_uuid}&quot;(local!columnValue)
        }
      ),
      if(
        ri!columnConfig.configuredDrilldown = &quot;USER_PROFILE&quot;,
        #&quot;SYSTEM_SYSRULES_linkField&quot;(
          links: {
            #&quot;SYSTEM_SYSRULES_userRecordLink&quot;(
              label: #&quot;${expRule_formatName_uuid}&quot;(local!columnValue),
              user: local!columnValue
            )
          }
        ),
        if(
          ri!columnConfig.configuredFormatting = &quot;DATE_TIME&quot;,
          #&quot;${expRule_dateFormat_uuid}&quot;(local!columnValue),
          if(
            /* For the field that holds the record IDs, put record links on the record names. */
            ri!columnConfig.field = &quot;c7&quot;,
            #&quot;SYSTEM_SYSRULES_linkField&quot;(
              links: {
                #&quot;SYSTEM_SYSRULES_recordLink&quot;(
                  label: index(ri!recordNames.${title_field_name}, wherecontains(tointeger(local!columnValue), tointeger(ri!recordNames.id)), null),
                  recordType: #"urn:appian:record-type:v1:${recordType_uuid}",
                  identifier: local!columnValue
                )
              }
            ),
            if(
              /* Link from the task descriptions to the tasks themselves. Only add a link if */
              /* the current user is the assignee.                                           */
              and(
                ri!columnConfig.configuredDrilldown = &quot;TASK_DETAILS&quot;,
                ri!columnConfig.field = &quot;c9&quot;,
                touser(index(fv!row,&quot;c8&quot;,null)) = loggedInUser()
              ),
              #&quot;SYSTEM_SYSRULES_linkField&quot;(
                links: {
                  #&quot;SYSTEM_SYSRULES_processTaskLink&quot;(
                    label: local!columnValue,
                    task: fv!row[ri!columnConfig.drilldownField]
                  )
                }
              ),
              local!columnValue
            )
          )
        )
      )
    )
  ),
  align: if(
    ri!columnConfig.configuredFormatting = &quot;DATE_TIME&quot;,
    &quot;END&quot;,
    &quot;START&quot;
  ),
  width: if(
    ri!columnConfig.configuredFormatting = &quot;TASK_STATUS&quot;,
    &quot;NARROW&quot;,
    &quot;AUTO&quot;
  )
)</definition>
        <namedTypedValue>
            <name>columnConfig</name>
            <type>
                <name>Variant</name>
                <namespace>http://www.appian.com/ae/types/2009</namespace>
            </type>
        </namedTypedValue>
        <namedTypedValue>
            <name>recordNames</name>
            <type>
                <name>Variant</name>
                <namespace>http://www.appian.com/ae/types/2009</namespace>
            </type>
        </namedTypedValue>
        <namedTypedValue>
            <name>filterByRecord</name>
            <type>
                <name>boolean</name>
                <namespace>http://www.w3.org/2001/XMLSchema</namespace>
            </type>
        </namedTypedValue>
        <namedTypedValue>
            <name>toOrFrom</name>
            <type>
                <name>string</name>
                <namespace>http://www.w3.org/2001/XMLSchema</namespace>
            </type>
            <value/>
        </namedTypedValue>
        <namedTypedValue>
          <name>currentPage</name>
          <type>
            <name>Variant</name>
            <namespace>http://www.appian.com/ae/types/2009</namespace>
          </type>
        </namedTypedValue>
        <metadataExpr></metadataExpr>
        <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>
