Parsware from zero to 100: one business app, every subsystem
The whole platform in one article. An empty tenant becomes a purchase-approval app running in Test, one subsystem at a time, and every other subsystem gets a chapter saying what it is for, how it works and where it fits. Read this first.

Abstract. Parsware is one platform for building and running business applications. This article builds one, a purchase-approval app for a demonstration company, and uses it to explain all 31 of the platform's subsystems. It starts with a map of the whole platform: the handful of ideas everything else is built from. Chapters 1 to 12 then take an empty tenant to a working app in Test, step by step, recorded in the real product: a publisher, three environments, a solution, a table, a form and a view, an app, a report, an approval process that runs and records every step, a branch written in BS Lang, and a drawn Studio app, all moved from Dev to Test as one package. Chapters 13 to 31 explain every other subsystem the same way: what it is for, how it works, and where it fits the same app, from option sets, plugin steps and security to portals, Custom APIs, custom code, storage, languages, the AI assistant and the move to Production. The article ends by following one purchase request through every part it touches, and with a one-page summary of the whole platform. Each chapter links to its full article.
This is Parsware from zero to 100, one subsystem per chapter. It starts with an empty tenant: Harbour Supplies, a demonstration company with nothing built yet, and Laura Bennett, its administrator. Twelve chapters later it has a purchase-approval app running in Test. Somebody asks to buy something, a manager approves it or not, and small requests approve themselves.
Chapters 1 to 12 were recorded as one film in the real product, and their pictures are frames from it. Chapters 13 to 31 cover every other subsystem. Each one says what the subsystem is for, how it works, how it fits the same app, and which article has the full walkthrough.
You don't need to have built anything to follow it. If you read it from top to bottom, you will know what every part of Parsware is, why it is there, and which part to reach for when you build something of your own.
Before chapter 1: the map
Parsware has a lot of parts, but they are all built from a few ideas. Learn these first, and every chapter below is one of them in detail.
A tenant is your organisation. Harbour Supplies is one tenant. Its users (the people who sign in) and its roles (names for jobs, such as Purchasing User) belong to the tenant, so one person has one account and one password everywhere.
An environment is a separate place inside the tenant. Harbour Supplies has three: Dev, Test and Prod. Each environment has its own database schema, its own records, its own address and its own members. Nothing leaks between them, not even through a bug, because a query against one environment simply can't see another's tables.
A solution is a package of everything you build. Tables, forms, views, apps, reports, processes, scripts, roles' permissions: each is a component, and every component belongs to a solution. A solution is built in Dev, then exported as one file and imported into Test and Prod. That is the only way work moves between environments. Nobody copies things by hand.
A publisher says who made a solution. Its short prefix, here hb, begins the name of
everything it makes, so two companies' work never collides in one environment.
There are two front doors. Makers build in the maker portal, which is the Admin Control Center. Everyone else opens the Platform Shell, the apps list at the environment's address, and uses what was built. A person who only uses apps never sees the maker portal.
Building and running are separate. What you design is saved as a plain document, with a published schema, so it can be checked, exported and compared like any text file. A process you change doesn't affect the runs already under way. A solution you change in Dev doesn't affect Test until you import a new version.
One scripting language: BS Lang. Where a rule needs code, on a form, on a button, on the server before a save, in a Custom API, in a process step, in a scheduled job or on a drawn screen, it is written in BS Lang, in the same editor. Only the functions on offer change from place to place.
Every request is checked three times. May this person open this app? What may they do with this table: create, read, update, delete? And which records does that reach: their own, their team's, their unit's or every one? Users, roles, teams and policies answer those three questions, and the server asks them on every request, whatever the screen showed.
| Idea | Belongs to | Travels between environments? |
|---|---|---|
| Users and role names | The tenant | No need: they are everywhere already |
| Records, files, teams, members | One environment | Never |
| Tables, forms, views, apps, reports, processes, scripts, role permissions | A solution | Yes, as one file |
| The prefix | A publisher | It is part of every name the solution carries |
Keep that table in mind. Almost every "why does it work like that?" in the rest of this article is answered by which row something is in.
1. Publishers
Who made it, and the prefix on every name.
Before anything is built, there has to be a publisher. A publisher says who made a solution. Laura
opens Publishers, chooses New, and adds Harbour Supplies with the prefix hb. That prefix
begins the name of every table, field and app the publisher makes (hb_purchaserequest,
hb_amount), so two companies' work never collides. It can't be changed later, because every name
is built from it.

Why does this matter on day one? Because an environment can hold solutions from several publishers
at once: yours, a partner's, a sample you imported to learn from. If two of them both made a table
called request, one would overwrite the other. With prefixes they are hb_request and
ct_request, and both live side by side.
A publisher also owns a range of numbers for the choices in its option sets (chapter 13), for the same reason. Every environment starts with a Default Publisher, but a company that builds anything it means to keep should have its own.
The full story is in Publishers and solutions.
2. Environments
Three separate places: to build, to try, and to run.
An environment is a separate place to work, with its own database schema, so data never mixes between them. Harbour Supplies gets three of them. Harbour Dev is where makers build, with a blue DEV banner. Harbour Test is where people try a finished version, with an amber one. Harbour Prod is where the business runs it. Production never accepts demonstration data, and it gets no banner. Each one sets up its own schema in a few seconds and has its own address.

Three environments is the usual pattern, and each has one job:
- Dev is where things change. Makers try ideas, break them and fix them, and nobody's real work depends on it.
- Test gets a finished version and nothing else. The people who will use the app try it there, on test data, before the business relies on it.
- Prod is the business. It changes only when a tested version is imported into it.
The banner colour is there so that nobody approves a real request in Test, or types test data into Prod, by mistake. Each environment's address is where its people open their apps, so a link to Test can never open Prod.
Being separate is the point. A record, a file, a team and a list of members always belong to one environment, and none of them moves when a solution does. Deleting an environment removes its schema and everything in it.
More in Environments that are actually separate.
3. Solutions
One package for everything we build.
Everything goes into a solution: one package of tables, forms, apps, reports and processes that moves between environments as one. In Dev, Laura creates Purchasing for the Harbour Supplies publisher. While she builds it, it is unmanaged, so anything in it can change. Exported as managed, it is sealed and versioned, and Test and Prod get that version. The open solution has its own menu: tables, option sets, apps, reports, processes and the rest.

The two states are worth understanding now, because the rest of the article depends on them:
- Unmanaged means this is where it is made. You can add, change and remove anything in it. Every environment also has a solution of its own, Main, for things that belong to that environment alone and are never meant to travel.
- Managed means this was installed from a package. You can't edit its components where it is installed, which is exactly what you want in Test and Prod: the version there is the version that was tested.
A solution has a version number, such as 1.0.0. Raise it before each export and every environment can tell you which version it has. Opened, the solution lists its components by kind, and each kind has its own designer. Everything in chapters 4 to 11 is built inside this one solution.
4. Tables
Purchase requests, and what each one holds.
Harbour Supplies needs purchase requests, so Laura creates the Purchase Request table. Its logical name gets the publisher's prefix, and its icon is a shopping cart. A new table starts with one field of its own, its name. Every table also keeps its owner, when each record was made, and its state. Laura adds Amount (a required decimal), Supplier (text), Status (an option set) and Justification (multiline text). Behind it, Parsware creates a real database table in Harbour Dev's own schema. Last, she turns on auditing for the table.

A table is the foundation of everything else. Forms edit its records, views list them, reports print them, processes move them through steps, and roles decide who may touch them. A few terms you'll meet everywhere:
- Display name and logical name. Purchase Request is what people read, and can be changed at
any time.
hb_purchaserequestis the table's identity, which scripts, queries and other systems use, and it never changes. - Field types. Each field has a type that decides how it is stored, shown and checked: text, whole number, decimal, currency, date, yes/no, option set, lookup, file, image and more. A lookup links a record to a record in another table, such as a request to its supplier's account.
- System fields. Every table has an owner (a person or a team), a state (active or inactive), a reason for that state, and the times it was created and changed. Security (chapter 19) reads the owner. You don't add them; they are always there.
- Required. A required field can't be saved empty, whatever saves the record.
Because the table is a real database table, not a document stored somewhere generic, lists, filters, totals and reports all run as ordinary database queries, quickly, however many records there are.
See Build your first table and view and Every field type, explained.
5. Forms and views
How a request is entered, and how the list reads.
Every new table comes with a form and a view, ready to shape. On the Information form, Laura gives the row two columns, a General section (Name and Amount) and a Details section (Supplier and Justification). The header strip stays in view on every tab: state, reason, owner and status. The status is read-only, because the approval process will set it. On the view, All Purchase Requests, she adds Amount, Supplier, Status and Created On as columns. Nobody writes any code for either.

A form is how one record is read and edited. It is made of tabs, each tab of sections, each section of fields in one or more columns. The header strip above the tabs holds what anyone opening a record asks first: where it is in its life, why, and whose it is. Fields can be read-only on the form while still being changed by a process or a rule, which is how the status works here.
A view is how many records are listed. It picks the columns, the order and a filter: All purchase requests, My open requests, Requests over 1,000. People can sort, search and filter further in the list, but the view is the starting point the maker chose.
A table can have several forms and several views, and each app (chapter 6) says which of them its people get. Forms and views are components of the solution, so they travel with it.
6. Model-driven apps
The app people open, and who may open it.
People never open the maker portal; they open apps. Laura creates Purchasing, ticks Takes part in business processes so its users see their task list, and puts the table in a menu group called Requests. In the Platform Shell, Harbour Dev's own address with its blue bar, the app's list is the view and New opens the form. Then comes who may use it. The Purchasing User role may create, read and update purchase requests, and the app is shared with it. Tom Fletcher, who manages purchasing, gets the role and is added to Harbour Dev as a member.

A model-driven app is called that because it is built from the model: the tables, forms and views already described. The app itself is mainly a navigation: groups in a menu, each listing tables, reports or screens, and a home page. Everything inside it is drawn by the platform from the metadata, so a field added to a form appears in the app with no other step.
Three steps hand an app to the people who need it, and each answers a different question:
- Share the app with a role. Sharing grants Open on the app. A new app is visible to makers and administrators only, which is the only safe default.
- Give the role table permissions. Opening an app doesn't let anybody read a table. The role's grid says what it may do with each table (chapter 19).
- Give people the role, and make them members of the environment. The Share panel lists People who get it, so you can see whether anybody actually does.
Tom now opens Harbour Dev's address, signs in, and sees one app: Purchasing. The environment may hold ten others; he sees none of them.
7. Reports
A report drawn on a canvas, placed in the app.
A report is a page you can print or save as a PDF. It starts with a question: a saved query called Purchase requests. The report, Request list, uses that query as its dataset and is drawn in the Graphic Designer: a title, a header, and a row that repeats once per request, bound to the name and the amount, shown as currency. Shared with the role and added to the app's menu, it runs in the Shell on live data.

A report has two halves that meet at a name:
- Datasets are the rows. Each one names a saved query (chapter 15) and is given a short name,
such as
requests. The report doesn't hold a query of its own. - The drawing is the page: text, lines, images, charts, barcodes and repeaters. A repeater repeats once per row of a dataset, and the text inside it is bound to that row's fields.
Because a report is drawn rather than generated, it prints exactly as designed: an invoice, a purchase order, a list with page headers and totals. It stores no data. Each time somebody opens it, the query runs with that person's permissions, so two people can print the same report and see different rows. Printed from an open record, a report can narrow itself to that one record.
See Create a report and bind it to a table.
8. The BPMS designer
A manager approves or rejects each request.
Harbour Supplies' rule is drawn as a process, Purchase Approval. First comes a coform, what the manager sees: two buttons, Approve and Reject. Reject is red and needs a comment, so a refusal always says why. Then the flow has three lanes: Requester, Manager and System. A start, Request submitted, leads to a user task, Approve request. From the task, one line goes to Mark approved and one to Mark rejected, two script steps of one line of BS Lang each, and both lead to Done. The process starts whenever a purchase request is created. The problems panel finds nothing wrong, so Laura publishes version 1.

A process is work that moves between people and may take days. It is drawn on swimlanes, and that's the one idea to hold on to: a flowchart says what happens, a process also says who. A lane is a who, such as a role, a team or the system, and a step belongs to the lane it sits in.
The designer's palette has a small set of shapes:
- Start and Finish, where a run begins and ends.
- Task, a step somebody does. A user task waits for a person; a script task runs BS Lang at once.
- Branch, which sends a run one way or another by a condition (chapter 10).
- Fork and Join, for steps that happen at the same time and wait for each other.
- Timer, which waits for a time or a period.
A coform is the short form a person decides on to finish a task. It isn't a form over a table: it asks only what this step needs, and its outcomes are the buttons. A button can require a comment, so a refusal always records why. A coform belongs to its process and travels inside it.
The problems panel checks the drawing as you work: a step nothing connects to, a branch with fewer than two ways out. Save keeps the drawing; Publish makes it a numbered version. Only published versions run.
9. The BPMS engine
A request goes through, and every step is recorded.
Nobody starts the process by hand. Laura creates a request for four standing desks, 1,850 from Northline Furniture, and the status is already Submitted. Tom signs in with his own account and finds Approve request in his task list. He opens the request read-only, and approves. A moment later the request reads Approved. In the maker portal, the process's Runs page has one row per run. Each run shows the route it took on the diagram, and under it, What happened: every step, in order, with its time.

The engine is what turns a drawing into work that happens. A process goes through three stages, and each has its own place:
- Design. You draw and save. Saving changes nothing that runs.
- Publish. The saved drawing becomes a numbered version. This is the only thing the engine reads.
- Run. Something starts a run of the latest version: a record being created, as here, a record being changed, a button on a record, or a maker testing it. The engine follows the drawing step by step.
When a step needs a person, it lands in the task list of everybody in that lane's role, with the record they need. When they choose an outcome, the run moves on. Each run keeps its history: who did what, when, and how long it waited.
The Runs page answers the questions that come once a process is live. Version says which version a run started on. Waiting on says who has its open task, since when, and when it is due. A run can be paused and resumed, or stopped with a reason, for a request raised by mistake. Turning a request down is not a stop: that is the approver's decision, and it should be recorded as theirs.
10. BS Lang
Small requests approve themselves, decided in code.
Tom doesn't want to approve a bag of coffee. So the line from the start to the task is replaced
by a branch, Over 1,000?. Each way out has a condition in BS Lang, Parsware's scripting
language. Over 1,000 reads the request's amount with getRecord and goes to Tom. 1,000 or less
goes straight to Mark approved. Published as version 2, it leaves runs already under way to finish
on version 1. Coffee for the office, 45, is approved with no task, and the run's history says it
went via 1,000 or less.

BS Lang will look familiar to anyone who has read JavaScript. It has variables (var), lists and
objects, functions (func), if, loops, and arrow functions for map and filter. It is stricter
in the places that cause bugs: function parameters have types, and reading past the end of a list is
an error rather than a quiet nothing, so a mistake shows up where it happens.
The language is the same everywhere; what changes from place to place is the set of functions on
offer. A form rule can show and hide fields. A server script can read records with getRecord, run
a saved query with runSavedQuery, refuse a save, or call an outside service. A process step can
read and set the record it is about. Learn the language once and every chapter below that mentions a
script uses it.
Every screen where you write BS Lang uses the same editor, which checks the script as you type, suggests the functions available in that place, shows what each one takes, and formats the code.
More in BS Lang in ten minutes.
11. Application Studio
A screen drawn on a canvas, on the same data.
The Purchasing app is built from metadata. A Studio app is drawn instead, screen by screen, on the same tables. Laura draws Request desk: a title, three text boxes (what is needed, the amount, the supplier), a Send request button, and a list of requests. When the screen opens it loads the requests, newest first, in one line of BS Lang. The button creates a purchase request, says it was sent, and reloads the list. Because it is an ordinary purchase request, the approval process runs on it too.

When should you draw a screen rather than use a model-driven app? A model-driven app gives you lists and forms that all look and work the same, with almost no effort, and that suits most work. A Studio app is for a screen that has to look a particular way: a front desk, a kiosk, a dashboard of numbers, a page with a company's own branding, or a website (chapter 23).
On the canvas you place controls (text boxes, buttons, lists, dropdowns, charts) and shapes, and each control can have BS Lang for what it does: when the screen opens, when a button is pressed, when a value changes. A part that appears on several screens, such as a top bar or a menu, is drawn once as a component and placed on each screen.
The two kinds of app are not separate worlds. Both run on the same tables, under the same security roles, and both are shared the same way. A request sent from Request desk is a record in the same table, so Tom approves it in the same task list, and it appears in the same report.
12. Export and import
A managed package, imported into Test.
Everything moves to Test the way all work moves in Parsware: as a solution. Export makes one file holding the table, form, view, app, report, process, role and Studio app. In Harbour Test, Import checks it, builds the table in Test's own schema and installs every part. Purchasing arrives managed, so nobody edits it there by accident. Test's Shell has an amber bar and an empty list, because data never travels between environments. A new request for visitor badges is approved at once: the process came along, branch and all, and so did the report and the Studio app.

What happens on import is worth knowing, because it is what makes it safe:
- Everything is checked first. Each component is validated against its schema, and against the environment it is going into. A form that names a field the table doesn't have is refused, not installed half-working.
- Components arrive in order. Option sets before the tables that use them, tables before the forms that show them, so nothing ever points at something that isn't there yet.
- The database follows. The table is created, or changed, in that environment's schema only.
- A process arrives published. An import is a deployment, not a draft, so the process runs at once. Each environment keeps its own version numbers, because each has its own runs.
- Data stays where it is. A package carries design, not records. A solution can deliberately carry a few rows it needs to work, such as configuration, and can offer demonstration data you choose to import. Records people typed never travel.
Chapter 31 finishes the story: the same file goes on to Production.
13. Option sets
One list of choices, defined once and used everywhere.
Request Status in chapter 4 was an option set: Submitted, Approved and Rejected, each with a colour, so a list reads at a glance. An option set is defined once and used on any table. Each option gets a number from the publisher's range that never changes, so renaming one is safe and two publishers' lists never collide.

When does a choice belong in an option set, and when in a table? Use an option set for a short list you decide, which changes only when you change the app: statuses, priorities, delivery modes. Use a table and a lookup when the list is data that grows because people add rows: suppliers, departments, products.
Each option has a label, an optional colour and icon, and a value. The value is what a record stores, and it is the part that never changes:
- Renaming is safe. Correct Submitted to Sent and every request that said Submitted now says Sent, because they all held the same number and still do.
- You never type a value. The platform assigns it from the publisher's option value base, a range such as 270160000 upwards that belongs to that publisher alone.
- Removing an option that records use is refused, because those records would hold a number that means nothing. Move them to another option first.
Add a fourth option to the set and every field that uses it, on every table, offers it at once. There is one list to maintain, not one per table.
Full article: Option sets: reusable choice lists.
14. Record files and images
A quotation or a photo, kept on the request itself.
A File field holds a document and an Image field holds a picture, each belonging to one record. A purchase request could carry the supplier's quotation. The file follows the record's own permissions, and deleting the record deletes the file. A table can also name one image as its record image, and every list and lookup then shows that picture beside each record.

The details that matter in daily use:
- A file waits for Save. Choosing a file doesn't store it yet. Close the form without saving and the record keeps what it had. Download always gives the file that is stored, Replace picks another, and Remove empties the field when you save.
- A picture is shrunk in the browser to at most 1024 pixels on its longest side, so a photo straight from a phone becomes a sensible size without anyone resizing it.
- There is a size cap: 4 MB for a File field and 1 MB for an Image field. Past it, the file goes to object storage (chapter 28) where that is switched on, or is refused with a message saying why.
- Nobody configures anything. No folder, no bucket, no permissions: the field inherits all three from the record it is on.
Where does the file live? In a table of files inside the same environment's schema as the record. The field holds a short reference to it. That is why the file is read with the record, needs no second service, goes when the record goes, and can never be read from another environment.
Full articles: Files and pictures on a record and A picture and a second line beside every record.
15. Queries
One question, asked once, answered everywhere.
The report in chapter 7 read from a saved query. A query is one question with one definition. A report fills its table from it, and a server script runs it by name. So correcting the question once corrects every answer that names it, in this environment and in the next one the solution goes to. A query can also count and sum. It can group requests by supplier, keep the groups that pass a test, and take the top five, with the database doing the arithmetic.

Why save a question at all? Because when every report and script keeps its own copy, the copies drift. Somebody tightens the report's filter and not the script's, and six months later two numbers disagree and nobody knows which is right. A saved query is the cure: one question, under one name.
A saved query has:
- A table, columns, a filter and an order, built in the query designer, with Preview to see what it returns today.
- A logical name that never changes, such as
hb_open_requests. Reports and scripts store that name, so it must stay put. - Totals, if you want them. Tick Return groups instead of records and choose measures (count, sum, average, minimum, maximum), up to two keys to group by (a date can group by day, week, month, quarter or year), and conditions on the measures, such as suppliers with at least five requests. Then sort by a measure and cap the result for a top five.
A report names a saved query as its dataset. A server script calls runSavedQuery('hb_open_requests').
A custom app calls it through the runtime. A query always runs with the permissions of whoever is
asking, so it never shows anybody more than their role allows. And it is a solution component: on
import it is checked against the new environment's tables before it is installed.
Full articles: Save a query and use it everywhere and Totals and groups.
16. Business rules
The form responds as you type.
A business rule (form rule) runs in the browser and changes the form as somebody fills it in. On a purchase request, choosing Rejected could show a required reason, or an amount could lock once a request is approved. A rule is a few lines of BS Lang. It makes the form helpful, but it doesn't decide what may be saved. That is chapter 17's job.

A form rule answers one of three moments: when the form opens, when a field changes, or when the form is saved. In it you can show or hide a field, enable or disable it, make it required, fill in a value, or stop the save with a message. Rules are found on the form, under Events. Because nothing goes to the server, they react instantly.
Parsware has several places for logic, all written in BS Lang, and they are not interchangeable. The question that settles most cases is: can it be skipped?
| You want to… | Use | Runs |
|---|---|---|
| Show, hide, require or fill in a field as someone types | Form rule (this chapter) | In the browser, on the form |
| Do something when someone presses a button | Command button | In the browser |
| Refuse or change a save, whatever saved it | Plugin step (chapter 17) | On the server, inside the save |
| Let another system ask or tell you something | Custom API (chapter 24) | On the server, when it is called |
| Do something every night, or for a long time | Function (chapter 18) | On the server, on a schedule or when started |
| Hand work from one person to the next | Process (chapters 8 to 10) | On the server, for days if it must |
A form rule runs only on a form. Somebody who imports a spreadsheet, calls the API or uses another screen never meets it. So the usual pattern is both: a form rule so the form tells people as they type, and a plugin step so the rule holds anyway. Write the logic once, as a shared solution script, and use it in both.
Full articles: Business logic in Parsware: which one to use and A client rule: an expense approval.
17. Plugin steps
Rules the server keeps, however a record is saved.
A plugin step runs on the server on every create, update or delete of a table, whatever saved the record: a form, an import, a Custom API or a process. It is registered against a table, a write, a stage and an order. Before the write it can refuse the save with a message, for example a request over 10,000 needs a justification. After the write it can do more work. Work that runs after the response is tried again on its own if it fails, and then waits on a list for somebody to retry it.

Each setting decides one thing:
| Setting | What it decides |
|---|---|
| Table | Which table's writes the step watches |
| Write | Create, Update or Delete; one step watches one kind |
| Stage | Before validation, Before the write or After the write |
| Runs | Before the response, or after it has gone, in the background |
| Order | Among steps on the same table, write and stage, the lowest runs first |
| Running | Untick it to switch the step off without deleting it |
The stage is the setting that matters most. Before validation and Before the write run inside one database transaction with the write itself. A step there can change the record's values or refuse it, and a refusal from any step undoes everything: the record, and whatever earlier steps wrote. Nothing half happens. After the write, the record is already stored; the step can act on it, but it can't take the save back.
In the background is for slow work nobody should wait for, such as telling a warehouse system. The save answers at once and the step runs a moment later. If it fails, it is tried five times, waiting longer each time (1 minute, then 5, then 25, then about two hours), which rides out a service being restarted. After the fifth failure it goes on the Failed background work list in the Admin area, with its last error and the record's values as they were when saved. Fix the cause, press Retry, and it runs again as the person who saved it, with five fresh attempts.
A server script also has limits: it can't run forever, and when it uses up its budget it stops with a message saying so. That keeps one faulty rule from slowing every save in the environment.
Full articles: A server rule: an expense limit, Plugin steps: before and after a save and When background work fails.
18. The function host
Long jobs, started by hand or on a schedule.
Some work is too long to run inside a save: closing a month, chasing every request still waiting after a week. A function is BS Lang code that the Functions service runs for as long as it needs, either started with Run now or on a schedule. Each run is kept, with its log. A failed run is marked Failed and run again by a person, never retried on its own, so nothing happens twice without somebody deciding it should.
Where a plugin step answers a record was saved, a function answers it is one in the morning or somebody pressed a button. It can also be started by a Custom API or a plugin step. Nobody waits for it, and it can take far longer than a save is allowed to.
At one in the morning nobody is signed in, so a scheduled function runs for the tenant rather than for a person, and anything it writes is recorded as written by the function. That keeps the audit log (chapter 21) honest: a change made at night by a job is never blamed on whoever last edited it.
For Harbour Supplies, a function could run every Monday morning, find every request that has waited for Tom for more than a week, and write a list for finance to read, without anybody remembering to.
19. Security roles
What each person may do with each table, and with whose records.
Chapter 6 gave Tom one role. A role grants each table separately: create, read, update and delete. Each grant has a level: only my own records, my team's, my business unit and those below it, or every record. The same role can let a clerk see only their own requests and a manager see the whole department's. Data policies go one step further and decide which records a grant reaches, and when a save is refused.

The most important thing to understand about roles is that they are split in two:
- The role's name belongs to the tenant. Tom holds Purchasing User in Dev, Test and Prod alike, and is given it once, on the Users page.
- What the role may do belongs to a solution, one environment at a time. The grid is part of the Purchasing solution, so it travels with it, and an import is how Prod gets the same grants as Test.
Each cell of the grid is either Not granted or a policy, which says which records the permission reaches. Narrowest first: No records, Records I own, Mine and my teams', My teams' records, My unit, My unit and below, My unit and above, My whole branch, Every record. The first four are about who owns a record; the unit ones are about where the owner sits in the organisation chart.
Each verb has its own policy, and the most useful roles mix them. A clerk might read every request but update only their own: knowing a request exists is harmless, changing somebody else's isn't.
When none of the built-in policies says what you mean, write a data policy:
- Which records decides which records exist for the person asking, such as requests raised in my units. It is turned into part of the database query, so excluded records never leave the server and opening one by its address answers not found.
- A rule on each record judges a record as it is saved, in BS Lang, and refuses with a message, such as nobody approves their own request.
The screen follows the same answer: a person who may not create sees no New, and one who may not update sees no Save. The server checks again anyway, on every write, however the request arrived.
Full articles: Security in Parsware, Security roles in practice, Record access: whose records you see and Data policies.
20. Teams and environment access
Groups of people, and who may enter each environment at all.
A team groups people. A record can belong to a team rather than to one person, and a team can hold a role. When a team gains a role, its members' open sessions gain it on their next refresh, with no sign-out. Separately, each environment has its own members, at the level of User, Maker or Admin. Tom joined Harbour Dev as a user in chapter 6. Being able to build in Dev never means being able to touch Prod.

A team and a role are both lists of people, which is why they are easy to mix up. They answer different questions:
| A team | A role | |
|---|---|---|
| Answers | Which records somebody reaches | What somebody may do |
| Can own records | Yes | No |
| Belongs to | One environment | The tenant; its permissions come from a solution |
| Travels in a solution | No | Its permissions do; who holds it doesn't |
Putting somebody in a team never gives them a permission by itself. What it changes is the reach of the permissions they have: a policy of my teams' records finds more once they're in the team. A Purchasing team could own the requests nobody has picked up yet, and everybody in it would see them, with nothing shared by hand.
Environment access is the outermost door. Before roles are even consulted, a person must be a member of the environment. User may open its apps, Maker may also build in it, and Admin may also manage it. Laura is an Admin everywhere; Tom is a User in Dev and Test; the makers who build Purchasing are Makers in Dev and nothing in Prod.
Full article: Teams.
21. Auditing
Who changed what, and when.
Chapter 4 switched auditing on for purchase requests, so every change since then is recorded: who made it, to which record, and what each field was before and after. The Audit Log reads it for the whole environment, narrowed to one table, to one record's history, or to what processes changed on their own.

Each row of the log is one create, change or delete, with:
- When it happened, in your time zone.
- Table and Record: paste a record's id into the filter to see that record's whole history.
- Actor: the person who made the change.
- Agent: the rule or process step that made it on somebody's behalf, when there was one. So when the approval process set a request to Approved, the log says the process did it, for Tom.
- Changed: each field, before and after.
The log is recorded by the database itself, so no save can slip past it, whichever way it arrived. Only tables with auditing on are recorded, from the moment it was switched on; earlier changes aren't added afterwards. That is why Laura switched it on when she created the table, not later.
Full articles: Who changed what: auditing and The audit log.
22. Notifications
An email when something happens.
Admin → Notifications sends email the moment something happens. When somebody signs up, as a user or on a portal, the tenant's administrators hear about it. For a table you choose, a record created, changed or deleted goes to the addresses on the rule, so finance could hear about every new purchase request.
Notifications are deliberately simple: they say this happened, to the people who need to know, with no drawing and no code. Sign-up emails are set for the tenant. Table rules are set for each environment and never travel in a solution, because what matters in Prod is rarely what matters in Dev.
When you need more than this happened, such as an email written for one request, sent only when the amount is over a limit, use one of the other tools: a plugin step after the write, a process step, or a function. Notifications cover the common case so that nobody has to build it.
23. Portals
A website for suppliers and customers, with their own sign-up.
A portal is a Studio app published at an address of its own, for people outside the company. Harbour Supplies' suppliers could see the requests placed with them. Visitors are portal users, not platform users: they sign up, confirm their email and sign in. A portal reads only through Custom APIs, and one rule on the table decides whose rows each visitor sees, for reads and writes alike. A portal can have its own domain too.

Three rules make it safe to put your data on the internet, and they don't vary:
- A portal reads and writes only through Custom APIs (chapter 24), never a table directly. A Custom API is a contract somebody wrote on purpose, so drawing a screen can never put a table on the internet by accident. The portal lists exactly which APIs it may call.
- Its visitors are portal users, a separate kind of account scoped to that portal, with no Shell, no maker portal and no platform role.
- A rule on the table decides whose rows they see, such as the supplier on the request is the visitor's company. It belongs to the table, not to any one API, so every API, including one written next year, is narrowed the same way. A visitor in no company matches nothing, not everything.
Who can open it is either Anyone, for a landing page or a contact form, or People who sign in. Signing up has the checks you would expect: a small proof of work in the browser that stops scripts making accounts in bulk, and an email link, good for 24 hours, that must be followed before the account can be used. Visitors can also turn on two-step sign-in.
Full articles: A customer portal on your own data, Whose records a visitor sees and Your own domain.
24. Custom APIs
Your own endpoints, for other systems.
A Custom API gives another system one address to call, and that address keeps its shape while your tables change. A supplier's system could create a purchase request, or ask for its status, without knowing anything about tables. Each API has a contract and a BS Lang script behind it. It is versioned, so a second version can answer beside the first, and it has a generated OpenAPI description.

Why not let the other system read the table? Because the day you rename a column, it stops working. A Custom API puts a contract in between. Each part of it is a promise to the caller:
- Version, method and route, such as
GETrequests/{id}, served at/api/hb/v1/requests/{id}, with your publisher's prefix in the address. A braced segment is a value the caller supplies. - Required scope: what the caller's app registration (chapter 25) must hold, such as a read scope for a call that only reads.
- What it answers with: JSON, text or an HTML page.
The script behind it reads the caller's input with getInput, does its work (read a record, run a
saved query, save a record) and answers with setOutput, or with a status such as 404 when nothing
was found. It runs as the caller, so it can do nothing the caller couldn't, and a record it saves
still goes through that table's plugin steps (chapter 17). When the shape must change, publish version
2 beside version 1, and move callers over at their own pace.
Full articles: Connecting Parsware to your other systems and Publish a Custom API.
25. App registrations
An identity for every system that calls in.
Before another system can call Parsware it needs an identity of its own: an app registration, with a client id, a secret, the scopes it may use and the role it holds. It trades the secret for an access token, once an hour, and sends the token with each call. So the supplier's system can do exactly what its role allows, and nothing else.

The exchange is one request to the platform's token endpoint, the standard client credentials flow: the system sends its client id, its secret and the scopes it wants, by name, and gets back a signed token. The token says which application this is, which organisation it belongs to, which role it holds and which scopes it carries, and it expires after an hour. Every service checks it on every call.
Two details save a lot of puzzling:
- Ask for scopes by name. A token requested without any comes back holding none, and every call made with it is refused.
- The role decides which records. An app registration is held to its role's policies exactly as a person is. Give the supplier's system a role that reads only what it should.
An app registration is for a system. People sign in as themselves, and portal visitors sign in to their portal; neither ever uses a client secret.
Full articles: Register an external app and Get an access token.
26. Custom controls and custom apps
Your own React code, packaged inside the solution.
When a screen needs something tables, forms, views and drawn screens can't express, you write it in React. A custom control is one component that stands in for a field's editor. A custom app is a whole screen opened from the Shell like any other app. Each is built on your own machine, packed into one file, and uploaded once. It travels in the solution, code and all, and an altered copy of the file is refused on import.

A custom control has a small contract with the form. The form gives it the field's current value, an onChange to report an edit, the field's metadata (its label, type, whether it is required) and the platform's runtime. The control draws the value and reports changes; it never keeps its own copy and never saves the record. That is why Save, Cancel, required checks and form rules all work on it exactly as on a built-in field.
A custom app gets the same runtime: who is signed in, the records they may read and write, saved queries. It runs inside the Shell, sharing its session, so the person never signs in twice.
Both are built with ordinary tools, then packed by the platform's packing tool into one archive. That archive is what you upload and what travels in the solution, with a hash of its content. If a single byte differs on import, the import stops and undoes what it had done, so a damaged or altered file never reaches Test.
Full articles: Build a custom control, Build a custom React app and Custom code travels in the solution.
27. Web resources
Files that belong to the app: pages, styles, scripts, images.
A web resource is a file stored in a solution and served by the platform: a stylesheet, a script, an image or a page. A printable purchase order page with its own logo could be four of them. They move between environments with the solution, like everything else.

A web resource's logical name can contain slashes, which is how files end up in one folder:
hb_/order/page.html, hb_/order/style.css, hb_/order/logo.svg. Each gets an address, and a
page can link the others by relative address, as it would on any web server. Text files can be typed
in or uploaded; images are uploaded. To change a set of files, upload the folder again.
So where does a file go? Parsware has three places, and each is for one kind of file:
| The file is… | It goes in | Travels in the solution? |
|---|---|---|
| Part of the application: a page, a style, a logo | A web resource (this chapter) | Yes |
| Part of one record: a quotation, a photo | A File or Image field (chapter 14) | No, it is data |
| A business document at volume: exports, scans | Object storage (chapter 28) | No |
Full article: Web resources.
28. Object storage
Business documents at volume.
Large files don't belong in a record. A file too big for the environment's database moves to object storage on its own, and the form, Download and who may read it all stay the same. Integrations keep their files there too: a month of purchase requests exported as a CSV file, for example, waiting for finance to collect it. Storage in the Admin Control Center shows every bucket, what is in it and how much room it takes.

Object storage is a standalone service that speaks the S3 protocol, so a deployment can point it at any S3-compatible store. It is addressed by bucket and key, like a very large shared drive.
When a record's file goes over the cap (chapter 14), nobody is asked anything. The record keeps its entry, with the file's name, size and checksum, and only the bytes move. Their key carries the tenant, the environment, the table, the record and the field, which is what makes deleting a record, a table or an environment remove its files too.
A script can write files there as well: a Custom API or a function can export a month of requests as a CSV file, and hand out a download link that the storage service serves. Who may read a file is decided by whatever hands it out, before the store is ever asked.
Full articles: Large files: where they go, Export files to object storage and What's in object storage.
29. Languages and appearance
Seven languages, two calendars, and each person's own look.
Parsware runs in seven languages, two of which, Persian and Arabic, read right to left. Choose one and the maker portal, the designers and every app mirror. Every date can be shown in the Gregorian or the Persian (Jalali) calendar, chosen separately from the language. And each person chooses dark or light, an accent colour, a font and a text size for themselves. Every screen follows.

The seven are English, German, Spanish, French, Dutch, Persian and Arabic. Each person picks theirs from the top bar, and nothing in the solution changes. In right-to-left languages the navigation moves to the right and lists, forms and command bars start from the right. What a maker typed in another language, such as an English table name, stays readable inside the mirrored page. A drawing on a Studio canvas doesn't flip: it is laid out the way it was drawn. Every screen also has a Help link to its own page on the help site, in the same language.
Appearance is a personal choice, not the tenant's: dark or light, a theme (Slate or Graphite), an accent colour (any colour, from which the platform builds its lighter and darker shades), one of five typefaces or a font installed on your computer, and Small, Medium or Large, which scale the whole interface rather than just the text.
Full articles: Persian and Arabic, right to left, Persian calendars and date formats and Themes, accent colours and fonts.
30. The AI assistant
An assistant that acts as you.
Settings → AI connects the tenant's own AI provider. The maker portal's home page then has an assistant you can ask about an environment in plain language. It acts as you, so it can do nothing you couldn't do yourself. With Allow changes off, it only reads and explains. With it on, it can create and edit solutions, tables, fields, apps and users, and it never deletes anything. Every designer's AI button uses the same connection.

The important word is as you. The assistant's tools run in your browser, under your session, with your roles. It doesn't have an account of its own with wider rights, so asking it to do something you're not allowed to do fails exactly as it would if you tried it yourself.
The connection belongs to the tenant: it is your provider, your model and your key, saved once under Settings → AI. The designers use the same connection for their AI buttons, so there is one place to set it up and one place to switch it off.
31. Managed solutions
From Test to Prod, and every version after.
The last step is the one chapter 12 already showed, one environment further on. Raise the solution's version, export one file, and import that same file into Harbour Prod, where the new version replaces the old one in place. A managed solution adds a layer on top of what it touches, so uninstalling it takes away exactly what it brought and nothing anybody built themselves. Environment variables give each environment its own settings, like a test service in Test and the real one in Prod, without anybody editing a script.

This is how Harbour Supplies will work from now on:
- A maker changes the Purchasing solution in Dev.
- They raise its version, say to 1.1.0, and export it.
- The same file is imported into Test, where the people who use it try it.
- When Test is happy, the same file, not a rebuilt one, is imported into Prod.
Layers are what make step 4 safe. A managed solution doesn't overwrite a table; it adds its version on top of what was there, and what you see is the layers merged. Two solutions can each add their own columns to the same standard table, and both sets survive. Uninstalling a solution removes its layer, and the table goes back to what it was without it, keeping anything anybody built themselves. Importing an older version over a newer one is refused unless somebody says so on purpose.
Environment variables split a setting in two. The declaration (there is a supplier service) belongs to the solution and travels. The value (here is its address) belongs to the environment and never travels: an import doesn't carry it and doesn't overwrite it. A freshly imported variable says Not set until somebody in that environment sets it. So Test talks to the supplier's test system and Prod to the real one, with the same script.
Full articles: Moving work from Dev to Test to Prod, Managed layers and clean uninstalls and Environment variables across environments.
One request, end to end
Here is the whole platform at work on one request, so you can see how the parts meet. A new member of staff, Grace Turner, needs a laptop for 1,400.
- Grace signs in to Harbour Prod's address with her tenant account. She is a member of the environment (chapter 20) and holds Purchasing User (chapter 19), so the Shell shows her the apps shared with that role (chapter 6).
- She opens Request desk, the drawn Studio app (chapter 11), fills in the three boxes and presses Send request. The button's BS Lang (chapter 10) creates a record.
- The save is checked on the server. Her role may create requests; a plugin step (chapter 17) checks the amount has a justification. All of it happens in one transaction, so a refusal would leave nothing behind.
- The record lands in the Purchase Request table (chapter 4), in Prod's own schema (chapter 2). Its status is an option set value (chapter 13). She could have attached the quotation as a file (chapter 14).
- The audit log records it (chapter 21), and a notification rule emails finance (chapter 22).
- The approval process starts by itself (chapter 9). The branch (chapter 10) sees 1,400 is over 1,000 and sends it to the Manager lane. Approve request appears in Tom's task list.
- Tom approves on the coform (chapter 8). The script step sets the status to Approved; the audit log names the process as the agent, acting for Tom.
- Finance prints the Request list report (chapter 7), whose saved query (chapter 15) now includes Grace's laptop, and reads only what their role allows.
- The supplier sees it on the portal (chapter 23), through a Custom API (chapter 24), because the data policy on the table matches their company, and their system can confirm delivery through another API, using its own app registration (chapter 25).
- On Monday, a scheduled function (chapter 18) lists every request still waiting, and writes the export to object storage (chapter 28) for finance.
Not one of those steps needed a part that was built just for it. Every one is one of the 31 chapters, doing its own job.
The whole platform on one page
| # | Subsystem | The question it answers |
|---|---|---|
| 1 | Publishers | Who made this, and what prefix do its names carry? |
| 2 | Environments | Where does this run, kept apart from everywhere else? |
| 3 | Solutions | What do we build, and how does it move as one? |
| 4 | Tables | What data do we keep, and of what types? |
| 5 | Forms and views | How is one record edited, and how are many listed? |
| 6 | Model-driven apps | What do people open, and who may open it? |
| 7 | Reports | What do we print? |
| 8 | BPMS designer | Who does what, in which order? |
| 9 | BPMS engine | Where has each piece of work got to, and what happened? |
| 10 | BS Lang | What does the code say, wherever code is needed? |
| 11 | Application Studio | What does a screen look like when it must look a particular way? |
| 12 | Export and import | How does finished work reach the next environment? |
| 13 | Option sets | Which fixed choices are there? |
| 14 | Record files and images | Which document or picture belongs to this record? |
| 15 | Queries | What is the question, defined once? |
| 16 | Business rules | How does the form help as people type? |
| 17 | Plugin steps | Which rules hold whatever saves a record? |
| 18 | Function host | What runs on a clock, or for a long time? |
| 19 | Security roles | What may each person do, with which records? |
| 20 | Teams and environment access | Which groups own work, and who may enter at all? |
| 21 | Auditing | Who changed what, and when? |
| 22 | Notifications | Who hears when something happens? |
| 23 | Portals | What do people outside the company see? |
| 24 | Custom APIs | What may another system ask or tell us? |
| 25 | App registrations | Who is that system, and what may it do? |
| 26 | Custom controls and apps | What do we write in React when nothing else will do? |
| 27 | Web resources | Which files are part of the application? |
| 28 | Object storage | Where do large files and exports go? |
| 29 | Languages and appearance | In which language, calendar and look? |
| 30 | AI assistant | Can I ask, in plain words, and have it done as me? |
| 31 | Managed solutions | How do new versions reach Prod, and come out cleanly? |
Where to go next
Every chapter above has a series of its own. Start here lists every article in reading order. A good path from here: build your own table and view, share an app with a role, then draw your first process. And if your business has a problem nobody has solved yet, tell us about it.