Workflow & Form Architecture
Grant Application Platform for Public Sector
Built a configurable platform where public sector teams create grant application workflows without code. Each grant has different rules, fields, and approval steps - I designed a JSON-driven form engine that handles all the variation without hardcoded logic.

Every grant program is different: different eligibility rules, different required documents, different approval workflows. Hardcoding each one would be a maintenance nightmare. I built a system where admins define the grant structure in JSON, and the frontend renders the forms, validates the data, and routes applications through the right approval chain - all without touching code.
01 / The problem
Every grant is different
Public sector organizations run hundreds of grant programs. Each one has its own eligibility criteria, required documents, multi-step application process, and approval workflow. Some grants need 3 fields, others need 30. Some need manager approval, others need a 5-person committee.
If you hardcode each grant, you end up with hundreds of specialized components. When a grant manager wants to add a new field or change an approval step, you need a developer to write code, test it, and deploy it. That takes weeks.
The solution: make the grant structure configurable. Admins define the schema in JSON, and the system handles everything else: rendering forms, validating data, routing applications, managing approvals.
02 / How I solved it
JSON-driven form engine
I used Angular Formly to build a dynamic form engine. The grant schema is a JSON document that describes: what fields to show, what validation rules to apply, what conditional logic to use (e.g., "show field X only if applicant selected Y"), and what approval workflow to follow.
Here's the tricky part: conditional logic. Grants often have rules like "If the applicant is under 18, require parental consent. If they're applying for a business grant, require tax documents." These rules can be nested and complex. I built a rule engine that evaluates conditions against the current form state and dynamically shows/hides fields, changes validation rules, and even modifies the approval workflow.
The approval workflow is also configurable. Each grant defines a chain of approvers (e.g., manager → finance → director). Applications move through the chain, and each approver can approve, reject, or request more information. The system tracks the state, sends notifications, and escalates overdue approvals.
03 / The results
50% faster grant setup
Before this system, creating a new grant program took 4-6 weeks of development time. Now, grant managers can set up a new program in a few days by defining the JSON schema. That's a 50% reduction in setup time.
The real win is agility. When policy changes (and it always does), grant managers can update the schema themselves. Need to add a new field? Edit the JSON. Need to change an approval step? Update the workflow. No developer needed, no deployment required.
We processed 10,000+ applications through the system with zero critical bugs. The conditional logic engine handled all the edge cases correctly, and the approval workflow never lost track of an application.
04 / The architecture
Reactive forms + JSON schema
The core is Angular Reactive Forms, which gives us fine-grained control over form state, validation, and value changes. On top of that, Angular Formly provides the dynamic rendering: it takes the JSON schema and generates the form controls, wires up the validation, and handles the conditional logic.
The conditional logic engine is custom-built. It evaluates rules against the current form state and returns a set of actions: show/hide fields, change validation rules, modify the approval workflow. The engine runs on every form value change, so the UI updates in real-time as users fill out the form.
The approval workflow is a state machine. Each application has a current state (e.g., "pending manager approval"), and the workflow defines the transitions (e.g., "manager approves → move to finance approval"). The state machine ensures applications can't skip steps or go backwards without permission.
Evidence & further reading