I insert several strings into working memory to make a comparison. But how to
compare a anonymous string to another string. code like:
List <String> s = ArrayList <String>
String key
function void insertValue( s, KnowledgeHelper kh ) {
for( String string : s ) {
kh.insert( string );
}
}
...
When
not $string : String( toString() == key)
Then....
Obviously, toString() can not do this task.
How to get the string's value ?
Cheers.
--
View this message in context:
http://drools.46999.n3.nabble.com/Simple-question-about-String-comparison...
Sent from the Drools: User forum mailing list archive at
Nabble.com.