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 > 日志支持。
点按添加新Logger。
选择Debug作为日志级别。
指定日志文件的位置。 日志文件的默认位置为:logs\error.log
在Logger列中,将包的名称指定为com.adobe.granite.workflow.core。
执行这些步骤可以存储com.adobe.granite.workflow.core包的调试日志。 点按+并向列表添加以下包名称: