ArrayList<Integer> is not working with conditional flow expression

cancel
Showing results for 
Search instead for 
Did you mean: 
jdp
Active Member

ArrayList<Integer> is not working with conditional flow expression

Hi,

I have used ArrayList<Integer> object as a source object for expression used in conditional flow:

Source Object:

List<Integer> listVariable = new ArrayList();

listVariable.add(22);

listVariable.add(33);

listVariable.add(44);

listVariable.add(55);

Flow condition expression: 

${listVariable.contains(44)}

This expression evaluates always false even if value contains in list source object.

However when I use it with String object List<String>, it works fine.

Can anyone suggest what is wrong here ? or is it a bug of Activiti itself ?

Note that we are using Activiti 5.15 version.

Thanks,

Paresh