flowable / flowable/flowable-engine

Incorrect log message for PlanItemInstanceState

オープン
#3,280 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
9.5k
フォーク
2.9k
平均マージ
7時間 8分
マージ済み PR(30日)
2

説明

**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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

例外が報告されている org.flowable.cmmn.engine.impl.cmd.StartPlanItemInstanceCmd.java の 55 行目から始めます。メッセージを ENABLED 状態のチェックと比較し、期待される文言に一致するよう更新します。インスタンスがすでに ENABLED 状態であることを開始失敗が報告すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
backend
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
50/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。