cancel
Showing results for 
Search instead for 
Did you mean: 

Field injection not working with expression and delegateExpr

chris_joelly
Champ in-the-making
Champ in-the-making
Hello!

why is field injection not supported e.g. with ExecutionListeners when they are used in a process definition with class?
when used with expression or delegateExpression they field injection is supported.
Unfortunately with "class" we can not use other injection approaches like @EJB or @Inject.
2 REPLIES 2

steve1
Champ on-the-rise
Champ on-the-rise
Hi,

On my knowledge, field injection is only supported with "Java class".

In case of the expression, you can call method directly with parameters.

In case of the delegateExpression, you can only specify the bean name, and the pre-defined method will run based on delegation type.

chris_joelly
Champ in-the-making
Champ in-the-making
Hello Steve,

thanks for the reply. Yes, the expression and call a method with params is the way i do it.