# Workflow creation and editing

![Workflow Management](https://docs.profuzdigital.com/uploads/images/gallery/2024-11/scaled-1680-/LYaimage.png)

Profuz LAPIS is using [Business Process Model and Notation](https://en.wikipedia.org/wiki/Business_Process_Model_and_Notation) for creating and managing workflows. Creation of new workflows and automation can be done only with that scripting model language. In order to create a new workflow definition, go to **Workflows → Create New** from where it is possible to design an automation diagram and scripting. Workflows can be created also from existing BPMN files - **Workflows → Create New** and at the bottom of the page press **Select BPMN** button to choose an existing **.bpmn** file from your computer. Similarly you may update an existing workflow definition from a **.bpmn** file - go to the definition and from the object menu select "**Update Content**". Note that the **.bpmn** must have the same [process ID](https://docs.camunda.org/manual/latest/user-guide/process-engine/process-engine-concepts/#keys-and-versions). Any saved modification of a workflow definition will create a new version. Running instances of the same workflow definition will continue to use the version of the workflow definition with which they were started.

Example of an **Approve Document** process:

[![image.png](https://docs.profuzdigital.com/uploads/images/gallery/2024-11/scaled-1680-/dzzimage.png)](https://docs.profuzdigital.com/uploads/images/gallery/2024-11/dzzimage.png)

<p class="callout info">**Hint**: Please contact your supplier for any workflow automation assistance. </p>

Profuz LAPIS uses Camunda 7 BPMN engine. You may read more in its documentation [here](https://docs.camunda.org/manual/latest/).

For the integrated BPMN editor you may find more information [here](https://bpmn.io/).

You may edit BPMN diagrams also offline in the Camunda Modeler desktop application. You can find it [here](https://camunda.com/download/modeler/).

Note that where forms are needed LAPIS uses its own UI types. There are two types of forms: Workflow Instance form and Workflow Task form. There are default base types for each of these types - **Workflow Instance** (type name: **WorkflowInstance**) and **Workflow Task** (type name: **WorkflowTask**). You can create subtypes of those base types, add additional properties, set the properties placement and even change the view and edit components to change their corresponding views in a way you need. In a BPMN diagram you may use the name of you newly created subtypes to tell LAPIS to use those types for the corresponding user tasks or the workflow instance itself. If no custom form is specified LAPIS will use the default base types. Read more in the [examples](https://docs.profuzdigital.com/books/profuz-lapis-user-guide/page/workflow-example-1).