表單工作流程步驟可方便地提供詳細的記錄檔,以除錯與工作流程相關的問題。 啟用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網頁主控台組態管理器,網址為:
https://'[server]:[port]'/system/console/configMgr
選擇Sling > Log Support。
點選Add new Logger.
選擇Debug作為日誌級別。
指定日誌檔案的位置。 日誌檔案的預設位置為:logs\error.log
在Logger欄中,將套件名稱指定為com.adobe.granite.workflow.core。
執行這些步驟可以儲存com.adobe.granite.workflow.core軟體包的調試日誌。 點選+並將下列套件名稱新增至清單: