<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<contentHaul xmlns:a="http://www.appian.com/ae/types/2009">
    <rule>
        <name>${interface_openTasks_name}</name>
        <uuid>${interface_openTasks_uuid}</uuid>
        <description>${interface_openTasks_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!pagingInfo: #&quot;SYSTEM_SYSRULES_pagingInfo&quot;(startIndex: 1, batchSize: 5),
  /* Retrieve data from the process report to use here */
  local!report: a!queryProcessAnalytics(
    report: #&quot;${constant_processReport_uuid}&quot;,
    contextProcessModels: #&quot;${constant_sendTaskModel_uuid}&quot;,
    query: #&quot;SYSTEM_SYSRULES_query&quot;(
      filter: #&quot;SYSTEM_SYSRULES_queryFilter&quot;(
        field: &quot;c7&quot;,
        operator: &quot;=&quot;,
        value: ri!recordId
      ),
      pagingInfo: local!pagingInfo
    )
  ),
  {
    #&quot;SYSTEM_SYSRULES_gridField_v3&quot;(
    /* If there is no data, display nothing.                                       *
     * Otherwise, iterate over the column rule to show a grid of task information. */
      label: local!report.name,
      showWhen: local!report.totalCount &gt; 0,
      instructions: local!report.description,
      data: local!report,
      columns: {
        a!forEach(
          items: local!report.columnConfigs,
          expression: #&quot;${interface_taskGridColumn_uuid}&quot;(
            columnConfig: fv!item,
            currentPage: fv!currentPage,
            filterByRecord: true
          )
        )
      },
      pagingSaveInto: local!pagingInfo
    )
  }
)</definition>
        <namedTypedValue>
            <name>recordId</name>
            <type>
                <name>int</name>
                <namespace>http://www.w3.org/2001/XMLSchema</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>
