User, service, script and other tasks
BPMN. A free Flowable lesson in simple English (2:51 minutes).
See it in the app
The same topic, shown in the real application.
Open in the academy (practice, progress and notes)
Chapters
- 0:00 What you will learn
- 0:17 Person or system?
- 0:41 User tasks
- 1:04 Service and script tasks
- 1:21 Other useful tasks
- 1:43 Practice question 1
- 2:09 Practice question 2
- 2:33 Summary
Lesson text
0:00 What you will learn
Welcome to lesson eight. A task is a piece of work in a process. Today we learn the most important kinds of tasks. The right task depends on one question. Who, or what, does the work? This is an independent course. It is not made or approved by Flowable.
0:17 Person or system?
Let's look at the three main kinds. A user task is work for a person. The process waits until someone finishes it, usually by filling in a form. A service task is technical work, done by the system. For example, call another system, or do a calculation. A script task runs a short script, for example in JavaScript or Groovy. It is good for simple calculations.
0:41 User tasks
A user task can be assigned to one person. It can also be offered to several people, or to groups. The person uses a form to see and enter information. The form can create or change variables. A user task can also have a due date. One more thing. In BPMN, this is called a user task. In CMMN, a similar task is called a human task.
1:04 Service and script tasks
Flowable's guide says that script tasks are mainly for simple calculations or operations. For more complex work, a developer can write a Java service, and call it with a service task. Some ready-made tasks, such as the Email task and the HTTP task, are special kinds of service task.
1:21 Other useful tasks
Here are three more tasks that you will meet. A decision task runs a decision table. The result decides the next step, or sets a variable. An Initialize Variables task, in Flowable Work, sets starting values for variables. And a call activity starts another, separate process. We will study it in lesson eleven.
1:43 Practice question 1
Question one. A step needs a manager to read a request, and choose yes or no. Which task fits best? A, a script task. B, a service task. C, a user task. Or D, a timer.
The answer is C, a user task. It is work for a person, and the process waits for them.
2:09 Practice question 2
Question two. Which of these is a task in CMMN, not in BPMN? A, a human task. B, a user task. C, a script task. Or D, a sequence flow.
The answer is A, a human task. In BPMN, the similar task is a user task.
2:33 Summary
Let's review. A user task is work for a person. A service task is technical work. A script task runs a short script. Decision tasks run decision tables, and Initialize Variables tasks set starting values. In the next lesson, we will learn about gateways. Thank you for learning with us.
Practice questions
A manager must read a request and choose yes or no. Which task fits best?
Answer: A user task. It is work for a person, and the process waits for them.
Which name is used for a task in CMMN, not in BPMN?
Answer: Human task. In B P M N, the similar task is a user task.