flowable / flowable/flowable-engine

Incorrect log message for PlanItemInstanceState

Open
#3,280 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
7h 8m
Merged PRs (30d)
2

Description

**Describe the bug**
The following cryptic log message appears when attempting to start a project:
```
org.flowable.common.engine.api.FlowableIllegalStateException: Can only enable a plan item instance which is in state ENABLED
at org.flowable.cmmn.engine.impl.cmd.StartPlanItemInstanceCmd.internalExecute(StartPlanItemInstanceCmd.java:55) ~[flowable-cmmn-engine-6.7.2.jar:6.7.2]
at org.flowable.cmmn.engine.impl.cmd.AbstractNeedsPlanItemInstanceCmd.execute(AbstractNeedsPlanItemInstanceCmd.java:101) ~[flowable-cmmn-engine-6.7.2.jar:6.7.2]
at org.flowable.cmmn.engine.impl.cmd.AbstractNeedsPlanItemInstanceCmd.execute(AbstractNeedsPlanItemInstanceCmd.java:34) ~[flowable-cmmn-engine-6.7.2.jar:6.7.2]
```

**Expected behavior**
A look at the code suggest the message should be: Can only enable a plan item instance which is *not* in state ENABLED

**Code**
NA

**Additional context**
Flowable 6.7.2, Spring boot 2.6.6

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.