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存储库。 例如:
[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>
动态步骤元数据参数。 例如:
[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
使用日志评估:
如果出现异常,可以查看完整的栈栈跟踪以评估错误的原因。
执行以下操作,以便为AEM Forms工作流启用调试日志记录:
转到AEM Web控制台配置管理器,网址为:
https://'[服务器]:[端口]'/system/console/configMgr
选择 Sling > 日志支持.
点按 添加新记录器。
选择 调试 作为 日志级别.
指定日志文件的位置。 日志文件的默认位置为: logs\error.log
将程序包名称指定为 com.adobe.granite.workflow.core 在 Logger 列。
执行这些步骤可以存储调试日志 com.adobe.granite.workflow.core 包。 点按 + 并将以下包名称添加到列表中: