Home / Flowable / Lesson 4

Your first app (demo)

Essentials. A free Flowable lesson in simple English (3:32 minutes).

Install guide: Flowable with Docker, Spring Boot or the Flowable Trial (PDF)

Open in the academy (practice, progress and notes)

Chapters

Lesson text

0:00 Introduction

Welcome to lesson four. Today we leave the whiteboard and use a real Flowable application. We will build a small leave request app, publish it, and run it. We use the free, open-source Flowable apps on our own computer. Flowable Design, which the exam uses, looks different, but the steps are the same: model, app, publish, run. This is an independent course. It is not made or approved by Flowable.

First, we sign in. This is a test system on our own computer, with a default user called admin.

After signing in, we see four apps. The Task app is where people do their work. The Modeler app is where we design models. Let's open the Modeler.

0:47 Design the process

We create a process model. We give it a name, Leave request, and a key. The key is the technical name of the model, without spaces.

The editor opens. A start event is already on the canvas. On the left is the palette, with all the BPMN elements we can use.

We click the start event, and a small menu appears next to it. The person icon adds a user task. Flowable connects the two with a sequence flow.

The new task is selected. From its menu, we add an end event. Every path in a process should finish at an end event.

Now we click the task. Its properties appear at the bottom. We give it a clear name: Approve leave.

Who should do this task? We open Assignments. We keep the default, assigned to process initiator. That means the person who starts the request gets the task. In a real app, you would choose a manager or a group here.

We save the model with the save button, and close the editor.

2:01 Create and publish the app

A model alone does not run. We put it in an app. In the Apps tab, we create a new app called HR app.

Next, we choose which models belong to this app. We select our Leave request process.

Now we save the app and tick Publish. Publishing deploys the app, so people can start it. Each time you publish, Flowable makes a new version.

2:36 Run it

Let's use our app. We open the Task app, go to Processes, and start a new process.

We choose Leave request and click Start process. Now a process instance is running. It has one active task: Approve leave.

In the Tasks tab, the task is waiting for us, because we started the process.

We click Complete. The task is done, the flow reaches the end event, and the process instance ends.

3:12 Summary

Let's review. We designed a process model, put it in an app, published the app, started a process instance, and completed its user task. In the next lesson, we learn the exact meaning of model, definition and instance. Thank you for learning with us.

Practice questions

You saved a process model. Can people start it now?

Answer: No, it must be in an app that is published. A model must be in an app, and the app must be published (deployed), before people can start it.

The user task is assigned to the process initiator. Who gets the task?

Answer: The person who started the process. The process initiator is the person who started the process instance.

You publish the same app again after a change. What does Flowable make?

Answer: A new version. Each publish creates a new version of the deployed definitions.

Sources