Hi Matt
so:
"1. How do I refer to the current fact?
- Can I do something like this?
$cancerRecord : CancerRecord ()"
The current record where??? If you have multiple CancerRecord(s) each of them will match with that conditional element. If you have a business process with a process variable you should point to that variable instead of using the rules language to filter it. If the CancerRecord is a fact that's the right way to go.
"2. How do I invoke external functions?
Can I do something like
inlist ($cancerRecord.PRIMARY_SITE, "C500, C501, C502, C503, C504, C505, C506, C508, C509")
containsAny (kcontext, $cancerRecord, "505101,505102,505103,505104,505105,505106,505107,505108") "
Did you try this:
eval(inlist(.....)) in the RHS?
"I not able to locate any documentation in this. Can some one point me to the right documentation. I have been stuck on this for couple of days. "
All of this is explained in the drools.org documentation site, I'm pretty sure that the eval is there.