(.) You do call the method fireAllRules() on the engine?<br>(.) To see what you actually have in WM, add a rule<br>rule &quot;any&quot;<br>when<br>    $obj : Object()<br>then<br>   System.out.println( &quot;obj: &quot; + $obj.getClass() );<br>
end<br><br>-W<br><br><div class="gmail_quote">On Tue, Apr 20, 2010 at 1:14 AM, mikexr <span dir="ltr">&lt;<a href="mailto:mike@bigfatnuthin.com">mike@bigfatnuthin.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I have been working on a test to try and get up to speed on DROOLS.  And I am<br>
having some challenges.&#39;<br>
<br>
I have this rule.<br>
<br>
#created on: Apr 1, 2010<br>
package com.regence.edi.rules;<br>
<br>
#list any import classes here.<br>
import com.regence.edi.enrollment.Person;<br>
import com.regence.edi.enrollment.GroupIdentifier;<br>
import com.regence.edi.enrollment.Enrollments;<br>
<br>
<br>
<br>
#declare any global variables here<br>
<br>
rule &quot;New Enrollment Rule&quot;<br>
        no-loop<br>
        dialect &quot;mvel&quot;<br>
        ruleflow-group &quot;834RuleflowGroup&quot;<br>
        when<br>
                #conditions<br>
                Enrollments( enrollmentType ==  &quot;NewEnrollment&quot;)<br>
        then<br>
                #actions<br>
                System.out.println(&quot;Found Subscriber<br>
&quot;+Enrollments.EnrollmentPolicy.Enrollment.Person.getName())<br>
                System.out.println(&quot;for GroupID &quot; +<br>
Enrollments.GroupIdentifier.getGroupId())<br>
                System.out.println(&quot;Setting Source Name to Mike&quot;)<br>
                Enrollments.setSourceName(&quot;Mike&quot;)<br>
<br>
end<br>
<br>
<br>
It compiles and runs but nothing happens<br>
<br>
I debugged the code and the data is being passed to the rules engine.  but<br>
it doesn seem like the rule is executing.<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;<br>
&lt;EnrollmentRequest&gt;<br>
    &lt;Enrollments&gt;<br>
        &lt;EnrollmentType&gt;NewEnrollment&lt;/EnrollmentType&gt;<br>
        &lt;SourceName&gt;USRINPUT&lt;/SourceName&gt;<br>
        &lt;GroupIdentifier&gt;<br>
            &lt;GroupId&gt;60004854&lt;/GroupId&gt;<br>
            &lt;SubGroupID&gt;1&lt;/SubGroupID&gt;<br>
        &lt;/GroupIdentifier&gt;<br>
        &lt;EnrollmentPolicy&gt;<br>
            &lt;HoursPerWeekWorked&gt;40&lt;/HoursPerWeekWorked&gt;<br>
            &lt;Enrollment&gt;<br>
                &lt;Event&gt;<br>
                    &lt;EventType&gt;NEW&lt;/EventType&gt;<br>
                    &lt;EventDate&gt;05/15/2009&lt;/EventDate&gt;<br>
                    &lt;EventEffectiveDate&gt;06/10/2009&lt;/EventEffectiveDate&gt;<br>
                    &lt;EventTerminationDate/&gt;<br>
                    &lt;BreakInCoverage/&gt;<br>
                    &lt;QualifyingEvent/&gt;<br>
                    &lt;Description/&gt;<br>
                    &lt;Reason/&gt;<br>
                &lt;/Event&gt;<br>
                &lt;Cobra&gt;<br>
                    &lt;CobraType/&gt;<br>
                    &lt;QualifyingEvent/&gt;<br>
                    &lt;CobraEffectiveDate/&gt;<br>
                    &lt;CertificateLength/&gt;<br>
                    &lt;CobraTerminationDate/&gt;<br>
                &lt;/Cobra&gt;<br>
                &lt;Person&gt;<br>
                    &lt;Name&gt;<br>
                        &lt;FirstName&gt;TEST&lt;/FirstName&gt;<br>
                        &lt;LastName&gt;ENROLLMENT&lt;/LastName&gt;<br>
                        &lt;MiddleName/&gt;<br>
                        &lt;NameSuffix/&gt;<br>
                    &lt;/Name&gt;<br>
                    &lt;DateOfBirth&gt;05/05/1976&lt;/DateOfBirth&gt;<br>
                    &lt;Gender&gt;Male&lt;/Gender&gt;<br>
                    &lt;MaritalStatus&gt;Single&lt;/MaritalStatus&gt;<br>
                    &lt;Language&gt;ENGL&lt;/Language&gt;<br>
                    &lt;PersonIdentifier&gt;<br>
                        &lt;PersonId&gt;555555555&lt;/PersonId&gt;<br>
<br>
&lt;PersonIdentifierType&gt;SocialSecurityNumber&lt;/PersonIdentifierType&gt;<br>
                    &lt;/PersonIdentifier&gt;<br>
                    &lt;PersonIdentifier&gt;<br>
                        &lt;PersonId&gt;55555567345&lt;/PersonId&gt;<br>
<br>
&lt;PersonIdentifierType&gt;MedicareId&lt;/PersonIdentifierType&gt;<br>
                    &lt;/PersonIdentifier&gt;<br>
                    &lt;PriorCoverage&gt;<br>
                        &lt;CarrierName&gt;Kaiser&lt;/CarrierName&gt;<br>
                        &lt;PolicyHolderID&gt;345545&lt;/PolicyHolderID&gt;<br>
                        &lt;EffectiveDate&gt;01/01/2009&lt;/EffectiveDate&gt;<br>
                        &lt;TerminationDate&gt;01/31/2009&lt;/TerminationDate&gt;<br>
                        &lt;PolicyHolderName&gt;Medical&lt;/PolicyHolderName&gt;<br>
                    &lt;/PriorCoverage&gt;<br>
                    &lt;PriorCoverage&gt;<br>
                        &lt;CarrierName&gt;Providence&lt;/CarrierName&gt;<br>
                        &lt;PolicyHolderID&gt;23474&lt;/PolicyHolderID&gt;<br>
                        &lt;EffectiveDate&gt;02/01/2009&lt;/EffectiveDate&gt;<br>
                        &lt;TerminationDate&gt;03/31/2009&lt;/TerminationDate&gt;<br>
                        &lt;PolicyHolderName&gt;Medical&lt;/PolicyHolderName&gt;<br>
                    &lt;/PriorCoverage&gt;<br>
                    &lt;ContactInformation&gt;<br>
                        &lt;AddressDetails&gt;<br>
                            &lt;ContactType&gt;Home&lt;/ContactType&gt;<br>
                            &lt;Address&gt;<br>
&lt;AliasName&gt;ADDR1&lt;/AliasName&gt;<br>
&lt;AddressLine1&gt;56 Test Street&lt;/AddressLine1&gt;<br>
&lt;AddressLine2/&gt;<br>
&lt;City&gt;Portland&lt;/City&gt;<br>
&lt;County&gt;Multnomah&lt;/County&gt;<br>
&lt;State&gt;OR&lt;/State&gt;<br>
&lt;ZipCode&gt;97203&lt;/ZipCode&gt;<br>
&lt;Country&gt;US&lt;/Country&gt;<br>
                            &lt;/Address&gt;<br>
                        &lt;/AddressDetails&gt;<br>
                        &lt;AddressDetails&gt;<br>
                            &lt;ContactType&gt;Mailing&lt;/ContactType&gt;<br>
                            &lt;Address&gt;<br>
&lt;AliasName&gt;ADDR1&lt;/AliasName&gt;<br>
&lt;AddressLine1&gt;89 Mailing Street&lt;/AddressLine1&gt;<br>
&lt;AddressLine2/&gt;<br>
&lt;City&gt;Portland&lt;/City&gt;<br>
&lt;County&gt;Multnomah&lt;/County&gt;<br>
&lt;State&gt;OR&lt;/State&gt;<br>
&lt;ZipCode&gt;97203&lt;/ZipCode&gt;<br>
&lt;Country&gt;US&lt;/Country&gt;<br>
                            &lt;/Address&gt;<br>
                        &lt;/AddressDetails&gt;<br>
                        &lt;PhoneNumber&gt;<br>
                                                        &lt;ContactType&gt;Home&lt;/ContactType&gt;<br>
                                                        &lt;PhoneNumber&gt;665-567-8888&lt;/PhoneNumber&gt;<br>
                                                &lt;/PhoneNumber&gt;<br>
                        &lt;EMailAddress&gt;<br>
                            &lt;EmailAddress&gt;<a href="mailto:user@home.com">user@home.com</a>&lt;/EmailAddress&gt;<br>
                        &lt;/EMailAddress&gt;<br>
                    &lt;/ContactInformation&gt;<br>
                    &lt;Membership&gt;<br>
                        &lt;MembershipIdentifier&gt;<br>
                            &lt;MemberID/&gt;<br>
<br>
&lt;MemberIdentifierType&gt;CPSS_SBSB_ID&lt;/MemberIdentifierType&gt;<br>
                        &lt;/MembershipIdentifier&gt;<br>
<br>
&lt;RelationshipToSubscriber&gt;Subscriber&lt;/RelationshipToSubscriber&gt;<br>
                        &lt;MemberIndex&gt;0&lt;/MemberIndex&gt;<br>
                        &lt;InsuranceIDCard&gt;<br>
                            &lt;IDLevel&gt;FAMILY&lt;/IDLevel&gt;<br>
                            &lt;IDBackground&gt;100&lt;/IDBackground&gt;<br>
                        &lt;/InsuranceIDCard&gt;<br>
                        &lt;Eligibility&gt;<br>
                            &lt;Coverage&gt;<br>
&lt;ClassId&gt;1&lt;/ClassId&gt;<br>
&lt;Product&gt;<br>
    &lt;ProductId&gt;MINN1001&lt;/ProductId&gt;<br>
    &lt;BusinessCategory&gt;M&lt;/BusinessCategory&gt;<br>
&lt;/Product&gt;<br>
&lt;Product&gt;<br>
    &lt;ProductId&gt;RX000001&lt;/ProductId&gt;<br>
    &lt;BusinessCategory&gt;R&lt;/BusinessCategory&gt;<br>
&lt;/Product&gt;<br>
                            &lt;/Coverage&gt;<br>
                        &lt;/Eligibility&gt;<br>
                        &lt;Preference&gt;<br>
                            &lt;PreferenceType&gt;EEOB&lt;/PreferenceType&gt;<br>
                            &lt;Detail&gt;<br>
&lt;DetailType&gt;EMAIL&lt;/DetailType&gt;<br>
&lt;DetailValue&gt;<a href="mailto:user@home2.com">user@home2.com</a>&lt;/DetailValue&gt;<br>
                            &lt;/Detail&gt;<br>
                        &lt;/Preference&gt;<br>
                    &lt;/Membership&gt;<br>
                    &lt;Medicare&gt;<br>
                        &lt;Entitlement&gt;Blah&lt;/Entitlement&gt;<br>
<br>
&lt;EntitlementStartDate&gt;01/01/2008&lt;/EntitlementStartDate&gt;<br>
                        &lt;EntitlementEndDate/&gt;<br>
                        &lt;MedicareProgram&gt;<br>
                            &lt;MedicareProgramType&gt;TypeA&lt;/MedicareProgramType&gt;<br>
                            &lt;EffectiveDate&gt;01/01/2008&lt;/EffectiveDate&gt;<br>
                            &lt;TerminationDate&gt;&lt;/TerminationDate&gt;<br>
                        &lt;/MedicareProgram&gt;<br>
                        &lt;MedicareProgram&gt;<br>
                            &lt;MedicareProgramType&gt;TypeB&lt;/MedicareProgramType&gt;<br>
                            &lt;EffectiveDate&gt;01/01/2008&lt;/EffectiveDate&gt;<br>
                            &lt;TerminationDate&gt;&lt;/TerminationDate&gt;<br>
                        &lt;/MedicareProgram&gt;<br>
                    &lt;/Medicare&gt;<br>
                    &lt;Disability&gt;<br>
                        &lt;IsDisabled&gt;false&lt;/IsDisabled&gt;<br>
                        &lt;DisabledDate/&gt;<br>
                        &lt;Description/&gt;<br>
                        &lt;VerifiedBy/&gt;<br>
                        &lt;VerifiedDate/&gt;<br>
                        &lt;VerificationMethod&gt;EMAIL&lt;/VerificationMethod&gt;<br>
                    &lt;/Disability&gt;<br>
                &lt;/Person&gt;<br>
            &lt;/Enrollment&gt;<br>
        &lt;/EnrollmentPolicy&gt;<br>
    &lt;/Enrollments&gt;<br>
&lt;/EnrollmentRequest&gt;<br>
<br>
<br>
I am looking for some assistance<br>
<br>
Thanks<br>
<br>
Mike<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://n3.nabble.com/Rules-Not-executing-tp731013p731013.html" target="_blank">http://n3.nabble.com/Rules-Not-executing-tp731013p731013.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>