Forms工作流步骤可方便地提供详细日志,以调试与工作流相关的问题。 为AEM Forms工作流启用调试日志记录以查看日志。
默认情况下,所有日志记录信息都位于/crx-repository/logs/目录的error.log文件中。
表单工作流的调试日志包括:
每个工作流步骤的条目。 例如:
[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://'[server]:[port]'/system/console/configMgr
选择Sling > 日志支持。
点按添加新日志记录器。
选择Debug作为日志级别。
指定日志文件的位置。 日志文件的默认位置为:logs\error.log
在Logger列中,将包的名称指定为com.adobe.granite.workflow.core。
执行这些步骤后,可以存储com.adobe.granite.workflow.core包的调试日志。 点按+并将以下包名称添加到列表: