在任务摘要窗格中显示信息

在AEM Forms工作区中打开任务时,“任务摘要”窗格可以显示该任务的摘要。 任务的这一附加相关信息为AEM Forms工作区的最终用户增加了更多价值。

AEM Forms工作区允许您在“任务摘要”窗格中显示您选择的网页。 可以创建一个流程,以使用Workbench显示“任务摘要”窗格。

  1. 在Workbench中创建分配任务流程。 有关“分配任务”操作的更多详细信息,请参阅Workbench Help中的“服务引用”主题。

    注意

    如果存在“任务摘要”URL,则默认情况下会打开“任务摘要”视图,而不是“表单”视图。 在这种情况下,即使用户在“分配任务”中启用“以最大化模式打开表单”选项,表单也不会以最大化模式打开。

  2. 配置任务摘要URL字段。 您可以指定文字值、模板、变量或XPath表达式。

  3. 下面显示“任务摘要”页上的信息示例。

    • 登录到位于https://[server]:[port]/lc/crx/de的CRXDE Lite环境。
    • Create a nodeSampleSummary under/with typecontenttnt:. In the properties of this node, add unstructuredsling:of type String and value . In the Access Control List of this node, add an entry for resourceTypeSampleSummaryPERM_WORKSPACE_allowingUSERjcr:read privileges.
    • Create a folder 下的SampleSummary /apps。在/apps/SampleSummary的访问控制列表中,为允许jcr:readprivilegesPERM_WORKSPACE_USER添加一个条目。
    • Create a file html.espat/apps/. For example, add the following lines in SampleSummaryhtml.esp.
    <html>
        <body>
            <h1>Sample Summary</h1>
            <br/>
            <p>Hello Sir!
                <br/>
                This is sample summary page for this task.
            </p>
        </body>
    </html>
    
    • 在“分配任务”步骤中,将任务摘要url的值设置为/lc/content/SampleSummary.html
    • 当在AEM Forms工作区中打开与此“分配任务”步骤关联的任务时,/apps/SampleSummaryhtml.esp将呈现在任务摘要窗格中。

在此页面上