uof_custom_preview_workflow
Preview the approval workflow path and signers by simulating a form submission with the same parameters as the actual apply action, ensuring correct routing before real submission.
Instructions
模擬簽核流程走向,不會真的起單。參數與 apply_form 完全相同。
何時使用:呼叫 apply_form 正式起單之前,用相同參數先驗證流程與簽核路徑是否正確。 註:網頁起單的表單(如採購單)改以「試填到送出前」的填寫驗證代替(其簽核路徑於送出時的確認視窗呈現)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | 欄位值對應 {fieldId: 值},可留空 | |
| comment | No | 申請者意見(選填) | |
| urgent_level | No | 緊急程度:0 緊急 / 1 急 / 2 普通 | 2 |
| form_version_id | Yes | 表單版本代號,由 get_form_list 取得 | |
| applicant_account | Yes | 申請者帳號;web 起單表單必須等於目前 MCP 的 UOF_ACCOUNT | |
| first_signer_account | Yes | 第一站簽核者帳號(自由流程必填) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |