Forms工作流程步驟提供詳細記錄,以便您輕鬆偵錯工作流程相關問題。 啟用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 封裝。 點選 + 並將下列封裝名稱新增至清單: