Thanks that makes sense.
How do i get to elements that are beans below Enrollments? This doesnt seem
to work?
rule "EnrollmentsfromEnrollmentRequest"
when
EnrollmentRequest( $es: enrollments )
$e : Enrollments( enrollmentType == "NewEnrollment") from $es
then
System.out.println("Found Subscriber
"+$e.EnrollmentPolicy.Person.getName()) ;
System.out.println("for GroupID " + $e.GroupIdentifier.getGroupId()) ;
System.out.println("Setting Source Name to Mike");
$e.setSourceName("Mike") ;
end
org.drools.rule.InvalidRulePackage: Rule Compilation error : [Rule
name='EnrollmentsfromEnrollmentRequest']
com/regence/edi/rules/Rule_EnrollmentsfromEnrollmentRequest_0.java (7:641)
: $e.EnrollmentPolicy cannot be resolved or is not a field
com/regence/edi/rules/Rule_EnrollmentsfromEnrollmentRequest_0.java (8:720)
: $e.GroupIdentifier cannot be resolved or is not a field
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Rules-Not-executing-t...
Sent from the Drools - User mailing list archive at
Nabble.com.