cancel
Showing results for 
Search instead for 
Did you mean: 

TaskService make our own processVariableValueEquals(String key, Object obj)

pred05
Champ in-the-making
Champ in-the-making
Hi everybody,
i want to add in my request a parameter which is stored in process instance's variable. But this parameter is a custom object. how activiti make it request when we call processVariableValueEquals(String key, Object object) ? If the method compare the object reference i can't do what i want because i construct a new object with the same attributes' values for make my request, so the reference is not the same.

In the same idea it is possible to store a Java util List as variable in the process instance and user processVariableValueEquals(String key , Object object) for test if the object in argument is on the list ?

Or i need to create a native query because it isn't possible directly ?

Thanks for help.
Sorry for my poor english.
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi

org.activiti.engine.ActivitiIllegalArgumentException: Variables of type ByteArray cannot be used to query

Regards
Martin

pred05
Champ in-the-making
Champ in-the-making
Hi, thanks! And when it is an custom object like :
<java>class toto {
string attribute1;
string attribute2;
}</java>

How activiti check if objects in database and in argument is equals ?

trademak
Star Contributor
Star Contributor
You can only query on primitive values for process variables, so it's not possible to query on POJO attributes.

Best regards,