Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.3.2, 1.3.3
-
None
-
None
Description
When a JobProcessor exceptions is thrown in BpelEngineImpl, the method BpelEngineImpl#checkRetry is invoked to determine if the job should be retried or not.
checkRetry intends to return false if the job is in-memory. But the test is error prone:
jobInfo.jobDetail.get("inmem") == null;
This will false if a value is set in the map, even if the value is true.
The test should be:
Boolean bool = (Boolean) _jobDetail.get("inmem");
if (bool == null) return false;
else return bool;