Parsware
All articles

Start here

Parsware Platform: an overview

What Parsware is and how its parts fit together, shown through one real application, from the tables underneath it to the phone screen, the approval process and the printed report.

The Parsware process designer in dark mode showing a capital request approval drawn in four swimlanes, next to the title "Parsware Platform: an overview"

Parsware is an app platform for business applications. You describe the parts of an application: the data it keeps, the screens people use, the steps work goes through, and the reports it prints. The platform runs it as an app your people sign in to, on servers you choose.

This overview follows one real application through every part of the platform. Capital planning is a sample that ships with Parsware. Someone raises a funding request on a phone, the amount decides who approves it, the decision is recorded, and finance prints the budget position. Every picture below is that application, running.

This is the place to start. Every other article on this blog assumes you have read it.

Two places: where you build, and where you work

Parsware has two front doors. Makers build in the maker portal, the Admin Control Center. Everyone else opens the apps list and uses what was built.

The Parsware apps list in dark mode, showing model-driven apps such as Capital planning, Asset Tracker and Leave Approval Process, and drawn Studio apps such as Capital request

The apps list shows every app the signed-in person may use in this environment. There are two kinds: model-driven apps, built from tables, forms and views, and Studio apps, whose screens are drawn. Both run on the same data and the same security.

The Admin Control Center home page, with the assistant box and cards for Solutions, Users, Roles, Teams and the other administration areas

The maker portal's home page leads to everything else: solutions to build in, and users, roles, teams and environments to administer. It also has an assistant you can ask about the environment in plain language. With Allow changes off, it only reads and explains. With it on, it can create and edit solutions, tables, fields, apps and users, acting as you.

Environments that are actually separate

Work happens in environments, such as Development, Test and Production. Each environment gets its own database schema, so data from one can't leak into another even through a bug.

The Environments list, whose subtitle reads "Each environment gets its own isolated data schema", with the Development environment and its address

Each environment also has its own address, which is where its people open their apps.

Everything travels in a solution

Nothing is copied between environments by hand. An application lives in a solution, a versioned package that is exported from one environment and imported into the next. Capital planning arrived in this environment exactly that way:

The import dialog for Capital planning, end to end 2.0.0, with Include demonstration data (198 rows) ticked

A package can carry rows as well as design. Here the solution brings three rows of configuration it needs to work, which always come with it. It also brings 198 rows of demonstration data, which you choose whether to import.

The Capital planning solution's overview: tabs for 6 tables, 9 option sets, 1 app, 2 saved queries, 2 reports, 1 Studio app, 4 roles and 1 process

Opened in the maker portal, the solution lists what it contains: six tables, nine option sets, an app, two saved queries, two reports, a Studio app, four security roles and one process. Everything a maker builds is a named, versioned part of a solution. Every name starts with the publisher's prefix, here par_, so two solutions never collide.

Tables, forms and views

Underneath every application are tables. A table is a list of fields, and each field has a type that decides how it is stored, shown and checked.

The fields of the Capital request table: text, decimal, option set, lookup to the budget table, yes/no, multiline text and date fields, each with its logical name

Capital request has text, numbers, dates and yes/no fields. It has option sets for fixed lists, such as the department or the risk level. And it has a lookup that links each request to its budget line. Every field records its changes in the audit log unless you choose otherwise.

Views decide which columns and rows a list shows, and forms decide how one record is edited. Together they make a model-driven app:

The Capital requests list in the Capital planning app, with columns for what is needed, request number, budget line, department, category, amount, needed by and justification

To build your own table, fields and view step by step, see Build your first table and view.

Screens you draw

Some screens need to look a particular way, such as a phone form or a front desk. For those, the Application Studio lets you draw the screen and say what each shape does.

The Application Studio designing the New request phone screen, with its layers, the list of controls and the drawn form

The drawing is the app. Here is the same screen running, part-way through a request:

The New request phone screen for a portable ultrasound scanner in Radiology, Medical equipment, £150,000, with a panel reading Available £2,000,000, Remaining after this request £1,850,000, Approval: Finance director

The panel above Submit answers while you type. Choose Radiology and Medical equipment, and it shows what that budget line has left. Type £150,000, and the approver becomes the Finance director, because the amount crossed a band in the approval thresholds table. Change the band in that table and every request after it routes differently, with nothing rebuilt.

Processes that run

Submitting the request starts a process, drawn in swimlanes, one lane per role.

The process designer showing Capital request approval in four lanes: Requester, Budget holder, Capital Investment Group and System, with the check "Nothing wrong with this process"

This one starts by itself whenever a capital request is created. The budget holder decides the request, or sends it on to the Capital Investment Group when its threshold band says so. Each outcome is written back onto the request and into its approval history. People find their steps in their own task list. The designer checks the process as you draw it, and says so when nothing is wrong.

Reports that print

Reports are designed on a canvas and print exactly as drawn.

The Capital programme budget position report inside the Capital planning app, showing budget lines with their budget, committed and remaining amounts, and a Print button

This one is the budget position a finance director asks for before a meeting: every budget line, what is committed, and what is left, least remaining first. It opens from the app's navigation, reads the live data, and prints from the Print button.

Logic in one language

When a rule needs more than a setting, you write it in BS Lang, Parsware's one scripting language. The same language, and the same editor with checking and completion, is used for form rules, rules that run on the server when a record is saved, process conditions and the logic behind custom APIs. A rule written once can be shared by several of them.

Security and audit

People get security roles, and a role says what they may create, read, update and delete in each table, and on which records. Roles travel in the solution, like everything else: Capital planning brings four. Changes to records are captured in the audit log, with who made them and when.

Your language, and your direction

The whole platform runs in English, Persian and Arabic, and Persian and Arabic run right to left:

The Capital planning app in Persian: the navigation on the right, the toolbar and paging in Persian, and the list laid out right to left

The interface, the navigation and the layout switch. The words a maker wrote, such as table and column names, stay as they were written. Dates can be shown in the Persian calendar too.

Underneath, everything is a document

Every part you have just seen, from a table to an approval process, is stored as a plain document with a published schema. The designers are one way to write those documents. They are not the only way, and they never hide anything a document can't say. This is the start of the Capital request table as the solution carries it:

{
  "logicalName": "par_capital_request",
  "displayName": "Capital request",
  "displayCollectionName": "Capital requests",
  "publisherPrefix": "par",
  "primaryField": "par_name",
  "isAuditEnabled": true,
  "fields": [
    { "logicalName": "par_name", "displayName": "What is needed",
      "dataType": "Text", "maxLength": 200, "isRequired": true, "isPrimary": true },
    { "logicalName": "par_requestnumber", "displayName": "Request number",
      "dataType": "AutoNumber", "autoNumberFormat": "CR-{yyyy}-{SEQ:000}" },
    { "logicalName": "par_budget", "displayName": "Budget line",
      "dataType": "Lookup", "targetEntity": "par_capital_budget" },
    { "logicalName": "par_department", "displayName": "Department",
      "dataType": "OptionSet", "optionSet": "par_capital_department" }
  ]
}

You can read the whole application this way: the request number that numbers itself, the lookup to the budget line, the option set of departments. Three things follow from it.

  • Every document is checked the same way, whoever wrote it. A table saved from the designer, a file written by hand and a file generated by the assistant all go through the same schema validation before anything is stored. A mistake is refused with a message that names the field, rather than discovered later as a screen that won't open.
  • Changes can be reviewed. Because a solution is made of documents, two versions of it can be compared line by line, the way a developer compares code. You can see that a field became required, or that a threshold moved, without opening every screen.
  • The assistant can build. An assistant that writes a document the platform validates can create a real table or process. It does not have to click through screens on your behalf.

Rules are the same. When capital planning has to make sure that one approval band doesn't overlap the next, a short BS Lang script runs on the server before every save of a threshold:

import 'par_approval_limit_rules';

// `getValue` reads the limit as it will be stored.
var problem = limitProblem(getValue('par_minamount'), getValue('par_maxamount'), getValue('par_sequence'));
if (!isEmpty(problem)) {
  throwValidationError(problem);
}

The actual check, limitProblem, lives in a shared solution script, so the same words explain the problem whether it is found when somebody edits a band, creates one or deletes one.

How the parts fit

Each part of the platform has its own series on this blog. This table is the map: what each part is for, and where its series starts.

Part What it does Start with
Tables and data The records an application keeps, and the rules every value obeys Every field type, explained
Model-driven apps Forms, views and navigation built from the tables, with no screen drawn Your first app
The Platform Shell Where people sign in, open apps and work with records Sign in and open an app
Queries Saved questions about your data, used by views, reports and scripts Design a query
BS Lang The one scripting language, for every rule and condition BS Lang in ten minutes
Business rules Logic on a form, and on the server before and after a save Which one to use
Processes Work that passes between people, drawn in swimlanes A tour of the process designer
Graphic Designer and Studio Screens and reports you draw A tour of the Graphic Designer
Reports Pages that print exactly as designed A report that prints exactly as designed
Solutions Moving work from development to production Dev to Test to Prod
Integration Other systems reading and writing your data Connecting to your other systems
Security Roles, teams, sign-in and who may see what Security in Parsware
Portals Websites for customers and partners on the same data A customer portal

The parts are not separate products bolted together. They share one sign-in, one security model, one scripting language and one package format. That is why a process can read a table's approval bands, a report can print what a phone form saved, and all of it moves to production in one import.

Who does what

A Parsware application usually involves three kinds of people, and the platform gives each a different place to work.

  • Makers build in the Admin Control Center. They create tables, forms, views, processes and reports inside a solution, usually in a Development environment. A maker needs to understand the business, not a programming language; BS Lang is there for the rules that need it.
  • Administrators decide who may do what. They create environments, invite users, give out security roles and import solutions into Test and Production. The security series is theirs.
  • Everyone else uses the apps. They sign in, open an app from the apps list, work in views and forms and pick up their tasks. They never see the maker portal, and nothing they do can change how the application is built.

In a small company one person can be all three. The separation still helps: what is built is in a solution, what is allowed is in roles, and what happens day to day is in records and tasks. Each can change without disturbing the others.

Questions people ask first

Do I need to write code? No. Tables, forms, views, apps, processes and reports are all built in designers. BS Lang is for the rules a setting can't express, such as a limit that depends on two other fields, and it comes with an editor that checks what you type.

Where does my data live? In PostgreSQL, in a schema that belongs to one environment. Large files go to object storage.

Can I start from something? Yes. The platform's sample solutions, Capital planning among them, import in a minute, and many articles on this blog begin by importing one. Each sample's tables come with a form and a view, so nothing you open is half built.

What happens when I change something already in use? You change it in Development, export a new version of the solution and import it into Test, then Production. The import applies the changes to that one environment and no other. The solutions series explains how versions, upgrades and removing a solution work.

Where to go next

  • Build something: Build your first table and view takes you from an empty solution to a working app in about ten minutes.
  • Understand the foundations: Publishers and solutions in Parsware explains the prefix every name starts with and why work lives in a solution.
  • Find your way around: The maker portal is a tour of the Admin Control Center.
  • See a whole application: the Capital planning tour follows a request from the phone to the board report, written for the people who would use it.
  • Read everything in order: Start here lists every article on this blog in reading order.