cancel
Showing results for 
Search instead for 
Did you mean: 

Field Injection not supporting for expression type in Task Listener Configuration

swamy2156
Champ on-the-rise
Champ on-the-rise
Hi,
My Activiti version is 5.13
In my BPMN modal, for human task listener I selected "Expression" type and I am able to see the field injection panel where I can add fields. I added couple of fields with String values. In my task listener implementer, while reading those fields returning null instead of string value which i provided in designer. Is this a bug?? If not bug, why the field injection panel is displayed when selected "Expression" type. BTW, this field injection feature was working with "Java Class" type listener. The following is the snippet of my task listener implementer.

class TestClass implements TaskListener{
public final void notify(final DelegateTask delegateTask) {
System.out.println("Injected field-1 value" + (String) text1.getValue(delegateTask));
}
}

Please help me out regarding this.

Thanks,
Swamy.
1 REPLY 1

trademak
Star Contributor
Star Contributor
For the Expression type, field extensions are not supported. You don't really need them because you can pass the values as input parameters of the expression method invocation.

Best regards,