登录AEM Forms工作流 logging-in-aem-forms-workflows

Forms Workflow步骤提供详细的日志,可方便地调试与工作流相关的问题。 为AEM Forms工作流启用调试日志记录以查看日志。

默认情况下,所有日志记录信息在 error.log 文件位于 /crx-repository/logs/ 目录。

表单工作流的调试日志包括:

  • 输入每个工作流步骤。 例如:
    [DEBUG] "Executing Invoke DDX Process step"

  • 退出每个工作流步骤。 例如:
    [DEBUG] "Successfully finished Invoke DDX Process step"

  • 服务调用消息。 例如:
    [DEBUG] Invoking Adobe Sign Service for creating agreement

  • 服务退出消息。 例如:
    [DEBUG] Agreement created successfully with agreement id <agreement id>

  • 从元数据映射读取的变量。 例如:
    [DEBUG] Successfully retrieved variable <variable name> from workflow meta data map

  • 变量写入JCR存储库。 例如:

    code language-verilog
       [DEBUG] Successfully written variable <variable name> into meta data node at <JCR path where meta data is being written>
    
  • 具有完整栈栈跟踪的异常消息。 例如:
    [DEBUG] Exception in Adobe Sign Service <complete stack trace>

  • 动态步骤元数据参数。 例如:

    code language-verilog
    [DEBUG] Document of Record to be generated for adaptive form <path of adaptive form>
     [DEBUG] Locale to be used for Document of Record is <locale>
    

以下示例说明了“签名文档”步骤的日志:

[DEBUG] Executing sign document step.
[DEBUG] Using adobe sign configuration: <path of adobe sign configuration>
[DEBUG] Invoking Adobe Sign Service for creating agreement
[DEBUG] Agreement created successfully with agreement id <agreement id>
[DEBUG] Exception in Adobe Sign Service <complete stack trace>
[ERROR] Exception in Adobe Sign Service
[DEBUG] Successfully finished sign document step

使用日志评估:

  • 您使用的是正确的Adobe Sign配置。
  • Adobe Sign服务会在成功创建协议后退出。
  • 签名文档步骤退出并显示成功消息。

如果出现异常,可以查看完整的栈栈跟踪以评估错误的原因。

为AEM Forms工作流启用调试日志记录 enable-debug-logging-for-aem-forms-workflows

执行以下操作,以便为AEM Forms工作流启用调试日志记录:

  1. 转到AEM Web控制台配置管理器,网址为:

    https://'[服务器]:[端口]'/system/console/configMgr

  2. 选择 Sling > 日志支持.

  3. 选择 添加新记录器。

  4. 选择 调试 作为 日志级别.

  5. 指定日志文件的位置。 日志文件的默认位置为: logs\error.log

  6. 将程序包名称指定为 com.adobe.granite.workflow.coreLogger 列。

    执行这些步骤可以存储调试日志 com.adobe.granite.workflow.core 包。 选择 + 并将以下包名称添加到列表中:

    • com.adobe.fd.workflow
    • com.adobe.fd.workspace
recommendation-more-help
19ffd973-7af2-44d0-84b5-d547b0dffee2