[rules-users] Using FROM in decision table
Wolfgang Laun
wolfgang.laun at gmail.com
Fri Jun 28 09:04:41 EDT 2013
I can't reproduce this effect, not with 5.5.0 or 5.4.0
-W
On 28/06/2013, devan.vanreenen at gmail.com <devan.vanreenen at gmail.com> wrote:
> <http://drools.46999.n3.nabble.com/file/n4024620/Untitled.png>
>
> As per the attached image I have attempted to do this but still doing
> something wrong as I am trying to evaluate id property on the DocumentType
> class but source generates incorrectly.
>
> it generates the below source
>
> 1. | #generated from Decision Table
> 2. | import
> uk.co.pruprotect.claims.rules.document.IDocumentRule;
> 3. | import
> uk.co.pruprotect.claims.rules.document.ClaimDocumentRule;
> 4. | import
> uk.co.pruprotect.claims.rules.document.DocumentEnum;
> 5. | import
> uk.co.pruprotect.domain.claims.jpa.entity.DocumentType;
> 6. | import
> uk.co.pruprotect.claims.rules.document.IBenefitCategoryDocumentRule;
> 7. | import
> uk.co.pruprotect.claims.rules.document.ClaimBenefitCategoryDocumentRule;
> 8. | global IBenefitCategoryDocumentRule
> globalDocumentRule;
> 9. | #From row number: 11
> 10. | rule "Life Cover"
> 11. |
> 12. | when
> 13. |
> $i:IBenefitCategoryDocumentRule(benefitCategoryCode == 1)
> 14. | DocumentType() from
> $i.getAllDocumentTypeList();(id in (1, 2, 3))
> 15. | then
> 16. | end
>
>
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Using-FROM-in-decision-table-tp4024617p4024620.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list