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套件的除錯記錄。 點選+並將下列套件名稱新增至清單: