Hi Wolfgang:
import es.simcasva.alarmas.src.MDSVHechoAlarma;query "existe Alarma" (MDSVHechoAlarma referencia)$alarma : MDSVHechoAlarma( iIdAlarma == referencia.iIdAlarma,The reported errors are:Description Resource Path Location TypeBuildError: Not possible to directly access the property 'iIdAlarma' of declaration 'referencia' since it is not a pattern AlarmaReglasGenerales.drl /aitor/es/simcasva/alarmas/rules Unknown Drools Error
"referencia" is a query parameter (and not a variable bound to a fact); to access any of its fields or methods you must use Java notation, requiring you to use a "return value restriction", hence the parentheses:
$alarma : MDSVHechoAlarma( iIdAlarma == ( referencia.getIIdAlarma() ),
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users