--- title: Introduction project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/introduction/ updated: 2026-11-20T18:44:25.218Z --- # Introduction > What Total.js BPM is, what it does and what to read next. > **Note:** Total.js BPM is available only with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) subscription. See the [BPM page](https://www.totaljs.com/bpm/) on totaljs.com. Total.js BPM is a business process management app. You draw each process of your company in a visual designer, give it forms, and BPM turns every request into a task that moves from one step to the next until it is closed. The people who do the work find their tasks in an **Inbox**. BPM is built on [Total.js Flow](/flow/11-1/guides/introduction/): every process is a Flow design with its own BPM components, and forms are designed with [Total.js UI Builder](/uibuilder/1-0/guides/introduction/). ## What you can do - Create **processes** and group them in categories. - Design each process in the Flow designer with the **Start**, **Create**, **Step**, **Close**, **Subtasks**, **Extend** and **Read** components. - Design **forms** in the UI editor and use them as steps of a process. - Change a process in a draft and publish it as a new version, while open tasks finish on their own version. - Decide with permissions who can start a process and who can work on each step. - Let several people approve a step (all of them, any one of them or one after another), and send tasks one way or another by their data. - Publish a Start form so that people can start a process without signing in. - Fill in and process tasks in the **Inbox**, and follow all tasks, with their history, in **Tasks**. - Assign a task to a person, and let a substitute work on your tasks while you are away. - Write comments on tasks and attach files. - Get e-mails and OpenPlatform notifications about your tasks. - Let a task expire after a set time, remind people before, escalate it when it is overdue, and split a task into subtasks. - Claim or release several tasks at once, search inside the values of forms, keep your filters, and use the Inbox on a phone. - See reports of your processes: tasks started, closed and overdue, the time of each step, and export them to CSV. - Send the events of tasks to other systems with signed webhooks, and start processes by themselves at set times. - Work with your tasks from your AI app, with your own permissions. - Manage form templates and your own UI components. ![The designer of a process with a start, two forms and a close step](/files/Jatkpu1du60f.webp) ## What to read next 1. [Install BPM](../install/). 2. [Sign in for the first time](../first-sign-in/). 3. [How BPM works](../how-bpm-works/): processes, tasks, forms and steps. 4. [Build a leave request process](../../recipes/leave-request/), a complete example. 5. [Use BPM from your AI](../use-bpm-from-your-ai/). --- title: Install project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/install/ updated: 2026-11-20T18:44:25.218Z --- # Install > Install BPM on your computer or server with Node.js and PostgreSQL. > **Note:** Total.js BPM is available only with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) subscription. See the [BPM page](https://www.totaljs.com/bpm/) on totaljs.com. BPM is a Node.js app that keeps its data in a PostgreSQL database. ## What you need - The BPM source code. You receive it from Total.js with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) license. - [Node.js](https://nodejs.org/) on the computer or server. - A PostgreSQL server and an empty database for BPM. - Internet access from the browser. The screens load their scripts from the Total.js CDN, and the process designer and the form editor are loaded from `flow.totaljs.com` and `uibuilder.totaljs.com`. See [Settings](../settings/). ## Install 1. Unpack the source code into a folder, for example `bpm`. 2. Open the file `config` in that folder and set the connection string of your database: ```text database : postgresql://user:password@hostname:5432/bpm?pooling=1 ``` 3. Install the dependencies: ```bash cd bpm npm install ``` 4. Start the app: ```bash npm start ``` On the first start BPM creates its tables in the database. You do not need to run any SQL script yourself. When you install a newer version of BPM over an existing database, BPM updates the database on its first start. 5. Open `http://127.0.0.1:8000/admin/` in your browser. ## Another port `npm start` runs BPM on port `8000`. To use another port, start it with the port number: ```bash node index.js 8080 ``` ## Next step [Sign in for the first time](../first-sign-in/). --- title: First sign-in project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/first-sign-in/ updated: 2026-11-20T18:44:23.206Z --- # First sign-in > Sign in with the default account and set your own name, login and password. BPM has one built-in administrator account. On the first start it creates a random user name and password. ## Sign in 1. Open `/admin/` of your BPM, for example `http://127.0.0.1:8000/admin/`. 2. Until somebody signs in for the first time, the sign-in page shows the default account. Select **Fill in the form**, or type the user name and password. 3. Select **Sign in**. ![The sign-in page of BPM](/files/JatfPx24D61f.webp) After the first successful sign-in, the sign-in page does not show the default account any more. Write it down, or change it right away. ## Set your own account 1. Select the account icon in the top right corner. 2. Select **Change credentials**. 3. Enter your **Name**, **Login** and a new **Password**. 4. Select **SUBMIT**. See [Your account](../account/). ## Next step Read [How BPM works](../how-bpm-works/). --- title: How BPM works project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/how-bpm-works/ updated: 2026-11-20T18:44:23.206Z --- # How BPM works > Processes, tasks, forms and workflow steps, and how they fit together. A few words explain the whole app. ## Process A process is one kind of work in your company, for example a leave request or a purchase. You create it on the [Processes](../processes/) screen and design it in the [designer](../designer/). Each process runs as its own Flow design in the background. You change a draft of the process and publish it as a new version; every task finishes on the version where it started. See [Process versions](../process-versions/). ## Start A **Start** node is the entry point of a process. Every Start node appears in the **Create** menu of the [Inbox](../inbox/). When somebody chooses it, BPM shows the form connected to the Start node. ## Form A form is a screen that people fill in, for example the reason of a leave request. You design it in the UI editor. In the designer, every form of the process is a node in the **Forms** group. A form node has a **Workflow action** that says what happens with the task when the form is sent. See [Forms](../forms/) and [Workflow actions](../workflow-actions/). ## Task A task is one case of a process, for example the leave request of one person. A task is created by a **Create** action, moves on with **Step** actions and ends with a **Close** action. Each task keeps: - the data of the forms filled in so far, - the current step, - a **Name**, **Subject**, **Number**, **Reference**, **Result** and **Body**, which you can fill from the data with templates. See [Task fields and templates](../../reference/task-fields/). ## People and permissions People must sign in to start a process from the Inbox and to work on tasks. The **Permissions** of a Start node and of each step decide who sees them. A Start form can also be public, so that anyone can send it. See [Permissions](../permissions/) and [Public Start forms](../public-start-forms/). ## Inbox and Tasks When a task arrives at a form with the action **Step** or **Close**, it waits in the [Inbox](../inbox/). Somebody assigns it to themselves, fills in the form and sends it. The task then moves to the next node. [Tasks](../tasks/) lists all tasks, open and closed. ## A typical process ```text Start ──> Leave request form (Create) ──Send──> Approval form (Step) ──Approve──> Close ``` 1. A person selects **Create** > **Leave request** in the Inbox and fills in the request form. 2. The form creates the task and passes it to the **Approval** form. 3. The task waits in the Inbox until a manager opens it, writes a comment and approves it. 4. The **Close** node closes the task. [Build this process step by step](../../recipes/leave-request/). --- title: Processes project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/processes/ updated: 2026-11-20T18:44:26.985Z --- # Processes > Create, edit, close, clone and remove processes. The **Processes** screen lists your processes as cards, grouped by category. The number on a card is the number of open tasks of the process, next to its published version, for example **v2**, or **not published** for a process that has not been published yet. See [Process versions](../process-versions/). ![The Processes screen with one process in the category Demo](/files/JatfQO2RD60f.webp) ## Create a process 1. Open **Processes** and select **Create**. 2. Enter the **Name**. 3. Optionally choose or type a **Category**, and pick a **Color** and an **Icon**. 4. Select **SUBMIT**. ![The Create process window](/files/JatfQQ2SD61f.webp) The new process is empty. Select its card to open the [designer](../designer/). It appears in the Inbox after you publish it. ## The process menu Select the gear icon on a card: | Item | What it does | |---|---| | **Close** | Marks the process as closed. The card turns gray with the badge **closed**, and its Start nodes disappear from the **Create** menu of the Inbox. | | **Re-open** | Shown on a closed process. Opens it again. | | **Edit** | Changes the name, category, color and icon. | | **Clone** | Makes a copy named ` (CLONED)` with the draft and the forms of the process, not published yet. Tasks are not copied. | | **Webhooks** | Sends the events of the tasks of the process to another system. See [Webhooks](../webhooks/). | | **Remove** | Removes the process with its forms and tasks. | Closing a process does not stop its open tasks: they stay in the Inbox and can be finished. --- title: The designer project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/designer/ updated: 2026-11-20T18:44:23.206Z --- # The designer > Open the designer of a process and build it from BPM components. Select a process on the **Processes** screen to open its designer. The designer is the Total.js Flow designer, so everything in the [Flow documentation](/flow/11-1/guides/designer-overview/) works here: adding and connecting nodes, configuring them and applying the changes. ![The designer with the Forms and Workflows groups on the left](/files/Jatkpu1du60f.webp) ## The BPM components The list on the left has two BPM groups: - **Forms**: one item for each form of the process. See [Forms](../forms/). - **Workflows**: **Start**, **Create**, **Step**, **Close**, **Subtasks**, **Extend** and **Read**. See [Workflow components](../../reference/workflow-components/). ## Build a process 1. Drag the nodes onto the canvas. See [Add and connect nodes](/flow/11-1/guides/connect-nodes/). 2. Connect an output to an input. 3. Double-click a node, or right-click it and select **Configure**, to change its settings. See [Configure a node](/flow/11-1/guides/configure-nodes/). 4. Select **APPLY** to save the design. See [Apply changes](/flow/11-1/guides/apply-changes/). 5. Select **Publish** in the toolbar to put the design to work. The designer edits the draft of the process: **APPLY** saves the draft, and people get your changes, for example a new Start node in the **Create** menu of the Inbox, when you publish. See [Process versions](../process-versions/). ## The toolbar Next to the name of the process, the toolbar has **Webhooks** (see [Webhooks](../webhooks/)), **Versions** and **Publish** (see [Process versions](../process-versions/)), and the published version. ## Create a form Select the blue **+** button in the bottom right corner of the designer. See [Forms](../forms/). ## Other Flow components The **Add** (plus) menu of the toolbar offers the Flow tools, such as [Download components](/flow/11-1/guides/download-components/), so a process can use other Flow components next to the BPM ones. --- title: Process versions project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/process-versions/ updated: 2026-11-20T18:44:26.985Z --- # Process versions > Change the draft of a process, publish it as a new version, and see the earlier versions. A process has a draft and published versions. You change the draft in the designer; people work with the published version. When the draft is ready, you publish it as a new version. ## The draft The [designer](../designer/) always shows the draft of the process. **APPLY** saves your changes in the draft, and the forms that you change in the UI editor belong to the draft too. Nothing changes for people until you publish: the **Create** menu of the Inbox, the forms and the steps of the tasks stay as they are. The toolbar of the designer shows the version that people use, for example **Published version 3**, and **draft changed** when the draft has changes that are not published yet. On the [Processes](../processes/) screen, each card shows its version, for example **v3**, or **not published** for a new process. ## Publish 1. Open the designer of the process. 2. Select **Publish** in the toolbar. 3. In **What changed**, write a few words about the change, for example `The approval of HR comes after the manager`. 4. Select **PUBLISH**. ![The Publish window of a process](/files/Jauly72Dt60f.webp) The draft becomes the next version, with its forms as they are at that moment. A new process appears in the **Create** menu of the Inbox only after its first publishing. ## Open tasks keep their version Every task belongs to the version where it started: - New tasks start on the published version. - Open tasks finish on their own version, with its steps, its forms and its approvers, even when a newer version changes or removes them. The history of a task shows its version next to the process. See [Tasks](../tasks/). ## The list of versions Select **Versions** in the toolbar of the designer. The list shows each version with the date, who published it, what changed, and how many of its tasks are open. Select **View** next to a version to see its steps (what each one does and where each button goes) and the fields of its forms. ![The versions of a process with version 2 open](/files/Jauly92Et61f.webp) --- title: Forms project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/forms/ updated: 2026-11-20T18:44:23.206Z --- # Forms > Create a form, design it in the UI editor and connect it in the designer. A form is the screen that people fill in during a process. Each form belongs to one process. ## Create a form 1. Open the [designer](../designer/) of the process. 2. Select the blue **+** button in the bottom right corner. 3. Enter the **Name**, choose a **Template** and an **Icon**. 4. Select **SUBMIT**. ![The Create UI window](/files/Jatkq11gu61f.webp) The UI editor opens with an empty form. The form also appears in the **Forms** group of the designer. ## Design the form The UI editor is Total.js UI Builder. See [Add components](/uibuilder/1-0/guides/add-components/) and [Component settings](/uibuilder/1-0/guides/component-settings/) in its documentation. A form for BPM needs: - A **Form** component with the fields, for example a **Textbox**. The **path** of each field is the name under which the value is stored in the task. - At least one **Flow Output** (group **Flow**). Its **Name** becomes an output of the form node in the designer, and its **Target** is what sends the data, for example the submit of the **Form**. When the design is ready, select **SAVE**. Then select **x** to close the editor. ![A form with a Reason field and the Flow Output Send in the UI editor](/files/JatfQ52BD60f.webp) A form can have several Flow Outputs, for example **Approve** and **Reject**, each with its own path in the process. ## Use the form in the process 1. Drag the form from the **Forms** group onto the canvas. If you do not see its outputs, reload the designer. 2. Connect something to its input **No data**, for example the output **Start** of a Start node. 3. Connect its outputs to the next nodes. 4. Configure the node and choose its **Workflow action**. See [Workflow actions](../workflow-actions/). 5. Select **APPLY**, and then **Publish** in the toolbar. See [Process versions](../process-versions/). To change the design later, select **Edit design** on the node. The output **Expire** of every form node is described in [Expiration](../expiration/). --- title: Workflow actions project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/workflow-actions/ updated: 2026-11-20T18:44:32.311Z --- # Workflow actions > Choose what a form does with the task: None, Create, Step or Close. The **Workflow action** of a form node decides what happens with the task when somebody sends the form. Double-click the form node in the designer to change it. ![The settings of the form node Approval with the action Step and An AI may send this form ticked](/files/JauEtB1lV60f.webp) ## The actions | Action | Where the form is shown | What sending the form does | |---|---|---| | **None** | When the process reaches the node while somebody fills in a form. | Passes the data of the form through the chosen output. No task is created or changed. | | **Create** | Right after a Start node, when somebody selects the process in **Create** in the Inbox. | Creates a new task with the data of the form, then sends the task through the output. | | **Step** | In the [Inbox](../inbox/). The task waits there. | Saves the data in the task, moves the task on, and sends it through the output. | | **Close** | In the Inbox. The task waits there. | Saves the data and closes the task. | A task arrives at a Step or Close form through the input **No data**. It then appears in the Inbox of the people who can work on it. ## Settings of an action When the action is not **None**, the node shows more settings: - **Workflow name**: the name of this step. It appears in the column **Workflow** of the Inbox and of Tasks. - **Permissions**: who can work on the task at this step, separated by commas. See [Permissions](../permissions/). - **An AI may send this form**: people who use BPM from their AI app can let the AI send this form with their permissions. Without this option, the AI gets a link to the form with the values filled in, and the person checks them and sends the form in the browser. See [Use BPM from your AI](../use-bpm-from-your-ai/). - **Approval by several people**: for **Step** and **Close**, the task waits for the decision of several people. See [Approvals by several people](../approvals/). - **Expiration**: how long the task can wait at this form, for example `3 days` or `12 hours`. See [Expiration](../expiration/). - **Templates**: fill the task fields **name**, **subject**, **result**, **number**, **reference** and **body** from the data. See [Task fields and templates](../../reference/task-fields/). Every form node also has **Path for storing form data**, **Icon** and **Color**. The icon and the color are shown next to the step in the Inbox. ## Steps without a form The **Create**, **Step** and **Close** components of the **Workflows** group do the same as the actions, but without a form: the node changes the task as soon as data arrives. Use them, for example, to close a task automatically. See [Workflow components](../../reference/workflow-components/). --- title: Approvals by several people project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/approvals/ updated: 2026-11-20T18:44:21.174Z --- # Approvals by several people > Let a step wait for the decision of several people: all of them, any one of them or one after another. A step can wait for the decision of several people: all of them, any one of them, or one after another. Each person approves or rejects with a comment, and the process goes on only when the step is decided. ## Set up an approval An approval is a setting of a form node with the [workflow action](../workflow-actions/) **Step** or **Close**. The form needs one button to approve and one to reject, for example two Flow Outputs **Approve** and **Reject**, each one with a field for the comment. See [Forms](../forms/). **1.** Double-click the form node in the [designer](../designer/). **2.** In **Approval by several people**, choose how the people decide: - **Any one of them**: the first decision counts. - **All of them**: everybody must approve. One rejection is enough to reject. - **One after another**: in the order of the list. Each person gets the task after the previous one approved it. One rejection is enough to reject. **3.** In **Approvers**, enter the e-mails of people and the permissions, separated by commas, for example `mark@example.com, paul@example.com` or `managers, finance`. A permission counts as one approver: any one of the people who have it. **4.** Choose the button that approves in **Approve with the button** and the button that rejects in **Reject with the button**. **5.** In **Path of the comment**, enter the path of the comment field of the form, for example `comment`. **6.** Select **APPLY**, and then [publish the process](../process-versions/). ![The settings of a form node with an approval by all of two people](/files/Jaulx91et61f.webp) The approvers replace the **Permissions** of the step. Other buttons of the form move the task on as in any step. ## Approve or reject The task waits in the [Inbox](../inbox/) of the approvers who still have to decide. 1. Select the task and confirm **Assign**. 2. Write your comment in the field of your decision. 3. Select the button, for example **APPROVE** or **REJECT**. ![The form of an approval with a comment field for each decision](/files/JaulxB1ft60f.webp) If the step waits for more people, the task leaves your Inbox and waits for them. Each person decides once. ## The decisions in the history Every decision appears in the history of the task with the name, the date and the comment. See [Tasks](../tasks/). ![The history of a purchase request approved by two people, with their comments](/files/JaulxD1gt61f.webp) ## The result for the next steps When the step is decided, the task goes on through the button of the result: the approve button when it is approved, the reject button when it is rejected. The data of the task gets `approval` with the result: ```json { "approval": { "result": "approved", "mode": "all", "decisions": [ { "name": "Mark Smith", "decision": "approved", "comment": "Fine, within the budget of Q4.", "date": "2026-11-20T16:30:48.509Z" }, { "name": "Paul Green", "decision": "approved", "comment": "Approved. Order them this week.", "date": "2026-11-20T16:30:58.511Z" } ] } } ``` Use it in templates, for example `{{ value.approval.result }}`, or in the next nodes. See [Task fields and templates](../../reference/task-fields/). ## Substitutes and escalation - A [substitute](../substitutes/) decides on behalf of an absent approver. The history says **on behalf of**. - When an approval is [escalated](../reminders-and-escalation/), the person or the permission that gets it decides for everybody who has not decided yet. ## From your AI An approver can decide from their AI app with the tools `Tasks_approve` and `Tasks_reject`, with a comment. When the form does not have **An AI may send this form**, the AI gets a link to the form instead. See [Use BPM from your AI](../use-bpm-from-your-ai/). --- title: Conditions project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/conditions/ updated: 2026-11-20T18:44:23.206Z --- # Conditions > Send a task one way or another by the data of its forms, with the Switch component of Flow. A condition sends a task one way or another by the data of its forms, for example a purchase over 1000 EUR to the management and a smaller one to the manager. BPM uses the **Switch** component of Flow for it. ## Add the Switch component The Switch is in the library of Flow components: 1. In the [designer](../designer/), open the **Add** (plus) menu of the toolbar and select **Download components**. See [Download components](/flow/11-1/guides/download-components/). 2. Find **Switch** and install it. It appears in the group **Common** of the designer. ## Send the task by a value This example sends a purchase request by its field `amount`: **1.** Drag **Switch** onto the canvas, between the form that has the value and the next steps. Connect the output of the form, for example **Send**, to the input of the Switch. **2.** Double-click the Switch. **3.** In **Source + Path to the value**, keep **Message data** and enter the path of the field: `amount`. **4.** Under **Switch conditions**, select **ADD** for each way, and fill in the **Operator**, the type **Number**, the **Value** and the **Output name**: | # | Operator | Type + Value | Output name | |---|---|---|---| | 1 | `>` | Number `1000` | `Over 1000` | | 2 | `<=` | Number `1000` | `Up to 1000` | **5.** Select **APPLY**. The node gets one output for each condition, in the same order. **6.** Connect **Over 1000** to the input **No data** of the management approval, and **Up to 1000** to the input **No data** of the manager approval. **7.** Select **APPLY** in the toolbar, and then [publish the process](../process-versions/). ![The settings of the Switch with two conditions on the amount](/files/JaulxV1tt60f.webp) ![A purchase request process with a Switch between the request and two approvals](/files/JaulxY1ut61f.webp) The value is the data of the task: the fields of the forms sent so far, by their path. After an [approval](../approvals/), `approval.result` is there too, so a Switch can also send the task by the result of an approval. ## Make every task go one way - The Switch sends the task through **every** condition that matches. Write conditions that do not overlap, such as `>` and `<=` the same value. - When no condition matches, the task goes nowhere: write the conditions so that one of them always matches, as in the example. - Use the type **Number** for numbers. A number field of the form keeps its value as a number. The Switch has more operators, such as **between**, **starts with** and **Expression**. Its **Show configuration info** button in the settings explains each one. --- title: Expiration project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/expiration/ updated: 2026-11-20T18:44:23.206Z --- # Expiration > Let a task leave a form step on its own after a set time. A task can wait at a Step or Close form for a limited time. When the time is over, the task leaves the form through its **Expire** output, and the process decides what happens next, for example closing the task or sending it to another person. ## Set an expiration 1. In the designer, double-click a form node whose **Workflow action** is **Step** or **Close**. 2. In **Expiration**, enter a time such as `30 minutes`, `12 hours` or `3 days`. 3. Select **APPLY** in the window, connect the **Expire** output of the node to the next node, select **APPLY** in the toolbar, and [publish the process](../process-versions/). The time starts when the task arrives at the form. The column **Expires** of the Inbox and of Tasks shows when the time ends. BPM checks expired tasks about once a minute, so a task can leave up to a minute after its time. ## Example In the [leave request](../../recipes/leave-request/), connect **Expire** of the **Approval** form to the **Close** node. A request that nobody approves within 3 days is closed automatically, with the result set by the templates of the Close node. If **Expire** is not connected, the task stays at the form after its time, and nothing else happens. To remind people before the time ends, or to send an overdue task to somebody else, see [Reminders and escalation](../reminders-and-escalation/). --- title: Reminders and escalation project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/reminders-and-escalation/ updated: 2026-11-20T18:44:27.923Z --- # Reminders and escalation > Remind people before a step expires, and send an overdue task to a person or a permission. A form step with an [expiration](../expiration/) can remind people before its time ends, and escalate the task when it is overdue. ![The reminder and the escalation of a form node](/files/JaulyJ2Kt61f.webp) ## Set a reminder 1. In the designer, double-click a form node whose **Workflow action** is **Step** or **Close**. 2. Enter the **Expiration**, for example `3 days`. 3. In **Reminder before**, enter how long before the expiration BPM reminds the people, for example `1 day`. 4. Select **APPLY** in the window, **APPLY** in the toolbar, and [publish the process](../process-versions/). The reminder **A task expires soon** goes to the person who has the task, or to everybody who may take it when nobody has it. See [Notifications](../notifications/). ## Set an escalation 1. Double-click the form node, and enter its **Expiration**. 2. In **Escalate to**, choose **Person** or **Permission**. 3. In **Person or permission**, enter the e-mail of a person, for example `paul@example.com`, or a permission, for example `managers`. 4. In **Escalate after**, enter how long after the expiration, for example `2 hours`. Keep it empty to escalate when the expiration comes. 5. Select **APPLY** in the window, **APPLY** in the toolbar, and [publish the process](../process-versions/). When the time comes and the task still waits at the form: - **Person**: the task is assigned to that person. The person must have the permissions of the step and must have opened BPM once; otherwise the task stays as it is, and the history says **Escalation failed** with what you entered. - **Permission**: the task waits for the people with that permission instead of the permissions of the step. It leaves the Inbox of the person who had it. The history of the task shows **Escalated to** with the person or the permission, and the people get the message **An overdue task has been escalated to you**. ## Good to know - The times use the same words as the expiration: `30 minutes`, `12 hours`, `2 days`. - Each arrival of a task at the form has one reminder and one escalation. - BPM checks reminders and escalations about once a minute. - At an [approval by several people](../approvals/), the person or the permission that gets the task decides for the approvers who have not decided yet. - A task that the **Expire** output takes to another step is not escalated: the escalation applies only while the task waits at the form. --- title: Subtasks project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/subtasks/ updated: 2026-11-20T18:44:30.444Z --- # Subtasks > Split a task into several subtasks that run side by side. The **Subtasks** component splits one task into several subtasks, for example a review by the manager and a review by HR. Each subtask is a task of its own that continues through its own output. ## Set up subtasks 1. Drag **Subtasks** from the **Workflows** group onto the canvas and connect the task to its input. 2. Double-click the node. 3. In the list, select **Create task** for each subtask, enter its **Name**, optionally its **Permissions**, and select **Save**. 4. Optionally fill in the templates. They set the fields of the main task, and the subtasks get the same values. See [Task fields and templates](../../reference/task-fields/). 5. Select **APPLY**, and [publish the process](../process-versions/). After a moment the node shows one output for each subtask and the output **Check**. Connect each subtask output to the next step, for example a Step form, so that the subtask waits in the [Inbox](../inbox/). ## The Check output Whenever a subtask changes, for example when somebody approves it, the Subtasks node sends the main task through **Check**. The data holds: - `attrs`: the data of the main task, - `subtasks`: the list of subtasks, each with `id`, `name`, `subject`, `result`, `attrs`, `isclosed`, `ischanged` and its dates. Use it to decide when the main task can continue, for example with a Flow component that checks whether all subtasks are closed. See the [Flow components](/flow/11-1/components/introduction/). ## In Tasks Subtasks appear in [Tasks](../tasks/) like other tasks. The main task stays at the Subtasks step until your process moves it on. --- title: Permissions project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/permissions/ updated: 2026-11-20T18:44:26.142Z --- # Permissions > Decide who can start a process and who can work on each step. Permissions decide who sees a Start node in the **Create** menu of the Inbox and who sees a task in the Inbox. Empty permissions mean everybody who uses the Inbox. ## Who has which permissions The built-in administrator sees and can do everything. Other users and their permissions come from Total.js OpenPlatform when BPM is connected to it in [Settings](../settings/). Each permission is a name, for example `managers` or `hr`. BPM itself also offers the permissions `inbox`, `tasks`, `reports`, `mcp`, `processes`, `components`, `templates` and `settings`, one for each screen of the menu. The permission `reports` shows **Reports**, with the numbers of the tasks that the person may read; see [Reports](../reports/). The permission `processes` also lets a person set the [webhooks](../webhooks/) of the processes. The permission `mcp` is **MCP access**: it lets a person create tokens for their AI app. An AI works with the permissions of its person. See [Use BPM from your AI](../use-bpm-from-your-ai/). ## Who can start a process 1. In the designer, double-click the **Start** node. 2. In **Permissions**, enter the permissions separated by commas, for example `staff, managers`. 3. Select **APPLY** in the window and in the toolbar, and [publish the process](../process-versions/). Only people with one of these permissions see the process in **Create** and can start it. ## Who can work on a step 1. Double-click a form node whose **Workflow action** is **Step** or **Close**. 2. In **Permissions**, enter the permissions, for example `managers`. 3. Select **APPLY** in the window and in the toolbar, and [publish the process](../process-versions/). When a task arrives at this form, it gets these permissions. It appears only in the Inbox of people with one of them, and only they can assign it to themselves. At a step without permissions, everybody with the Inbox sees the task. Subtasks keep their own permissions at a step without permissions. See [Subtasks](../subtasks/). A step can also wait for the decision of several named people or permissions: see [Approvals by several people](../approvals/). ## Example In the [leave request](../../recipes/leave-request/), set **Permissions** of the **Approval** form to `managers`. Every employee can send a request, but only managers see the requests to approve. ## The administrator The administrator sees every open task in the Inbox, also tasks assigned to somebody else, with their name in **Assigned**. Selecting such a task and confirming **Assign** gives it to the administrator, for example when the assigned person is away. --- title: Public Start forms project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/public-start-forms/ updated: 2026-11-20T18:44:26.985Z --- # Public Start forms > Let people start a process from a public page, without signing in. A Start node can be public. Its first form then has a public address that anyone can open, for example a page where customers send a complaint or visitors register. ## Make a Start form public 1. In the designer, double-click the **Start** node. 2. Select **Public form**. 3. Select **APPLY** in the window and in the toolbar, and [publish the process](../process-versions/). ![The settings of a Start node with Public form selected](/files/JatkqL1ru60f.webp) The node now shows the public address, for example `/start/JathaF1ct61fs1/`. Add it to the address of your BPM, for example `https://bpm.example.com/start/JathaF1ct61fs1/`, and share it. ## What people see The page shows the name of the Start node and its form. After they send the form, the page shows **Thank you. Your request has been sent.** The new task continues through the process like any other, and appears in the Inbox at the next step. ![The public form of the leave request](/files/JatkqM1su61f.webp) Only the Start form is public. All the next steps need people who sign in and have the [permissions](../permissions/) of the step. The page answers **404** when the Start node is not public or when the process is closed. --- title: Inbox project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/inbox/ updated: 2026-11-20T18:44:25.218Z --- # Inbox > Start requests and work on the tasks that wait for you. The **Inbox** lists the open tasks that wait at a form, assigned to you or to nobody yet, and allowed by the [permissions](../permissions/) of their step. Tasks assigned to you have the badge **assigned**. The column **Assigned** shows who has the task, and **Expires** when it leaves the step on its own (see [Expiration](../expiration/)). The administrator sees all open tasks, also those assigned to other people, and can take one over with **Assign**. While a colleague is away and you are their [substitute](../substitutes/), their tasks appear in your Inbox too, and **Assigned** shows for whom you took a task. ![The Inbox with leave requests and purchase requests waiting for approval](/files/Jaulxm22t61f.webp) ## Start a request 1. Select **Create**. The menu lists the Start nodes of all open processes that you are allowed to start. 2. Select a process, for example **Leave request**. 3. Fill in the form and send it. ![The Create menu of the Inbox](/files/Jaulxn23t60f.webp) ![The form of a new leave request](/files/JatfQD2ID61f.webp) ## Work on a task 1. Select the task in the list. 2. If nobody has the task yet, confirm **Assign**. The task is now yours and other people do not see it in their Inbox. 3. Fill in the form and send it with its button, for example **APPROVE**. ![The question before a task is assigned to you](/files/JatfQF2JD60f.webp) ![The approval form of a task](/files/Jaulxp24t61f.webp) After you send the form, the window closes with a confirmation and the task moves on. Select **Refresh** to reload the list. Closing the window with **x** keeps the task assigned to you; it stays in your Inbox until you send the form. ## History, comments and other people Select **History** at the top of the form. The window shows the history of the task, and there you can: - write a comment or attach a file; see [Comments and attachments](../comments-and-attachments/); - give the task to a colleague with **Assign to**, or give it back with **Release**; see [Assign a task to a person](../assign-tasks/). ## Notifications Select **Notifications** to choose whether BPM sends you e-mails about your tasks. See [Notifications](../notifications/). ## Links from your AI When you work with BPM from your AI app, a form that needs a person comes as a link. The link opens the Inbox with the form and the values that the AI prepared. Check them and send the form. A link to a task that nobody has yet asks you to confirm **Assign** first. See [Use BPM from your AI](../use-bpm-from-your-ai/). ## Several tasks at once 1. Tick the boxes at the left of the tasks. 2. Select **Selected** in the toolbar. 3. Select **Claim the selected tasks** or **Release the selected tasks**. ![Two tasks selected and the menu of Selected](/files/Jaulxr25t60f.webp) BPM checks each task on its own: you claim only the tasks that wait for you, and you release only the tasks that you have (with the permission `tasks`, any task). When some of them are not possible, a message lists them with the reason, and the others are done. ## Search, filter and sort Type words in **Search** to find tasks by their fields and the values of their forms, and select **Filters** to save and use your filters. See [Search and saved filters](../search-and-saved-filters/). Type in the **Filter** row under a column header to filter the list, and select a header to sort by that column. On a phone, the Inbox shows cards. See [BPM on a phone](../bpm-on-a-phone/). --- title: Search and saved filters project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/search-and-saved-filters/ updated: 2026-11-20T18:44:29.549Z --- # Search and saved filters > Search tasks by their fields and the values of their forms, and save the filters that you use often. The [Inbox](../inbox/) and [Tasks](../tasks/) have a search box, and you can save the filters that you use often under a name. ## Search Type words in the **Search** box at the top. The list shows the tasks that have every word: - in the name, the subject, the reference or the number of the task, - or in any value of its forms, for example the item of a purchase, an amount, or the comment of an approval. Upper and lower case do not matter. Clear the box with **x** to see all your tasks again. ![The Inbox with the words of a search in the toolbar](/files/JaulyX2Ut61f.webp) The search finds only the tasks of the list where you search: in the Inbox, your open tasks; in Tasks, the tasks that you may read. Your AI finds the same tasks with `Tasks_search`. See [Use BPM from your AI](../use-bpm-from-your-ai/). ## Save a filter A saved filter keeps the words of the search and the filters of the columns. 1. Search and filter the list as you want it, for example **Process** = `Purchase request` and the word `laptop`. 2. Select **Filters** in the toolbar. 3. Select **Save the current filter**. 4. Enter a name, for example `Laptops`, and select **OK**. ![The Filters menu with two saved filters](/files/JaulyZ2Vt60f.webp) Saving a filter with the name of one that you already have replaces it. ## Use a saved filter 1. Select **Filters**. 2. Select the name of the filter. **Show all tasks** in the same menu clears the search and the filters of the columns. ## Remove a saved filter 1. Select **Filters**. 2. Select **Remove a saved filter**, then the filter. Your filters are yours: nobody else sees them. The Inbox and Tasks have their own filters. --- title: Tasks project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/tasks/ updated: 2026-11-20T18:44:31.290Z --- # Tasks > See all tasks of all processes, open and closed. **Tasks** lists every task of every process, also closed tasks and tasks that wait at steps without a form. ![The Tasks screen with closed and open requests](/files/Jaulyo2ft60f.webp) ## Columns | Column | What it shows | |---|---| | **Process** | The process of the task. | | **Workflow** | The step where the task is now. | | **Number** | The number from the templates. | | **Assigned** | The person who has the task. | | **Result** | The result from the templates, for example `Approved`. | | **Name**, **Subject**, **Reference** | The fields from the templates. | | **Closed** | Whether the task is closed. | | **Expires** | When the task leaves its current step on its own. See [Expiration](../expiration/). | | **Editable** | Whether the task waits at a form, so that it appears in the Inbox. | | **Created** | When the task arrived at its current step. | The fields **Number**, **Result**, **Name**, **Subject** and **Reference** are filled by [templates](../../reference/task-fields/). Use the **Filter** row to filter, for example **Closed** = **No** for open tasks, and **Search** to find tasks by their fields and the values of their forms. **Filters** keeps your filters under a name. See [Search and saved filters](../search-and-saved-filters/). Select **Refresh** to reload the list. For numbers about many tasks, such as how long a step takes, see [Reports](../reports/). ## History of a task Select a task in the list. The window shows its process with the [version](../process-versions/) where the task started, its current step, who has it, and its history: every step with the date and the person, every assignment, release and escalation, every decision of an [approval](../approvals/) with its comment, and the [comments and attachments](../comments-and-attachments/). A step done by a [substitute](../substitutes/) shows **on behalf of** and the person who was away. What a person did from their AI app has the badge **via MCP**. See [Use BPM from your AI](../use-bpm-from-your-ai/). ![The history of a closed leave request with a comment](/files/Jaulyq2gt61f.webp) From this window you can also give an open task to a person with **Assign to**, or give it back to everybody with **Release**. See [Assign a task to a person](../assign-tasks/). ## Cancel a task 1. Select an open task in the list. 2. Select **Cancel task** and confirm. The task is closed with the result **Cancelled**, and the cancellation appears in its history with your name. To work on a task, use the [Inbox](../inbox/). --- title: Assign a task to a person project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/assign-tasks/ updated: 2026-11-20T18:44:21.522Z --- # Assign a task to a person > Give a task to a chosen person, hand it over to a colleague, or release it back to everybody. A task that waits at a form goes to everybody who has the [permissions](../permissions/) of its step, and the first person who selects **Assign** in the [Inbox](../inbox/) takes it. You can also give a task to a chosen person. ## Who can assign a task - The person who has the task, to hand it over to a colleague. - People with the permission **Tasks** (`tasks`). - The administrator. The person who gets the task must have the permissions of the step where the task waits. The list shows only those people. ## Assign a task 1. Open the task: in the Inbox, select **History** at the top of the form; in [Tasks](../tasks/), select the task in the list. 2. Select **Assign to**. 3. Choose the person. The person who has the task now is marked with `*`. ![The list of people under Assign to](/files/JaulxH1jt60f.webp) The task goes to the Inbox of that person, and nobody else sees it there. The history shows **Assigned to** with the name of the person and your name. When BPM sends e-mails, the person gets one; see [Notifications](../notifications/). ## Release a task **Release** gives a task back: it waits again in the Inbox of everybody who may work on it. 1. Open the task as above. 2. Select **Release** and confirm. You can release the tasks that you have. People with the permission **Tasks** and the administrator can release any task. The history shows **Released** with the name of the person who did it. ## Who is in the list The list has the people who have opened BPM at least once, with the permissions of their last sign-in. A colleague who never opened BPM is not in the list yet. ## From your AI The tools `Tasks_people` and `Tasks_assign` do the same from your AI app, with the same rules. See [Use BPM from your AI](../use-bpm-from-your-ai/). --- title: Substitutes project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/substitutes/ updated: 2026-11-20T18:44:30.444Z --- # Substitutes > Let a colleague work on your tasks while you are away. While you are away, a substitute can work on your tasks. During the days that you choose, your substitute sees in their [Inbox](../inbox/) the tasks that you have and the tasks that wait for your permissions, takes them **on your behalf** and sends their forms. The history of each task says who did it and for whom. A substitute gets only your open tasks at a form, and only during those days. They cannot start your processes, open the screens that you can open, or see your closed tasks. ![The Substitutes screen with a substitute for this week](/files/Jaulyg2at61f.webp) ## Set your substitute 1. Open **Substitutes** in the menu. 2. Select **Add substitute**. 3. Choose the **Substitute**, the **First day** and the **Last day**. 4. Select **SUBMIT**. The substitute must be a person who works with the Inbox. The substitution starts when the first day starts and ends when the last day ends. While it runs, the list shows the badge **now**. ![The Add substitute window](/files/Jaulyi2bt60f.webp) ## Work as a substitute 1. Open the Inbox. The tasks of the person who is away appear next to yours. 2. Select a task and confirm **Assign**. The column **Assigned** shows your name and the person you work for. 3. Fill in the form and send it. The history shows your name with **on behalf of** and the name of the person. A task that you took stays yours after the substitution ends. When BPM sends e-mails, the substitute also gets the messages of the person who is away, with a note for whom they are. See [Notifications](../notifications/). ## Remove a substitute Select **Remove** next to it and confirm. The person who is away and the administrator can remove it; the substitute cannot. ## Substitutes of other people The administrator sees the substitutes of everybody and can set one for anybody: **Add substitute** also asks for the **Person who is away**. The list shows who set each one. ## From your AI The tools `Substitutes_list`, `Substitutes_create` and `Substitutes_remove` do the same from your AI app, with the same rules. See [Use BPM from your AI](../use-bpm-from-your-ai/). --- title: Notifications project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/notifications/ updated: 2026-11-20T18:44:26.142Z --- # Notifications > The e-mails and OpenPlatform notifications that BPM sends about tasks, and how to turn e-mails off. BPM tells people about their tasks by e-mail and, when BPM runs inside Total.js OpenPlatform, with an OpenPlatform notification. ## When BPM sends a message | Message | When | Who gets it | |---|---|---| | **A task waits for you** | A task arrives at a form. | The people who have the [permissions](../permissions/) of the step, except the person who sent the task there. | | **A task has been assigned to you** | Somebody [assigns](../assign-tasks/) the task to you. | You. | | **A task expires soon** | The reminder of the step, before the expiration. | The person who has the task, or the people of the step when nobody has it. | | **An overdue task has been escalated to you** | The escalation of the step, after the expiration. | The person or the people of the permission chosen in the step. | Reminders and escalations are set for each step; see [Reminders and escalation](../reminders-and-escalation/). Each message has the name of the task, the process, the step, the expiration and a button that opens the task in the Inbox. ![An e-mail about a task that waits](/files/Jaulxz28t61f.webp) The administrator gets messages only for the tasks assigned to them, because they see every task in the Inbox anyway. While a person is away, their [substitute](../substitutes/) gets a copy, with a note for whom it is. ## E-mails BPM sends e-mails when: - The administrator has set the e-mail server in [Settings](../settings/). Without it, BPM sends no e-mails. - You have an e-mail address: the one of your OpenPlatform account, or, for the administrator account, the **Email** in [Your account](../account/). BPM knows a person and their address after they open BPM once. ## Turn e-mails off 1. Open the **Inbox**. 2. Select **Notifications**. 3. Clear **Send me e-mails**. 4. Select **SAVE**. The window also shows where your e-mails go, and says so when the administrator has not set an e-mail server yet. ![The Notifications window of the Inbox](/files/Jauly129t60f.webp) ## OpenPlatform notifications When BPM runs inside OpenPlatform, the same messages also appear as OpenPlatform notifications, for the people who allow notifications in their OpenPlatform account. Selecting one opens the task in BPM. --- title: Comments and attachments project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/comments-and-attachments/ updated: 2026-11-20T18:44:22.513Z --- # Comments and attachments > Write comments on a task and attach files to it. Everybody who can see a task can write comments on it and attach files to it. Both appear in the history of the task, with the name of the person and the date. ![The history of a task with a comment and an attached file](/files/JaulxR1qt61f.webp) ## Who can see them The people who can see the task: the people who may take it or have it, who started it or worked on it, people with the permission **Tasks**, the administrator, and the [substitute](../substitutes/) of a person who is away. Nobody else can read them or add to them. ## Add a comment 1. Open the task: in the [Inbox](../inbox/), select **History** at the top of the form; in [Tasks](../tasks/), select the task in the list. 2. Write the text under **Comment**. 3. Select **Add comment**. ## Attach a file 1. Open the task as above. 2. Select **Attach a file** and choose the file. You can attach PDF, PNG, JPG, GIF, WebP, text, CSV, RTF, Word (`.docx`), Excel (`.xlsx`), PowerPoint (`.pptx`) and ZIP files of up to 10 MB each, and up to 20 files to one task. BPM refuses other files. ## Download a file Select the name of the file in the history. The browser downloads it. BPM keeps the files in the folder `databases/fs-attachments/` of the app; see [Data locations](../../reference/data-locations/). ## From your AI The tool `Tasks_comment` adds a comment from your AI app, and `Tasks_attachments` lists the files of a task with the link where you download each one in BPM. See [Use BPM from your AI](../use-bpm-from-your-ai/). --- title: BPM on a phone project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/bpm-on-a-phone/ updated: 2026-11-20T18:44:22.087Z --- # BPM on a phone > Use the Inbox on the small screen of a phone. BPM works in the browser of your phone. On a narrow screen the Inbox shows your tasks as cards that you tap, and the menu opens with a button. ![The Inbox on a phone with two tasks selected](/files/JaulxL1mt61f.webp) ## The menu Tap the menu button in the top left corner. The menu shows the screens that you may use; tap one to open it. The buttons of the toolbar show only their icons: | Icon | Button | |---|---| | Plus | **Create**: start a request. | | Arrows | **Refresh**: read the list again. | | Funnel | **Filters**: your saved filters. See [Search and saved filters](../search-and-saved-filters/). | | Bell | **Notifications**: your e-mails about tasks. See [Notifications](../notifications/). | | Checked box | **Selected**: the actions for the selected tasks. | ## Work on a task Each card shows the process and the step, the name and the subject of the task, and when it expires or when it arrived. A task that you have has the badge **assigned**. 1. Tap the card. 2. If nobody has the task yet, confirm **Assign**. 3. Fill in the form and send it with its button. ![The form of a task on a phone](/files/JaulxM1nt60f.webp) ## Search and select Type in **Search in tasks and their forms** above the cards. See [Search and saved filters](../search-and-saved-filters/). Tap the box at the left of a card to select it. With tasks selected, a line above the cards offers **Claim**, **Release** and **Clear**. See [Inbox](../inbox/). When there are more tasks than fit on one page, **Previous** and **Next** at the bottom move between the pages. --- title: Reports project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/reports/ updated: 2026-11-20T18:44:28.366Z --- # Reports > See tasks started, closed and overdue, the time per process and per step, where tasks wait and how many steps finish on time, and export it to CSV. **Reports** shows how your processes run: how many tasks started and closed, which ones are overdue, how long each process and each step takes, where tasks wait the longest and how many steps finish on time. ![The Reports screen with the tasks of the last 30 days](/files/JaulyN2Nt60f.webp) ## Who sees reports You need the permission **Reports** (`reports`), or to be the administrator. Then **Reports** appears in the menu. See [Permissions](../permissions/). A report counts only the tasks that you may read, by the same rules as [Tasks](../tasks/): - The administrator and people with the permission `tasks` see every task. - Everybody else sees the tasks that they have, started or worked on, and the open tasks that wait for them. While you are a [substitute](../substitutes/), the open tasks of the person who is away count too. So two people can see different numbers for the same process. ## Choose what to see 1. Open **Reports**. 2. In **Process**, keep **All processes** or choose one process. The list has the processes of the tasks that you may see. 3. Set the **First day** and the **Last day**. The last day is included. The report shows the last 30 days when you open it. The report changes as soon as you change a filter. Select **Refresh** to read it again. The days filter what happened in them: tasks started, tasks closed, the times and the steps on time. **Open now**, **Overdue now** and the waiting tasks always show the situation at this moment. ## The numbers | Number | What it counts | |---|---| | **Started** | Tasks created in these days. | | **Closed** | Tasks closed in these days, also the cancelled ones. | | **Open now** | Tasks that are not closed. | | **Overdue now** | Open tasks that wait at a form after the due date of their step. See [Expiration](../expiration/). | | **Average time to close** | From the start of a task to its close, for the tasks closed in these days. | | **Steps on time** | Of the steps with an expiration that people finished in these days, how many they finished before the due date. | Times show as minutes, hours (`h`) and days (`d`). ## Processes One row for each process, with the same numbers. ## Where tasks wait the longest now The open tasks by the step where they wait, the longest average wait first: how many wait there, the average and the longest wait, and how many of them are overdue. Use it to find the steps that slow your processes down. ## Time per step The steps that people finished in these days: how many times, the average and the longest time from the arrival of the task at the step to the moment when somebody sent its form, and the share finished on time. The start of a task is not a step, and a cancelled task did not finish its step. ## Export to CSV **1.** Select **Export CSV**. **2.** Choose what to export: - **Processes**, **Where tasks wait** or **Time per step**: the table of the screen. - **Tasks started in these days**: one row for each task, with its step, its result, its dates, whether it is overdue and its time in hours. The browser downloads a CSV file, for example `bpm-processes-2026-10-22-2026-11-20.csv`, that you open in a spreadsheet. Times are in hours. Texts that a spreadsheet would read as a formula, such as a name that starts with `=`, start with an apostrophe in the file. ## From your AI The AI tool `Reports_summary` answers the same report with the same filters and your permissions, for example when you ask "How many leave requests are overdue?". See [Use BPM from your AI](../use-bpm-from-your-ai/). --- title: Use BPM from your AI project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/use-bpm-from-your-ai/ updated: 2026-11-20T18:44:31.290Z --- # Use BPM from your AI > Connect your AI app to BPM with a personal token and work with your tasks from it. Connect your AI app to BPM and ask it about your work: what waits for you, what a request says, who has a task. The AI can also claim tasks, start processes and fill in forms for you. It works with your tasks and your permissions, through BPM's MCP server. ## Before you start You need the permission **MCP access** (`mcp`), or to be the administrator. Then **MCP access** appears in the menu. With Total.js OpenPlatform, the administrator of OpenPlatform gives the permission. See [Permissions](../permissions/). Your AI app also needs to reach the address of BPM, for example `https://bpm.example.com`. ## Create a personal token 1. Open **MCP access**. 2. Select **Create token**. 3. Enter a **Name** that tells you where you use it, for example `My laptop`. 4. Choose the **Expiration**: 7 days, 30 days, 90 days or 1 year. 5. Select **CREATE**. 6. Select **Copy token** and keep the token in a safe place. BPM shows it only once. ![The Create token window](/files/JauEt31gV61f.webp) The screen shows the address of the MCP server of your BPM and your tokens, with the date when each one expires and when it was last used. ![MCP access with the address of the MCP server and two tokens](/files/JauEt51hV60f.webp) Create one token for each AI app, so that you can revoke one without touching the others. ## Revoke a token 1. Open **MCP access**. 2. Select **Revoke** next to the token and confirm. The AI app that uses it stops working with BPM at once. An expired token stops working too: create a new one. A token gives the AI your permissions of the moment when you created it. With OpenPlatform, BPM updates them every time you sign in to BPM, so a permission that you lose also leaves your tokens. If you lose the permission **MCP access**, your tokens stop working. ## Add BPM to your AI app Every app needs two things: - The address of the server: the address of your BPM followed by `/$mcp/`, for example `https://bpm.example.com/$mcp/`. **MCP access** shows yours. - The header `Authorization: Bearer `. In the examples, replace the address with yours and `YOUR_TOKEN` with your token. ### Claude Code In a terminal, inside your project: ```bash claude mcp add --transport http bpm https://bpm.example.com/$mcp/ --header "Authorization: Bearer YOUR_TOKEN" ``` Then run `/mcp` in Claude Code to check the connection. ### Claude In Claude, open **Customize**, then **Connectors**, and choose **Add custom connector**. Paste the MCP address of your BPM, choose **No sign in** under Authentication, and add your token under **Request headers**: ```text Authorization: Bearer YOUR_TOKEN ``` BPM then appears in the tools of your conversations. ### Codex CLI Add it to `~/.codex/config.toml`: ```toml [mcp_servers.bpm] url = "https://bpm.example.com/$mcp/" http_headers = { "Authorization" = "Bearer YOUR_TOKEN" } ``` The Codex IDE extension shares this configuration. ### Cursor Add it to `.cursor/mcp.json` in your project, or to `~/.cursor/mcp.json` for every project: ```json { "mcpServers": { "bpm": { "url": "https://bpm.example.com/$mcp/", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } } ``` ### GitHub Copilot in VS Code In VS Code, add it to `.vscode/mcp.json` in your project. VS Code asks for the token the first time and keeps it for you: ```json { "inputs": [ { "type": "promptString", "id": "bpm-token", "description": "BPM token", "password": true } ], "servers": { "bpm": { "type": "http", "url": "https://bpm.example.com/$mcp/", "headers": { "Authorization": "Bearer ${input:bpm-token}" } } } } ``` Then ask your questions in the Copilot chat. ### Copilot CLI Create the file `~/.copilot/mcp-config.json` with this content: ```json { "mcpServers": { "bpm": { "type": "http", "url": "https://bpm.example.com/$mcp/", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } } ``` Then start Copilot CLI in a terminal and ask your questions. ### Gemini CLI Add it to `~/.gemini/settings.json`, or to `.gemini/settings.json` in your project: ```json { "mcpServers": { "bpm": { "httpUrl": "https://bpm.example.com/$mcp/", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } } ``` Run `gemini mcp list` to check the connection. ### Zed Write it in your settings file: ```json "context_servers": { "bpm": { "url": "https://bpm.example.com/$mcp/", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } ``` ### ChatGPT ChatGPT cannot send a token to a custom server, so it cannot connect to BPM for now. ## What the AI can do The AI sees only the tools that your permissions allow, and every tool checks your permissions again. | Tool | What it does | Permission | |---|---|---| | `Tasks_mine` | Your open tasks, with the step and the expiration. | `inbox` | | `Tasks_waiting` | The open tasks that nobody has yet and that you may claim. Together with `Tasks_mine`, the same tasks as your [Inbox](../inbox/). | `inbox` | | `Tasks_read` | A task: its process, its step, who has it, when it expires and the values of its forms. | `inbox` or `tasks` | | `Tasks_history` | The history of a task. | `inbox` or `tasks` | | `Tasks_search` | Search tasks by words (also in the values of their forms), process, status and dates. | `inbox` or `tasks` | | `Tasks_claim` | Take a task, as **Assign** in the Inbox. | `inbox` | | `Tasks_release` | Give back a task that you have, so that it waits again for everybody who may work on it. With `tasks`, any task. | `inbox` | | `Tasks_people` | The people to whom you may give a task. See [Assign a task to a person](../assign-tasks/). | `inbox` or `tasks` | | `Tasks_assign` | Give a task to a person. | `inbox` or `tasks` | | `Tasks_comment` | Add a comment to a task. See [Comments and attachments](../comments-and-attachments/). | `inbox` or `tasks` | | `Tasks_attachments` | The files of a task, with the link where you download each one in BPM. | `inbox` or `tasks` | | `Tasks_form` | The fields and the buttons of the form where a task waits. | `inbox` | | `Tasks_submit` | Send the form of a task that you have, with a button and the values. | `inbox` | | `Tasks_approve` | Approve a task that you have at an [approval step](../approvals/), with a comment. | `inbox` | | `Tasks_reject` | Reject a task that you have at an approval step, with a comment. | `inbox` | | `Tasks_cancel` | Cancel an open task. | `tasks` | | `Processes_startable` | The processes that you may start, with the fields of their first form. | `inbox` | | `Processes_start` | Start a process with the values of its first form. | `inbox` | | `Substitutes_list` | Your substitutes, and the people for whom you are the substitute. See [Substitutes](../substitutes/). | `inbox` | | `Substitutes_create` | Set a substitute for the days when you are away. | `inbox` | | `Substitutes_remove` | Remove one of your substitutes. | `inbox` | | `Reports_summary` | The [report](../reports/) of the tasks that you may read: started, closed, open, overdue, the time per process and per step, where tasks wait. It only reads. | `reports` | With the permission `tasks`, the AI reads and searches all tasks, as in [Tasks](../tasks/). Without it, the AI reads the tasks that you have, created or worked on, and the tasks that wait for you. While you are the substitute of a person who is away, the AI also sees and takes their open tasks, as your Inbox does. The AI cannot design processes, forms, templates or components, and cannot change settings. Everything that the AI does appears in the history of the task with the badge **via MCP**, next to your name. See [Tasks](../tasks/). ![The history of a leave request that was created, approved and closed from an AI](/files/JauEt71iV61f.webp) Examples of what you can ask: ```plaintext What is waiting for me in BPM? Show me the leave requests that I approved this month. Which step of the purchase requests took the longest last month? Claim the oldest leave request, approve it with the comment "Enjoy" and tell me what happens next. Start a leave request for a family visit. ``` ## Forms that a person sends The designer of each process decides, form by form, whether an AI may send it. See **An AI may send this form** in [Workflow actions](../workflow-actions/). The same choice applies to the approvals with `Tasks_approve` and `Tasks_reject`. When a form needs a person, the AI does not send it. It gives you a link instead: 1. Open the link in the browser where you use BPM. 2. The form opens in the [Inbox](../inbox/) with the values that the AI prepared. 3. Check the values, change them if you want, and send the form with its button. A link works only for you and for 7 days. ## MCP Code Mode Your AI can answer big questions in one go: it writes a small program that calls the tools of BPM for it, and only the result reaches the conversation. Answers come faster and spend far fewer tokens, for example when you ask for a summary of all your tasks by process and step. It works with AI agents that can run code on your computer, for example Claude Code, Codex CLI, Cursor or Gemini CLI. Nothing to set up: when your AI connects, BPM tells it how to use it. If you want to ask for it, one sentence is enough: ```plaintext Use MCP Code Mode of BPM to count my open tasks by process and step. ``` The program uses `https://bpm.example.com/$mcp/client.js`, which BPM builds for your token with the tools that you may use. Your AI downloads it with the same token. --- title: Form templates project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/form-templates/ updated: 2026-11-20T18:44:23.206Z --- # Form templates > Manage the templates that new forms start from. Every new form starts from a template, which you choose in **Template** when you [create the form](../forms/). BPM comes with **Default template**: an empty container with the standard UI Builder components. ![The Templates screen with the Default template](/files/JatfQ027D60f.webp) A template is a UI Builder design in JSON: its name, icon, styles, the component libraries it uses and the components it starts with. See [Design files](/uibuilder/1-0/reference/design-files/) in the UI Builder documentation. ## Create a template 1. Open **Templates** and select **Create**. The **Source-code** window opens with the JSON of an empty template. 2. Change the JSON, for example the `name`. 3. Select **SUBMIT**. ## Edit a template 1. Select the template, or its gear icon and **Edit**. 2. Change the JSON in the **Source-code** window. 3. Select **SUBMIT**. Forms made from the template earlier stay as they are. ## Use your own components To offer your own components in new forms, add the list of a component database to `components` in the template JSON, for example: ```json "components": { "default": "https://cdn.componentator.com/uibuilder/app.json", "mycomponents": "https://bpm.example.com/ui/mycomponents.json" } ``` See [UI components](../ui-components/). ## Remove a template Select the gear icon of the template, then **Remove**, and confirm. --- title: UI components project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/ui-components/ updated: 2026-11-20T18:44:31.290Z --- # UI components > Keep your own UI Builder components in BPM. The **UI components** screen stores your own UI Builder components. Components are kept in **databases**: a database is a folder with one subfolder for each component. How to write a component is described in [The component folder](/uibuilder/1-0/development/component-folder/) of the UI Builder documentation. ## Browse The screen opens on **Databases**. Select a database to see its components, and a component to see its files. ## Create a database or a component 1. Select **Create**, then **Create database** (on **Databases**) or **Create component** (inside a database). 2. Enter a name in lower case, using only the letters a to z, and press Enter. ## Add files to a component Open the component, select **Create** and then the file to create, or **Upload file** to upload one. Select a file to edit it, and **SUBMIT** to save it. ## Rename, clone, remove The menu of a database, component or file offers **Rename** and **Remove**. Databases and components also have **Clone**. ## Download and restore - **Options** > **Download database** downloads the open database as a `.zip` file. - On **Databases**, **Options** > **Upload .zip database** unpacks a `.zip` file into the folder of the databases. ## Use the components in forms BPM publishes each database as a list of components at `/ui/.json` and rebuilds the list a few seconds after every change. Inside a database, **Options** > **Copy link for editor** copies this address. Add it to `components` of a [form template](../form-templates/). New forms made from that template offer your components in the UI editor, in the group set in their `editor.html`. The folder of the databases is set in [Settings](../settings/) (**UI components** > **Directory**). --- title: Settings project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/settings/ updated: 2026-11-20T18:44:29.893Z --- # Settings > Change the name of the app, the e-mail server and the addresses of the editors. Open **Settings** in the menu. Change what you need and select **SUBMIT** at the bottom. ## Configuration **Name** is the name of the app, shown in the title of the browser and on the sign-in page. **Address of BPM** is the address where people open BPM, for example `https://bpm.example.com`. The links in [e-mails and notifications](../notifications/) and in [webhooks](../webhooks/) use it from the start. Without it, BPM takes the address from the first visit of the panel after each start. The key `url` of the [configuration file](../../reference/configuration/) wins over this field. ## E-mail The e-mail server that BPM uses for its [notifications](../notifications/). Without it, BPM sends no e-mails. ![The E-mail section of Settings](/files/Jaulyc2Yt61f.webp) | Setting | What it does | |---|---| | **SMTP server** | The host name of your SMTP server, for example `smtp.example.com`. | | **Sender e-mail** | The address that the e-mails come from, for example `bpm@example.com`. | | **Port** | The port of the server, for example `587`. Empty: `25`. | | **TLS connection (port 465)** | Connects with TLS from the start, as port `465` needs. | | **User name** and **Password** | The sign-in to the server, if it asks for one. Keep the password empty to keep the stored one; BPM never shows it again. | Select **Save and send me a test e-mail** to save the settings and receive a test e-mail at the address of your account. ## UI components ![The UI components and Processes settings](/files/JatfQV2XD60f.webp) | Setting | What it does | |---|---| | **Minify HTML** | Minifies the HTML files of your [UI components](../ui-components/) when they are served. | | **Directory** | The folder of the component databases, inside the folder `databases` of the app. Default `/fs-db/components/`. | ## Processes | Setting | What it does | |---|---| | **Link to UI editor** | The address of the form editor. Default `https://uibuilder.totaljs.com`. | | **Link to Flow editor** | The address of the process designer. Default `https://flow.totaljs.com`. | The editors run in the browser and talk directly to your BPM. Change these addresses only if you host the editors yourself. ## Other sections The **TMS**, **Total.js API** and **Total.js OpenPlatform** sections are general options of Total.js apps. BPM itself does not publish TMS messages or call the Total.js API. --- title: Your account project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/account/ updated: 2026-11-20T18:44:20.217Z --- # Your account > Change your name, login, e-mail and password, and sign out. The account menu is the icon in the top right corner. ![The account menu with Change credentials and Logout](/files/JatfPo1wD61f.webp) ## Change credentials 1. Select the account icon. 2. Select **Change credentials**. 3. Change the **Name**, the **Login**, the **Email** or the **Password**. Keep the password empty if you don't want to change it. 4. Select **SUBMIT**. When you change the password, all other open sessions are signed out; yours stays open. The name appears as **Assigned** on the tasks you take in the Inbox. BPM sends its [notifications](../notifications/) to the **Email**. ## Sign out Select the account icon and **Logout**. --- title: Run in production project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/production/ updated: 2026-11-20T18:44:26.985Z --- # Run in production > Run BPM as a service, protect it and back up its data. ## Run it in release mode Start BPM in release mode on the server: ```bash node index.js 8000 --release ``` Keep it running with a process manager or as a system service, and put a web server with HTTPS in front of it. BPM takes its own address from the first visit to `/admin/` after each start, and uses it for the links of the processes. Open it with the public address, for example `https://bpm.example.com/admin/`, after you restart it. ## Protect it - Change the default account right after the [first sign-in](../first-sign-in/). - People must sign in to start processes from the Inbox and to work on tasks. Only [public Start forms](../public-start-forms/) are open to everybody; make a Start form public only when you want that. - Use HTTPS, so that the password and the session cookie are not sent in clear text. - Restrict access to the server and to the PostgreSQL database. ## Back up the data - The PostgreSQL database holds the processes, their designs, the forms, the templates and all tasks. - The folder `databases` of the app holds the administrator account and your [UI components](../ui-components/). Back up both. See [Data locations](../../reference/data-locations/). --- title: Webhooks project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/webhooks/ updated: 2026-11-20T18:44:32.311Z --- # Webhooks > Send the events of the tasks of a process to another system, signed with a secret. A webhook lets another system follow the tasks of a process. Each time a task is created, assigned, goes to another step or is closed, BPM sends a short message to an address of that system, for example to update an ERP or to post in a chat. You need the permission **Processes** (`processes`), or to be the administrator. ## Add a webhook **1.** Open **Processes** and select the gear icon of the process, then **Webhooks**. In the [designer](../designer/), select **Webhooks** in the toolbar. **2.** Select **Add webhook**. **3.** In **Address**, enter the address that receives the messages, for example `https://erp.example.com/bpm/events`. **4.** Under **Events**, keep the events that you want: - **Task created**: a new task of the process. - **Task assigned**: somebody took the task, or it was given or escalated to a person. - **Step changed**: the task left a step, for example after **APPROVE**, and waits at the next one. - **Task closed**: the task is closed, also when it is cancelled. **5.** Keep **On** selected. **6.** Select **SAVE**. **7.** Select **Copy secret** and keep the secret in the system that receives the messages. BPM shows it only once. ![The Webhook window with the address and the four events](/files/Jaulyy2kt61f.webp) The address must start with `https://` and point to a server on the internet: BPM refuses IP addresses and names of the local network, such as `localhost`. It checks this when you save the webhook and again before every message. ## The Webhooks window ![The webhooks of a process with the last deliveries](/files/Jaulz12lt60f.webp) Each webhook shows its address, whether it is **on** or **off**, and its events: | Link | What it does | |---|---| | **Test** | Sends the event `ping` at once and tells you whether it arrived. | | **Edit** | Changes the address, the events, or turns the webhook on or off. | | **New secret** | Makes a new secret and shows it once. The old secret stops working at once. | | **Remove** | Removes the webhook and its deliveries. | **Last deliveries** lists the last 50 messages of the process: when, the event, the task, the result and the number of attempts. Select **Refresh** to read it again. ## What BPM sends A `POST` with JSON, a few seconds after the event: ```json { "event": "task.step", "date": "2026-11-20T09:14:02.120Z", "process": { "id": "JauXKx1ch61f", "name": "Purchase request", "version": 5 }, "task": { "id": "JaubJC1cN61f", "name": "Purchase: Desk lamp", "subject": "80 EUR", "reference": null, "number": null, "step": "Finance check", "result": null, "isclosed": false, "assigned": null, "url": "https://bpm.example.com/admin/inbox/?task=JaubJC1cN61f", "values": { "item": "Desk lamp", "amount": 80, "comment": "Fine" } }, "by": "Paul Green", "from": "Team lead approval / Approve" } ``` - `event` is `task.created`, `task.assigned`, `task.step`, `task.closed`, or `ping` for **Test**. - `task.step` is where the task waits when BPM sends the message, `task.values` are the values of its forms, and `task.url` opens it in the Inbox. The link needs the address of BPM in [Settings](../settings/). - `by` is the person who did it. `from` (only in `task.step`) is the step and the button that the task left. `assigned` (only in `task.assigned`) has the `name` of the person and the `type`: `claim`, `assign` or `escalate`. - A step that closes the task sends only `task.closed`. The headers: | Header | Value | |---|---| | `x-bpm-event` | The event, for example `task.closed`. | | `x-bpm-timestamp` | The time of sending in seconds since 1970. | | `x-bpm-signature` | `sha256=` and the HMAC-SHA256 of the timestamp, a dot and the body, made with the secret, in hex. | | `x-bpm-delivery` | The id of the message. A message sent again has the same id. | ## Check the signature Check every message before you trust it: compute the signature with your secret from the raw body and compare it. Refuse old timestamps, for example older than 5 minutes. An example in Node.js: ```javascript const crypto = require('crypto'); // body: the raw body of the request as a string, secret: the secret of the webhook function verify(headers, body, secret) { const timestamp = headers['x-bpm-timestamp']; const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(timestamp + '.' + body).digest('hex'); const signature = headers['x-bpm-signature'] || ''; const fresh = Math.abs(Date.now() / 1000 - Number(timestamp)) < 300; return fresh && signature.length === expected.length && crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected)); } ``` ## Answers, attempts and the log - Answer with a status `2xx` when you have the message. Anything else is a failure: another status, no answer within 10 seconds, or a redirect, which BPM does not follow. - A failed message is sent again after 1, 5 and 30 minutes. After the fourth attempt BPM gives it up and the log shows **Failed** with the reason. - Messages can arrive more than once and, after a failure, out of order. Use `x-bpm-delivery` to skip a message that you already have, and `date` for the order. - Turning a webhook **off** stops its new messages. Events that happened while it was off are not sent later. - The log keeps the messages for 30 days. --- title: Scheduled starts project: BPM version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/guides/scheduled-starts/ updated: 2026-11-20T18:44:29.025Z --- # Scheduled starts > Start a process by itself at set times with the Crontab component of Flow. A process can start by itself at set times, for example a safety check every Monday at 8:00. The **Crontab** component of the Flow library starts it, and the BPM component **Create** makes the task. ## Add the Crontab component The Crontab is in the library of Flow components: 1. In the [designer](../designer/), open the **Add** (plus) menu of the toolbar and select **Download components**. See [Download components](/flow/11-1/guides/download-components/). 2. Find **Crontab** and install it. It appears in the group **Triggers** of the designer. ## Example: a weekly safety check This process creates a task **Safety check: Warehouse** every Monday at 8:00. It waits in the Inbox of people with the permission `staff`, and closes when one of them sends the form with **DONE**. ![A process that starts every Monday: Crontab, Create, the form Safety check and Done](/files/JaulyS2Qt61f.webp) **1.** Create the process and a form **Safety check** with a field **Notes** and a button **DONE**. See [Forms](../forms/). **2.** Drag **Crontab**, **Create** (group **Workflows**), the form **Safety check** and **Close** onto the canvas, and connect: - the output of **Crontab** to the input of **Create**, - the output **Created** of **Create** to the input **No data** of **Safety check**, - the output **DONE** of **Safety check** to the input of **Close**. **3.** Double-click **Crontab** and set it: | Setting | Value | |---|---| | **Timers** | `0 8 * * 1` | | **Time zone offset** | `0` for UTC, or the offset of your time zone (see Timers below) | | **Type** | **Object** | | **Random data** | off | | **Data** | `{ area: 'Warehouse' }` | **4.** Double-click **Create**. In **Name**, enter `Create`, and in **Template name**, enter `Safety check: {{ value.area }}`. The data of the Crontab becomes the data of the task, so `value.area` is `Warehouse`. **5.** Double-click **Safety check**. Set **Workflow action** to **Step**, **Permissions** to `staff` and, if you want, **Expiration** to `2 days`. See [Workflow actions](../workflow-actions/). **6.** Double-click **Close** and enter `Done` in **Name** and in **Template result**. **7.** Select **APPLY** in the toolbar, and then [publish the process](../process-versions/). From now on, every Monday at 8:00 a new task waits in the [Inbox](../inbox/). ![The settings of the Crontab with the timer of Mondays at 8:00](/files/JaulyU2Rt60f.webp) ## Timers A timer has five parts: the minute, the hour, the day of the month, the month and the day of the week (`0` is Sunday). `*` means every one. | Timer | When | |---|---| | `0 8 * * 1` | Every Monday at 8:00. | | `30 7 * * 1-5` | Monday to Friday at 7:30. | | `0 9 1 * *` | The first day of every month at 9:00. | | `0 12 * * *` | Every day at noon. | The server counts the time in UTC. **Time zone offset** turns it into your time: enter the offset in minutes that the Crontab shows under the field for your browser, for example `-60` for Central European winter time. With `0`, the timers are in UTC. Add several timers to the list to start the process at several times. ## Good to know - Only the published version starts tasks. The draft in the designer does not, also while it is open, and neither do older versions. - A started task has no person who created it, so the **Create** menu of the Inbox does not need a Start node. - To stop the starts, remove the timers or the Crontab, or close the process. See [Processes](../processes/). --- title: Workflow components project: BPM version: 1.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/reference/workflow-components/ updated: 2026-11-20T18:44:32.311Z --- # Workflow components > The BPM components of the designer, with their inputs, outputs and settings. These components are in the designer of every process. Double-click a node to change its settings. Every component has **Read me** in its settings window. ## Start The entry point of a process. Each Start node is an item in the **Create** menu of the [Inbox](../../guides/inbox/). | | | |---|---| | Output | **Start**: connect it to the input **No data** of the first form. | | Settings | **Name**: the name in the **Create** menu. **Permissions**: who can start the process. **Public form**: anyone can start it on its public address. See [Permissions](../../guides/permissions/) and [Public Start forms](../../guides/public-start-forms/). | ## Forms Every form of the process is a component in the group **Forms**. See [Forms](../../guides/forms/) and [Workflow actions](../../guides/workflow-actions/). | | | |---|---| | Inputs | **No data**: shows the form. Each **Flow Input** of the form design adds an input. | | Outputs | One for each **Flow Output** of the form design, and **Expire**. See [Expiration](../../guides/expiration/). | | Settings | **Path for storing form data**, **Icon**, **Color**, **Workflow action** (**None**, **Create**, **Step**, **Close**), and for the actions **Workflow name**, **Permissions**, **An AI may send this form**, **Expiration**, the reminder and the escalation, the templates and, for **Step** and **Close**, **Approval by several people**. See [Approvals by several people](../../guides/approvals/). | | Button | **Edit design** opens the form in the UI editor. | ## Create Creates a task from the incoming data, without a form. | | | |---|---| | Input | **Payload**: the data of the new task. | | Outputs | **Created**: the new task. **Error**. | | Settings | **Name**, **Icon**, **Color**, **Path for storing form data**, templates. | ## Step Moves the incoming task to this step and adds the incoming data to it. | | | |---|---| | Input | **Payload**: a task coming from another BPM node. | | Outputs | **Next**. **Error**: the data did not come with a task. | | Settings | **Name**, **Icon**, **Color**, **Path for storing form data**, templates. | ## Close Closes the incoming task and adds the incoming data to it. | | | |---|---| | Input | **Payload**: a task coming from another BPM node. | | Outputs | **Data**. **Error**: the data did not come with a task. | | Settings | **Name**, **Icon**, **Color**, **Path for storing form data**, templates. | ## Subtasks Splits the task into subtasks. See [Subtasks](../../guides/subtasks/). | | | |---|---| | Input | **Payload**: a task. | | Outputs | One for each subtask, and **Check**. | | Settings | **Name**, **Icon**, **Color**, the list of subtasks, templates. | ## Extend Changes the fields, the step or the data of a task. See [Extend input](../extend-input/). | | | |---|---| | Input | **Extend**: an object with the changes. | | Output | **Error**: an object with `error` and, if known, the task. | | Settings | **Name**, **Path for storing incoming data**. | ## Read Loads tasks by their ID and sends each one on as a task, so that a Step, Close or Extend node can work with it. | | | |---|---| | Input | **Task ID**: a task ID as text, a list of objects with `id`, or the data of the **Check** output of Subtasks (it reads all subtasks). | | Outputs | **Data**: one message for each task, with the data of the task. **Error**: a list of `{ name, error }` for the IDs that were not found. | To send a task one way or another by its data, use the **Switch** component of Flow. See [Conditions](../../guides/conditions/). Templates and the task fields are described in [Task fields and templates](../task-fields/). --- title: Task fields and templates project: BPM version: 1.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/reference/task-fields/ updated: 2026-11-20T18:44:32.311Z --- # Task fields and templates > The fields of a task and how templates fill them from the data. Besides its data, every task has six text fields. They are shown in the [Inbox](../../guides/inbox/) and in [Tasks](../../guides/tasks/), so people can tell the tasks apart. | Field | Template setting | Shown in | |---|---|---| | Name | **Template name** | Inbox, Tasks, the title of the task window | | Subject | **Template subject** | Inbox, Tasks | | Number | **Template number** | Inbox, Tasks | | Result | **Template result** | Tasks | | Reference | **Template reference** | Tasks | | Body | **Template body** | stored with the task | ## Templates Form nodes with an action, and the components **Create**, **Step**, **Close** and **Subtasks**, have a template for each field. A template is text with placeholders in double curly brackets. `value` is the data that arrives, for example the values of the form: ```text Leave: {{ value.reason }} ``` ```text Approved: {{ value.comment }} ``` A template can also be plain text, for example `Approved` in **Template result** of a Close node. When a step has no template for a field, the field keeps its value from the earlier steps. When a **Create** has no **Template name**, the task gets the name of the output (form) or of the node. ## Data of the task The values of the forms are stored in the data of the task, under the **path** of each field of the form. Every step adds its values, so a later form receives all values sent so far. With **Path for storing form data**, the values of one node are stored under that key instead, for example `approval`. --- title: Extend input project: BPM version: 1.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/reference/extend-input/ updated: 2026-11-20T18:44:32.311Z --- # Extend input > The object that the Extend component expects. The **Extend** component changes an existing task. Send it an object with the keys that you want to change. All keys are optional, except that the task must be known: either the message comes from another BPM node with a task, or the object has `id`. | Key | Type | What it changes | |---|---|---| | `id` | String | The ID of the task to change. | | `name`, `subject`, `number`, `reference`, `body` | String | The task fields. See [Task fields and templates](../task-fields/). | | `attrs` | Object | Added to the data of the task. With **Path for storing incoming data**, stored under that key. | | `workflow` | String | Moves the task to the step whose name contains this text. | | `workflowid` | String | Moves the task to the node with this ID. | | `userid` | String | Assigns the task. | | `isclosed` | Boolean | Closes the task. | | `dtbeg`, `dtend` | Date | Dates of the task. | | `icon`, `color` | String | Icon and color of the task. | ## Example ```json { "id": "Jatc0c1cK61f", "reference": "HR-2026-014", "attrs": { "days": 5 } } ``` If the task or the step does not exist, the **Error** output sends an object with `error`, for example `Workflow: "nope" not found`. --- title: Configuration file project: BPM version: 1.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/reference/configuration/ updated: 2026-11-20T18:44:32.311Z --- # Configuration file > The keys of the config file of BPM. The file `config` in the folder of the app holds the settings that BPM needs before it can read its database. Each line is `key : value`. Restart BPM after a change. | Key | Example | What it does | |---|---|---| | `database` | `postgresql://user:password@localhost:5432/bpm?pooling=1` | The connection string of the PostgreSQL database. Required. | | `$cors` | `https://uibuilder.totaljs.com` | The site that may call BPM from the browser. It lets the hosted form editor load the lists of your [UI components](../../guides/ui-components/). If you change **Link to UI editor** in [Settings](../../guides/settings/), put the same address here. | | `$api` | `/admin/` | The address of the API of the screens. Do not change it. | | `url` | `https://bpm.example.com` | The address where people open BPM. Links in e-mails, notifications and [webhooks](../../guides/webhooks/) use it, and it wins over **Address of BPM** in [Settings](../../guides/settings/). Optional. | | `allow_local_webhooks` | `true` | For tests only: lets [webhooks](../../guides/webhooks/) call addresses of this computer and of the local network, and accepts their self-signed certificates. Default off. Never use it in production. It works only in this file. | | `$mcp` | `true` | Turns on the MCP server at `/$mcp/`, so that people can [use BPM from their AI](../../guides/use-bpm-from-your-ai/). With `false`, the server and **MCP access** tokens do not work. | Everything else, such as the name of the app and the editor addresses, is changed in [Settings](../../guides/settings/) and stored in the database. ## Port and mode The port and the mode are given on the command line, not in `config`: ```bash node index.js 8000 --release ``` See [Install](../../guides/install/) and [Run in production](../../guides/production/). --- title: Data locations project: BPM version: 1.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/reference/data-locations/ updated: 2026-11-20T18:44:32.311Z --- # Data locations > Where BPM keeps its data, for backups. | Data | Where | |---|---| | Processes, their designs, forms, form templates, settings, tasks, the history, comments and substitutes | The PostgreSQL database set in `database` of the [configuration file](../configuration/). | | The administrator account | `databases/memorize_pref.json` in the folder of the app. | | Your UI components | `databases/fs-db/components/` (the **Directory** in [Settings](../../guides/settings/)), and the generated lists `databases/ui_.json` and `.js`. | | Uploaded files | `databases/fs-files/`. | | Files attached to tasks | `databases/fs-attachments/`. See [Comments and attachments](../../guides/comments-and-attachments/). | Back up the database and the folder `databases` together. ## The tables BPM creates its tables on the first start. They all start with `tbl_` or `cl_`, and the views with `view_`, so you can keep BPM in its own database or next to other tables. --- title: Build a leave request process project: BPM version: 1.0 section: recipes language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/recipes/leave-request/ updated: 2026-11-20T18:44:32.311Z --- # Build a leave request process > A complete process: a request form, an approval step in the Inbox and automatic closing. This recipe builds a process where an employee asks for leave, a manager approves it in the Inbox, and the task is closed. Requests that nobody approves within 3 days are closed automatically. ## 1. Create the process 1. Open **Processes** and select **Create**. 2. Enter the **Name** `Demo process` and the **Category** `Demo`, then select **SUBMIT**. 3. Select the new card to open the designer. ## 2. Create the request form 1. Select the blue **+** button, enter the **Name** `Leave request`, choose **Default template** and select **SUBMIT**. 2. In the UI editor, drag a **Form** into the container and a **Textbox** into the form. 3. In the settings of the Textbox, set the name to `Reason`, the path to `reason`, and make it required. 4. In the settings of the Form, set the text of the button to `SEND`. 5. Drag a **Flow Output** into the container. Set its **Name** to `Send` and its **Target** to the submit of the form. 6. Select **SAVE** and close the editor. ## 3. Create the approval form Repeat step 2 with the **Name** `Approval`, a field `Comment` with the path `comment`, the button `APPROVE` and a Flow Output `Approve`. ## 4. Draw the process Reload the designer, then drag these nodes onto the canvas and connect them: | From | Output | To | Input | |---|---|---|---| | **Start** | **Start** | **Leave request** | **No data** | | **Leave request** | **Send** | **Approval** | **No data** | | **Approval** | **Approve** | **Close** | **Payload** | | **Approval** | **Expire** | **Close** | **Payload** | ![The finished process in the designer](/files/Jatkpu1du60f.webp) ## 5. Configure the nodes | Node | Settings | |---|---| | **Start** | **Name** `Leave request` | | **Leave request** | **Workflow action** Create, **Workflow name** `Leave request`, **Template name** `Leave: {{ value.reason }}` | | **Approval** | **Workflow action** Step, **Workflow name** `Approval`, **Expiration** `3 days`, **Template subject** `Approved: {{ value.comment }}` | | **Close** | **Name** `Done`, **Template result** `Approved` | Select **APPLY** in each settings window, and then **APPLY** in the toolbar. Then select **Publish** in the toolbar, write `First version` in **What changed** and select **PUBLISH**. See [Process versions](../../guides/process-versions/). ## 6. Try it 1. Open **Inbox**, select **Create** > **Leave request**, type a reason, for example `Demo vacation`, and select **SEND**. 2. The task **Leave: Demo vacation** appears in the Inbox at the step **Approval**. 3. Select it, confirm **Assign**, type a comment and select **APPROVE**. 4. Open **Tasks**: the task is at the step **Done**, closed, with the result **Approved** and the subject **Approved: **. --- title: Ask two people at once project: BPM version: 1.0 section: recipes language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/recipes/parallel-reviews/ updated: 2026-11-20T18:44:32.311Z --- # Ask two people at once > Use Subtasks to send one request to two reviewers at the same time. This recipe changes the [leave request](../leave-request/) so that the manager and HR review each request at the same time, each one in a subtask of their own. To let several people decide on the same task instead, see [Approvals by several people](../../guides/approvals/). ## 1. Add the Subtasks node 1. Open the designer of the process. 2. Remove the connection from **Send** of **Leave request** to **Approval**. 3. Drag **Subtasks** onto the canvas and connect **Send** of **Leave request** to its input. 4. Double-click **Subtasks**. Set **Name** to `Reviews`. 5. With **Create task**, add two subtasks named `Manager` and `HR`. 6. Set **Template subject** to `Review: {{ value.reason }}`. 7. Select **APPLY**. ## 2. Send both subtasks to the approval form After a moment, the node shows the outputs **Manager**, **HR** and **Check**. Connect **Manager** and **HR** to the input **No data** of **Approval**, select **APPLY**, and then **Publish** in the toolbar. See [Process versions](../../guides/process-versions/). ## 3. Try it 1. Start a new leave request in the Inbox. 2. The Inbox shows two tasks with the subject **Review: **, one for each subtask. 3. Approve one of them. About a minute later, **Check** of the Subtasks node sends the main task with the list of its subtasks; the approved subtask has `isclosed: true`. Connect **Check** to the next part of your process, for example Flow components that continue when all subtasks are closed. See [Subtasks](../../guides/subtasks/). --- title: Approve purchases by their amount project: BPM version: 1.0 section: recipes language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/recipes/purchase-approval/ updated: 2026-11-20T18:44:32.311Z --- # Approve purchases by their amount > A purchase request that goes to one manager or to two people of the management, by its amount. This recipe builds a purchase request: a request up to 1000 EUR needs the approval of any one manager, a bigger one the approval of two people of the management. Approved and rejected requests are closed with their result. ## 1. Create the process and the forms **1.** Open **Processes**, select **Create**, enter the **Name** `Purchase request` and select **SUBMIT**. Open its designer. **2.** Create a form `Purchase request` (see [Forms](../../guides/forms/)) with a **Form** with two fields, **Item** (path `item`, required) and **Amount (EUR)** (path `amount`, type number, required), the button `SEND`, and a Flow Output `Send` for the submit of the form. **3.** Create a form `Approval` with two **Form** components: - one with the field **Comment** (path `comment`) and the button `APPROVE`, with a Flow Output `Approve` for its submit, - one with the field **Reason** (path `comment`) and the button `REJECT`, with a Flow Output `Reject` for its submit. **4.** Install the **Switch** component. See [Conditions](../../guides/conditions/). ## 2. Draw the process Drag these nodes onto the canvas and connect them. The form **Approval** is on the canvas twice. | From | Output | To | Input | |---|---|---|---| | **Start** | **Start** | **Purchase request** | **No data** | | **Purchase request** | **Send** | **Switch** | **Input** | | **Switch** | **Over 1000** | **Approval** (management) | **No data** | | **Switch** | **Up to 1000** | **Approval** (manager) | **No data** | | both **Approval** nodes | **Approve** | **Close** `Approved` | **Payload** | | both **Approval** nodes | **Reject** | **Close** `Rejected` | **Payload** | ![The purchase request process in the designer](/files/JaulxY1ut61f.webp) ## 3. Configure the nodes | Node | Settings | |---|---| | **Start** | **Name** `Purchase request`, **Permissions** `staff` | | **Purchase request** | **Workflow action** Create, **Workflow name** `Request`, **Permissions** `staff`, **Template name** `Purchase: {{ value.item }}`, **Template subject** `{{ value.amount }} EUR` | | **Switch** | **Message data**, path `amount`; conditions `>` Number `1000` named `Over 1000`, and `<=` Number `1000` named `Up to 1000` | | **Approval** (management) | **Workflow action** Step, **Workflow name** `Management approval`, **Approval by several people** All of them, **Approvers** `mark@example.com, paul@example.com`, **Approve with the button** Approve, **Reject with the button** Reject, **Path of the comment** `comment` | | **Approval** (manager) | **Workflow action** Step, **Workflow name** `Manager approval`, **Approval by several people** Any one of them, **Approvers** `managers`, the same buttons and path | | **Close** | **Name** `Approved`, **Template result** `Approved` | | **Close** | **Name** `Rejected`, **Template result** `Rejected` | Use the e-mails of your own people and your own permissions. Select **APPLY** in each settings window and in the toolbar. Then select **Publish** in the toolbar, write `First version` and select **PUBLISH**. See [Approvals by several people](../../guides/approvals/) and [Process versions](../../guides/process-versions/). ## 4. Try it 1. In the Inbox, select **Create** > **Purchase request**, enter `Laptops for the new team` and `2400`, and select **SEND**. 2. The task waits at **Management approval** in the Inbox of both approvers. The first one assigns it, writes a comment and selects **APPROVE**. The task leaves their Inbox and waits for the second one. 3. The second approver approves it too. The task is closed with the result **Approved**, and its history shows both decisions with their comments. 4. A request of `300` goes to **Manager approval**, where one decision of any manager is enough. --- title: General questions project: BPM version: 1.0 section: faq language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/faq/general/ updated: 2026-11-20T18:44:15.216Z --- # General questions > Short answers about what BPM is and what it needs. ## Do I need Total.js Flow? No. BPM contains everything it needs to run processes. It uses the Flow designer, which your browser loads from `flow.totaljs.com`, and the [Flow documentation](/flow/11-1/guides/designer-overview/) applies to it. ## Why does BPM need internet access in the browser? The screens load their scripts from the Total.js CDN, the designer comes from `flow.totaljs.com` and the form editor from `uibuilder.totaljs.com`. The server of BPM itself only needs its PostgreSQL database. ## Can a process use other Flow components? Yes. Use **Add** > **Download components** in the designer. See [Download components](/flow/11-1/guides/download-components/). ## Where is the home page of BPM? BPM runs at `/admin/` of its address, for example `https://bpm.example.com/admin/`. The address without a path opens it too. ## Where are my data? In the PostgreSQL database and in the folder `databases` of the app. See [Data locations](../../reference/data-locations/). --- title: Troubleshooting project: BPM version: 1.0 section: faq language: en license: Total.js Enterprise url: https://totaljs.es/docs/bpm/1-0/faq/troubleshooting/ updated: 2026-11-20T18:44:20.217Z --- # Troubleshooting > What to check when the designer, a form or a task does not do what you expect. ## The designer or the form editor keeps loading The browser must reach `flow.totaljs.com` and `uibuilder.totaljs.com` (or the addresses in [Settings](../../guides/settings/)) and, at the same time, your BPM. Check the internet access of the browser, and that a browser extension or a company proxy does not block the editors. ## A new form has no outputs in the designer The outputs come from the **Flow Output** components of the form design. Open the form with **Edit design**, check that it has a Flow Output with a name, select **SAVE**, and reload the designer. ## My new Start node is not in the Create menu Select **APPLY** in the designer, and then **Publish**: the Inbox shows the published version of the process. See [Process versions](../../guides/process-versions/). Also check that the process is not closed on the **Processes** screen. ## A task does not appear in the Inbox The Inbox shows only tasks that wait at a form with the action **Step** or **Close**, and that are assigned to you or to nobody. Check in [Tasks](../../guides/tasks/) where the task is: the column **Editable** says whether it waits at a form, and **Assigned** who has it. ## The template of a field shows nothing Check that the placeholder uses `value.` and the path of the form field, for example `{{ value.reason }}`, and that you selected **APPLY** and **Publish** after changing the node. A task keeps the templates of the version where it started. ## My change does not apply to a task A task finishes on the version of the process where it started. Your change applies to the tasks that start after you publish it. See [Process versions](../../guides/process-versions/). ## Nobody gets e-mails Check the **E-mail** section of [Settings](../../guides/settings/) and select **Save and send me a test e-mail**. A person gets e-mails only with an e-mail address in their account and with **Send me e-mails** on in the **Notifications** window of the Inbox. See [Notifications](../../guides/notifications/). ## A person is missing in Assign to or in Substitutes BPM knows a person after they open BPM once. **Assign to** shows only the people who have the permissions of the step.