Model types
Essentials. A free Flowable lesson in simple English (3:52 minutes).
Open in the academy (practice, progress and notes)
Chapters
- 0:00 What you will learn
- 0:18 Process, case and decision
- 0:51 Forms
- 1:13 Data and service models
- 1:43 Events, security and AI agents
- 2:18 Practice question 1
- 2:51 Practice question 2
- 3:23 Summary
Lesson text
0:00 What you will learn
Welcome to lesson three. Today we look at the main types of models in Flowable Design, and when to use each one. A model is a design for one part of your app. Different parts need different models. This is an independent course. It is not made or approved by Flowable.
0:18 Process, case and decision
Let's build an app for a travel company. First, remember the three standards from lesson one. A process model uses BPMN. Choose it when the order of the steps is known. For example, booking, then payment, then tickets. A case model uses CMMN. Choose it when the work can change from one situation to another, like helping a traveller who has lost a passport. A decision table uses DMN. Choose it for rules. For example, what discount does this customer get?
0:51 Forms
Next, people need a way to enter and see information. For that, we create a form model. Our travel form asks for a name, a city, and a travel date. A process or a case can use this form, for example when a person starts a request or completes a task. So the form shows the information, and the process or case controls the work.
1:13 Data and service models
Now we need business data, such as our customers. A data object model describes the structure of that data. For example, each customer has a name, an email, and a city. A service model describes work that a service can do. For example, our app can ask another system for hotel prices. So think about two questions. What information do we have? That is data. What should a system do? That is a service.
1:43 Events, security and AI agents
There are more model types. Event and channel models help systems share news about something that happened. For example, a flight was cancelled. The event describes the news, and the channel is how it arrives or leaves. A security policy model helps control who can do what. Newer versions also have agent models. An AI agent can do tasks like sorting requests, or finding details in a document. People should still check important results. Remember, all the models that belong together go into one app. You do not need every type of model in every app.
2:18 Practice question 1
Question one. A company wants one place to keep the rules that decide a customer's discount. Which model fits best? A, a form. B, a decision table. C, a channel. Or D, a security policy.
The answer is B, a decision table. It keeps the rules together, and gives a result, such as the right discount.
2:51 Practice question 2
Question two. You need to describe the structure of your customer data, such as name, email and city. Which model fits best? A, a process. B, an AI agent. C, a data object. Or D, a decision table.
The answer is C, a data object. It describes the structure of business data.
3:23 Summary
Let's review. Use a process when the order is known, and a case when the order can change. Use a decision table for rules, and a form for people to enter and see information. Use data objects for the structure of your data, and service models for what a service can do. Other models help with events, security, and AI. In the next lesson, we will plan our first app. Thank you for learning with us.
Practice questions
Which model is best for the rules that decide a customer's discount?
Answer: Decision table. A decision table keeps the rules together and gives a result.
Which model describes the structure of customer data, such as name, email and city?
Answer: Data object. A data object model describes the structure of business data.