Implementation details :
1. When document is sent with senddocument=3, document will be saved with status as Draft.
2. Documents with draft status will not be visible for review and sign.
3. Once Send API is called, Status will be changed to initial from draft.
4. Draft documents will be visible on completed forms library.
3C's
Concern: Clicking save sends the document.
Cause: Once document is saved from embedded UI, it is actually sent to the candidate for review inside DMS system. However for CBAT system, there is a separate Send option which sends the document.
Correction: We have set draft status to the document sent from CBAT. Draft status documents will not be visible to candidate and on click of send, status will change to initial.
Files Affected:
- DMS\DMS.App\src\DMS_AppLogic\BuisnessLogic\DocumentData.cs
- DMS\DMS.App\src\DMS_AppLogic\BuisnessLogic\PersonData.cs
- DMS\DMS.App\src\DMS_AppLogic\Common\Routines\CommonRoutines.cs
- DMS\DMS.App\src\DMS_AppLogic\Common\Routines\Document.cs
- DMS\DMS.App\src\DMS_AppLogic\IntegrationLogic\CandidateProfile.cs
Environment: Preprod
Verified using API and DB
API: 1. api/candidate/custom/document/create
Senddocument: 3
2. /api/documents/send
Using documentrouting;
Not verified using CBAT
So, marking jira done.