cancel
Showing results for 
Search instead for 
Did you mean: 

Declared value has type org.activiti.engine.impl.el.FixedValue, while expecting org.activiti.engine.delegate.Expression

ashutosh70
Champ in-the-making
Champ in-the-making
My code works fine on community version. But on trial version of enterprise I am getting following error .

   Incompatible type set on field declaration 'jarfilepath' for class DataflowRunner. Declared value has type org.activiti.engine.impl.el.FixedValue, while expecting org.activiti.engine.delegate.Expression. I placed my jar inside tomcat/lib.

Thanks
Ashutosh
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
I think your JavaDelegate is using an Expression with the wrong class (there are two Expression classes in Activiti), you should switch to the other.

In Activiti v6, we've removed this duplication, there is only one left.

ashutosh70
Champ in-the-making
Champ in-the-making
I am using these classes
import org.activiti.engine.delegate.Expression;
import org.activiti.engine.delegate.JavaDelegate;
Is this wrong one? However with community version my code works fine. This issue comes with trial license of enterprise .

Thanks
Ashutosh

ashutosh70
Champ in-the-making
Champ in-the-making
I tested with  org.activiti.engine.impl.el.Expression as well. Still same error.

ashutosh70
Champ in-the-making
Champ in-the-making
And if I use

activiti:field name="namexyz"  expression="${myBean.getName()}"  then it throws error

Incompatible type set on field declaration 'namexyz' for class DataflowRunner. Declared value has type org.activiti.engine.impl.el.JuelExpression, while expecting org.activiti.engine.impl.el.Expression