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 在 記錄器 欄。
執行這些步驟可儲存 com.adobe.granite.workflow.core 包。 點選 + 並將以下程式包名稱添加到清單中: