BPMS

Form Builder and Workflow Engine: Turning Internal Forms into Processes

Which fields a form builder offers, what a workflow engine does and how a form attaches to a process stage. A purchase-request example and common set-up mistakes.

By Afrandeh team5 min read

In many companies, internal forms are still Word or Excel files passed around by email or messaging apps. The form is filled in, sent to a manager, then to finance, and nobody knows exactly where it is. A form builder and a workflow engine are the two tools that change this, provided they are used together. This article explains what each does, how they connect and which set-up mistakes to avoid.

What is a form builder?

A form builder creates custom forms for recording information without coding: a service-request form, a customer visit report, or the forms inside one stage of a process. Each form is made of fields, and each field has a type and, if needed, an access level.

In Afrandeh the form builder offers these field types:

  • single-line and multi-line text;
  • number and amount (a number with thousands separators);
  • a yes/no checkbox;
  • Persian date, Gregorian date and time;
  • customer (search and pick from CRM) and item;
  • fixed list and radio buttons;
  • options read from a database table;
  • a category heading for grouping fields;
  • a formula field that is calculated automatically.

Example: a "customer visit report" form

Say you want to record sales visits. The fields could be: customer (from CRM), visit date, visit description (multi-line text), and a "Visit result" heading with a fixed list underneath (for example "Follow up", "No need", "Quote requested") and a multi-line note. Because the customer is picked from CRM, names are never retyped by hand with spelling errors.

Three features that make a form more useful

Field grouping. For large forms, add a "category heading" field and place other fields beneath it. Access can be set on the heading itself and applies to all fields under it at once.

Formula field. The user does not type this value; it is calculated from other fields on the same form. Only the four basic operations and parentheses are allowed, with no functions or conditions, and the calculation runs on the server when the form is saved. In a purchase request form, "total amount" could be quantity times unit price. A formula field is always read-only.

Restricting the item field. By default users search the whole item catalogue. If you specify a few allowed items, the field becomes a drop-down limited to those items.

What is a workflow engine?

A form only collects information. Where it goes after saving, who may approve it and what happens next is the workflow engine's job. In Afrandeh this is the "process" (Chain) module, and each process has four layers:

  1. Main group: a broad, optional heading such as "After-sales service".
  2. Process category: the process itself, such as "Cash sales" or "Warranty repair".
  3. Stages: each stage is a document type.
  4. Transition rules: which stage may move to which.

A document moves with the "Convert" button, and the next stage's document is pre-filled from the previous one. Permissions are defined per (user, stage) pair: approve, reject, edit or close. The Kanban board shows the same documents as columns and cards, and dragging a card runs the same "Convert".

How a form and a workflow connect

A form can be filled in on its own, but to appear in a workflow it must be attached to a stage. The link uses two fields, "base form name" and "form type", the same two set when adding a stage in the process designer. If the form type you need is not in the list yet, the "+" button next to that field lets you create it on the spot. Once attached, every document reaching that stage carries the form. Office-automation forms also appear under "My forms and approvals" when they reach a user's stage; see office automation for that part.

A full example: an internal purchase request

  • Form: requester, item (limited to allowed items), quantity, unit price, total (formula), note.
  • Stages: request → department manager approval → finance approval → purchase order.
  • Transition rules: from "request" only to "manager approval", and from there to "finance approval".
  • Permissions: the requester edits only at the first stage; the manager can only approve or reject.
  • Kanban: the finance manager opens the "finance approval" column and sees waiting cards with the total for that column.

The result is that every request leaves a trail: who changed it, at which stage, and the values before and after.

Common set-up mistakes

  • Oversized forms. A form with forty fields is usually two forms. Split it with category headings.
  • Typing what the system already knows. Choose customers and items with the customer and item fields, not free text.
  • Open transition rules. If every stage can reach every other, the workflow means nothing. Define only the needed paths.
  • Ignoring per-stage permissions. For each stage decide who approves and who only views.
  • Starting with every process. Begin with one frequent process, run it for a month, then move to the next.

For the bigger questions before choosing software, read six questions before buying BPMS, and see the Afrandeh BPMS page for the overall picture. If customer-facing forms matter too, look at CRM.

Summary

A form builder answers "what information should be recorded", and a workflow engine answers "where should it go and who decides". When both sit on one database, each stage's document is pre-filled from the previous one and less is retyped. If you want us to model your own forms and approvals in Afrandeh, request a demo.

Tags:BPMSOffice automation

Frequently asked questions

What does a formula field do in the form builder?

Its value is calculated from other fields on the same form using the four basic operations and parentheses, on the server when saved, and it is always read-only.

How does a form attach to a process stage?

Through the "base form name" and "form type" set when adding a stage in the process designer; afterwards every document reaching that stage carries the form.

How is user access to stages controlled?

Approve, reject, edit and close permissions are stored separately for each (user, stage) pair.