Details
-
Bug
-
Resolution: Done
-
Minor
-
jBPM 4.0
-
None
Description
just browsing through the codebase and trying to understand the magic,
I came across this in line 56 of GroupActivity.java:
ExecutionImpl concurrentRoot = null;
if (Execution.STATE_ACTIVE_ROOT.equals(execution.getState()))
{ concurrentRoot = execution; }else if (Execution.STATE_ACTIVE_ROOT.equals(execution.getState()))
{ concurrentRoot = execution.getParent(); }else
{ throw new JbpmException("illegal state"); }I assume getState() doesn't have any side effects, so I guess this is a bug