How to handling query's result in Operations

Hello everyone
in Operations (Bonita version 7.4), on the right side, on myBDM I have set the standard query countForFindByKeyName and the parameter KeyName is set too: I want to know how many entries are in with keyName
The question is around the left side: what kind of variable or Object I must set to get the result? everything I tried seems to be wrong.

I’d like a long or integer variable (for example rowCounts) so if the query (count) returns 6 rows, then the value of the variable rowCounts is set to 6.

Hi,

You need to store the result in Long variable. Also, if you use the Query option, the Studio won’t let you store the result in a process variable, to work around that you have to use the Script option and to do something like that:

return myBDMDAO. countForFindByKeyName(<your key>);

Cheers

Hi Lionel
thank you for you answer: simply and clever.

Cheers