Incorrect equality check

Description

In the Activiti Quick Start page - https://www.activiti.org/quick-start - there are some errors in the equality logic.

1 if (activity.getActivityType() == "startEvent") {

should be

1 if (activity.getActivityType().equals("startEvent")) {

and

1 if (activity.getActivityType() == "endEvent") {

should be

1 if (activity.getActivityType().equals("endEvent")) {

as a result both statements will only evaluate as false.

Environment

Quick Start

Status

Assignee

Bassam Al-Sarori

Reporter

Steven Elliott

Labels

None

Components

Affects versions

5.21

Priority

Medium
Configure