Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google collect import in Drools

Tags:

java

guava

drools

When I try to import MultiMap in Drools rule it caused an error below

[11,25]: [ERR 102] Line 11:25 mismatched input 'COLLECT' expecting 'identifier' in import 

Does anyone know how can I import any com.google.common.collect in Drools rule?

P.S. Problem soleved If anyone is interested you should use backquotes like below

com.google.common.`collect`.Multimap
like image 266
Alexander Zhugastrov Avatar asked Aug 24 '11 11:08

Alexander Zhugastrov


1 Answers

Problem soleved If anyone is interested you should use backquotes like below

com.google.common.`collect`.Multimap

like image 138
Alexander Zhugastrov Avatar answered Oct 18 '22 14:10

Alexander Zhugastrov