CIB Seven 2.2.0 + Spring Boot 4.0.7: Delegate Expression works synchronously but fails with Async Before #51
Replies: 1 comment
|
Hi 👋 — thanks for the detailed report! I tried to reproduce this and couldn't: with CIB seven 2.2.0 and Spring Boot 4.0.7, a delegate expression resolves fine for me with I've written the setup and the result up here: Java delegates on asynchronous service tasks (get-started Spring Boot project, branch The bean is resolved on every attempt, each on a different job executor thread, and the exception recorded on the job is the one thrown inside the delegate — never Would you mind putting together a small example project that reproduces it? That would help us enormously in tracking this down. Feel free to use the branch above as a starting point — it already has an async service task with a delegate expression and a retry cycle wired up, so it should be a matter of moving it closer to your setup until it breaks. If a reproducer is difficult, these details would already help a lot:
Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
I'm using CIB Seven 2.2.0 with Spring Boot 4.0.7 and Java 21.
I have a JavaDelegate defined as:
@component("createCaseDelegate")
public class CreateCaseDelegate implements JavaDelegate {
...
}
In my BPMN, the service task uses the delegate expression:
Behavior
Without "Asynchronous Before" enabled, the delegate executes successfully.
With "Asynchronous Before" enabled and retry cycle R3/PT10S, the job fails immediately.
The incident shows:
org.cibseven.bpm.engine.ProcessEngineException:
Unknown property used in expression: ${createCaseDelegate}
Cause: Cannot resolve identifier 'createCaseDelegate'
Application:
com.xxx.CreditLimitManagementServiceApplication
Delegate:
com.xxx.delegates.CreateCaseDelegate
Questions:
All reactions