Building and Extending a Loan Payoff Workflow
Modern banking processes are complex, highly regulated, and require full traceability. At the same time, teams need to deliver fast, adapt to changing requirements, and integrate new technologies like AI without re-architecting everything.
In this article, we demonstrate how a typical bank loan payoff request workflow can be implemented and easily extended using the codbex platform (Atlas). The demo project shows how BPM, forms, entity modeling, integrations, and AI services come together into a single, coherent solution.
👉 A full walkthrough of the implemented workflow and its extensibility is available in the accompanying video below.
The Business Scenario: Loan Payoff Request
The process we model is based on a realistic bank workflow for early or full loan repayment:
- A client visits a Financial Center and fills out a loan payoff request.
- A front desk employee:
- Accepts and validates the request
- Checks the account balance
- Notifies the client about early repayment fees
- A request (ticket) is created in the system.
- Credit Administration:
- Verifies contractual clauses
- Performs the repayment
- Closes the request or returns it for correction
- The client is notified about the completion.

This is a classic cross-departmental process with human tasks, system checks, approvals, notifications, and strict audit requirements — a perfect fit for BPM.
Why BPM Matters Here
Using BPM (Business Process Management) is not just about automation. In this scenario, BPM provides:
- End-to-end traceability of every loan payoff request
- Auditability – who did what and when
- Clear ownership across roles (Front Desk, Credit Administration, System)
- Process visibility – live instances, statuses, timers, and decisions
- Safe extensibility – changes without breaking existing logic
All of this is available out of the box in codbex Atlas.
The Implemented Workflow at a Glance
In the demo, we implemented the workflow as a Flowable BPMN process, orchestrated by codbex. The process is triggered automatically when a new loan payoff request entity is created.
High-Level Flow
- Start Event
- Triggered when a new loan payoff request is saved
- Account Balance Verification (User Task)
- Executed by a front desk employee
- Uses a form built with the codbex Form Builder
- Confirms whether sufficient funds are available
- Decision: Sufficient Balance?
- If insufficient → process ends gracefully
- If sufficient → continue with tax calculation
- AI Service Task: Calculate Taxes
- Uses AI to calculate applicable taxes based on the loan contract
- Demonstrates seamless AI integration in BPM
- AI Service Task: Generate Confirmation Email
- AI generates a customer-friendly email explaining the taxes
- Mail Task: Send Confirmation Email
- Automatically sends the generated email to the customer
- Customer Confirmation
- The process waits for customer confirmation
- Implemented via an event-based gateway with:
- Message event (customer accepts)
- Timer event (timeout)
- Create External Loan Payoff Ticket (User Task)
- Front desk employee creates a ticket in an external system
- Ticket number is captured via a form
- Service Task: Save Ticket
- Persists the external ticket reference
- Credit Administration Review (User Task)
- Contract clauses are checked
- Decision is made to proceed or reject
- Service Task: Perform Repayment
- Simulated in the demo
- Represents core banking integration
- Mail Task: Notify Customer
- Customer receives a completion notification
- Service Task: Close Request
- Loan payoff request entity is marked as CLOSED
- End Event
What This Demo Shows
This demo is intentionally designed to highlight platform capabilities, not just BPMN modeling:
BPM as the Backbone
- The entire process is traceable and inspectable
- You can see all process instances, their states, and history
- Every decision is explicit and auditable

Forms Without Boilerplate
- User tasks are connected to forms built visually
- Forms evolve together with the process
- No manual wiring of UI, backend, and persistence

Entity-Driven Architecture
- Database schema is generated automatically

- REST APIs are exposed automatically
- Administration UI is available out of the box

AI as a First-Class Citizen
- AI tasks are just service tasks in BPM
- Used here to:
- Calculate taxes
- Generate customer-friendly emails

- AI is integrated without complicating the process model
Extending the Workflow: A Key Demo Moment
A major goal of this demo is to show how easy it is to extend an existing process.
As a final step in the demo, we extend the workflow by:
- Adding a new Mail Task at the start of the process
- Sends an initial notification when the request is received
- No impact on the rest of the workflow
- Extending an Existing Form
- The account balance confirmation form is extended with a new field: bulstat
- No refactoring required
- Existing process instances remain unaffected
This demonstrates one of the biggest advantages of BPM-driven systems: change is localized, safe, and transparent.
Watch It in Action
In the video, we walk through:
- The live workflow execution
- User tasks and forms
- AI-generated emails
- Process monitoring and traceability
- Extending the process and forms in real time
Final Thoughts
This Loan Payoff Request demo shows how codbex platform enables teams to:
- Model real-world business processes
- Combine human tasks, system logic, AI, and integrations
- Maintain full transparency and auditability
- Adapt quickly to new requirements
All of this is achieved without deep plumbing work, letting teams focus on business value rather than infrastructure.
If you are exploring BPM, AI-assisted workflows, or low-code enterprise platforms, this demo is a practical example of how these concepts work together in real life.
💬 Questions or business inquiries?
We'd love to hear from you. Reach out via our contact page.