These seem like two good student projects, so I updated the wiki as it's that time of year when students are picking up projects: http://community.jboss.org/wiki/DroolsProjects
Please feel free to correct if some stuff I say is a bit high level or needs more explanation. Mark On 11/09/2010 08:35, Mark Proctor wrote: > The first aspect is to allow the type and the property accessors to be > dynamically defined > declare Element > @type( nodeName ) > @property( get( $1 ) ) > end > > Where $1 is the interpolation point for the passed property name. That > would then allow access to Dom Elements as though they were natural > facts. Same can be done for Maps, or similar constructs > declare Map > @type( get( "type" ) //the type is a key in the Map > @propert( get( $1 ) ) > end > > declare MyFact > @type( type ) //The type is field > @property( getProperty( $1 ) ) // all properties are via this getter > end > > If you look at the expiremental FactTemplates you can see the guts of > how fields are accessed and figure out how to plumb this all up. Then > there is the RHS, which is a big more difficult, if you want the > properties supported as named fields, and not emulated getters. _______________________________________________ rules-dev mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-dev
