Low-Code Designer > Apps > App Builder / Business Processes Associated with Apps

Business Processes Associated with Apps

Business processes associated with apps describe the logic of the app. For example, for the Invoice app, you can create an approval process to describe all the stages of invoice approval in your company.

начало внимание

When you work with apps, you might also set up the main app process. It is created simultaneously with the app and has some specific features. Read more about the main app process in this article.

конец внимание

How to create a new process?

Business processes associated with apps are created in a similar way to the global processes.

начало внимание

Only the users included in the Administrators group can model, configure and edit business processes.

конец внимание

Click the gear icon __________.png next to the App name and select Business Process.

mceclip0.png

You will see a page with the list of the business processes associated with the app.

To add a new business process, click + Process.

app_pr_02.PNG

Fill in the fields in the provided window:

app_pr_03.PNG

  • Name - specify the name of the process.
  • Code - the code is used for working with API. It is generated automatically but you can edit it if necessary.
  • Parent category - specify the folder where the process will be located. To create a new folder, go to the page with the list of business processes and click "+ Folder".

After filling in all the fields, click Create.

The process designer page will open where you can model the process in the same way as a global business process.

app_pr_04.PNG

Context of the app and the business process

In the designer, on the Context tab and on the forms of the start event and tasks, you will find a switch that allows you to work with both process variables and app properties.

1.png

Select the process context if you want to work with variables that are directly related to the business process but are not relevant to the app. Such variables can be an initiator, a comment on a task, an executor of a swimlane, another app, etc. The business process context also contains a variable that stores the app you are currently working with.

Switch to the app context if you want to set up its forms or add properties that are relevant only to the app, for example, payment date or a contract number.

When you add a new property to the form of a start event or a task, it is automatically added to the viewing/editing forms of the app item. If you remove a property in the designer, it will be also removed from the app creation, viewing and editing forms.

Adding app statuses in a process

When setting up a business process associated with an app, you can add or change app statuses directly in the process designer on the Status tab.

mceclip0.png

This article describes in detail how to add statuses in the app settings. In the process designer, statuses are configured in exactly the same way.

How to start processes associated with apps

After you have created the process, you can bind it to buttons on the app page and the creation and viewing forms of the items. Once a user clicks the button on the form, the process starts. 2_.png