1.9 KiB
Implementation Plan — Phase 2: eSignature Envelope Creation
This is the live execution tracker. The agent reads and updates this every iteration. Check off tasks as they are completed (
- [x]). AddESCALATION REQUIREDblock at the top if stuck.
Tasks
-
Task 1 — Custom fields: Add 5 eSignature tracking fields to
Appraiser_Case__cobject metadata and updatepackage.xmlif needed. Deploy to verify. (FR-001) -
Task 2 — EnvelopeCreateResult class + createEnvelope() method: Add
EnvelopeCreateResultinner class andcreateEnvelope(Id caseId, String accountCode, String templateId)toDocusignESignatureService. (FR-002) -
Task 3 — Tests for createEnvelope(): Add test coverage in
DocusignESignatureServiceTest— success path (mock 201), failure path (mock 400), blank email guard. (NFR-001, TC-001, TC-002) -
Task 4 — persistEnvelopeResult() + CaseContext extension: Add
persistEnvelopeResult()toCLMAdminService. ExtendCaseContextinner class andgetCaseContext()SOQL to include the 5 eSignature fields. (FR-003, FR-004) -
Task 5 — Tests for persistEnvelopeResult(): Add test coverage in
CLMAdminServiceTest— verify fields written correctly,ESignature_Sent_At__cis set,ESignature_Completed_At__cis NOT written on a "sent" result. (NFR-001, TC-003) -
Task 6 — clmDocGenWorkbench UI: Add "eSignature Template ID" text input and "Send for Signature" button to
clmDocGenWorkbench. Button callscreateEnvelope()thenpersistEnvelopeResult(), shows result. (FR-005) -
Task 7 — Full deploy and test run: Deploy entire change set, run all four test classes, verify all pass. Confirm no regressions. Update
docs/CURRENT_STATUS.mdto reflect Phase 2 completion.
Completion
When all tasks are checked, output <promise>DONE</promise>.
Phase 2 plan created: 2026-04-09