Hi Wolfgang, Thanks. 'Object' was intended as a placeholder for any type and 'slot' for any attribute instance, sorry for the confusion here. I appreciate your suggestion below, however since there would be multiple rules which need this type of injection each requiring a unique (and only known only at runtime) id. By having a global id provider (aka ItemPara) it would be unable to provide the appropriate id - unless the rule identified itself when making the id request (ItemParam( field == "id", $value: value )). It seems that templates might be the way forward, although the rules will need recompiling each runtime.
> rule "example" > when > $op : ObjectProvider() > Object(slot = "value") from op.eval() Because getting the value returned by op.eval() is extremely expensive and should only be done if this component of the rule is evaluated (assuming that the rule has a more complex pattern implicating other types). Thanks, James -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rewriting-rules-tp2458626p2460754.html Sent from the Drools - User mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
