Getting started¶
This tutorial builds a small application in about an hour: Example Microfinance Bank’s small loans. A customer’s request is described, a loan officer reviews it, and the case ends approved or declined. On the way, it uses each main part of the builder once.
You need Python 3.12 and Git, on Linux, a Mac, or Windows inside WSL, and the
flowassembly package from your FlowAssembly supplier.
Building applications says how to install it.
1. Start the project¶
fa new small-loans
fa studio small-loans
The builder opens in your browser. Keep the terminal open while you work.
The new project already works: one person describes a request, and the case ends. Try it first. Open Processes, open request, and choose Run this process. Act as the requester, fill in the form, and watch the case reach its end.
2. Add the loan officer¶
Open Project, then Roles, and add a role:
id
loan_officer, title Loan officer;tick that its people may work on tasks.
3. Say what a case keeps¶
Open Case data. The case already keeps a summary. Add two fields:
amount, a Number: how much the customer asks for;approved, a Yes or no: the loan officer’s decision.
4. Make the forms¶
Open Forms.
Open request_details and drag a number field onto it, with the key
amountand the label “How much is the loan?”. A field’s key is the case data field it fills.Choose Add a form, name it
loan_review, and drag a checkbox onto it with the keyapprovedand the label “Approve the loan”.
5. Draw the process¶
Open the request process.
Add a lane for the Loan officer.
After “Describe the request”, add a task in the loan officer’s lane named “Review the loan”, and choose the
loan_reviewform for it on the right.After the review, add an exclusive gateway, “Approved?”.
Draw two flows out of it, each to an end event: “Loan approved” and “Loan declined”. Delete the old end, “Request submitted”.
Give each flow its condition:
approvedto “Loan approved”, andnot approvedto “Loan declined”.
Anything still missing is listed under Problems, at the foot of the builder. Choose a problem to go to it.
6. Try it, and keep it as a test¶
Choose Run this process. Describe a request for 250,000, then, as the loan officer, approve it. The case should end at “Loan approved”. Choose Save as a test. Run it once more, decline the loan, and save that as a test too.
The tests run whenever the project is checked, so a later change that breaks either path is caught.
7. Check it and commit¶
cd small-loans
fa validate . && fa test .
git add -A && git commit -m "Small loans: a loan officer reviews each request"
fa validate checks the project is complete and consistent; fa test runs
your two tests.
Where next¶
Building applications: decisions, scripts, connections, documents and emails, and how a project is released.
What builders can do: each part of the builder, with its steps and an example.
To see a larger application, start one from FlowAssembly’s reference:
fa new example --from reference.When something does not work as this page says, see Getting help.