You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "KRYSTALM7 (via GitHub)" <gi...@apache.org> on 2026/06/04 15:05:17 UTC

[PR] FINERACT-2442: Add loan origination domain enums [fineract-loan-origination]

KRYSTALM7 opened a new pull request, #9:
URL: https://github.com/apache/fineract-loan-origination/pull/9

   ## FINERACT-2442 — domain enums for LOS workflow
   
    Four core enums that drive the loan origination lifecycle.
   
   ### Enums Added
   
   - `LoanApplicationStatus` — 7 states with terminal/editable 
      helper methods and full Javadoc on every transition
   - `DocumentStatus` — 4 states with helper methods for 
      applicant action detection
   - `ApprovalDecision` — 3 decisions mapping directly to 
      status transitions
   - `RiskCategory` — 3 categories with score range bounds 
      and `fromScore()` factory method based on CGAP guidelines
   
   ### Design Decisions
   
   - All enums use `@Enumerated(EnumType.STRING)` compatible 
     naming — values match exactly what Flyway V1-V5 defined 
     in VARCHAR columns
   - Helper methods (`isTerminal()`, `isEditable()`, 
     `fromScore()`) keep business logic inside the enum — 
     no scattered if/else checks across the codebase
   
   ### Related
   - JIRA: https://issues.apache.org/jira/browse/FINERACT-2442


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2442: Add loan origination domain enums [fineract-loan-origination]

Posted by "KRYSTALM7 (via GitHub)" <gi...@apache.org>.
KRYSTALM7 closed pull request #9: FINERACT-2442: Add loan origination domain enums
URL: https://github.com/apache/fineract-loan-origination/pull/9


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org