[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2455) Process variable length comma separated lists within cells

Graham Gear (JIRA) jira-events at lists.jboss.org
Mon Jun 7 17:33:38 EDT 2010


    [ https://jira.jboss.org/browse/JBRULES-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12534336#action_12534336 ] 

Graham Gear commented on JBRULES-2455:
--------------------------------------

Update to API to make it more consistent to existing conventions:

forall(,){property == $}
forall(&&){property == $}
forall(||){property == $}
forall(||){property_a == $} && forall(||){property_b == $}
etc 

Patch attached against trunk 33386 as:

VariableLengthListDecisionTablePatch-trunk-33386.diff

> Process variable length comma separated lists within cells
> ----------------------------------------------------------
>
>                 Key: JBRULES-2455
>                 URL: https://jira.jboss.org/browse/JBRULES-2455
>             Project: Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-decisiontables
>    Affects Versions: 5.1.0.M1
>            Reporter: Graham Gear
>            Assignee: Mark Proctor
>         Attachments: VariableLengthListDecisionTablePatch-trunk-33335.diff, VariableLengthListDecisionTablePatch-trunk-33382.diff, VariableLengthListDecisionTablePatch-trunk-33386.diff, VariableLengthListDecisionTablePatch.diff
>
>
> Given a decision table column:
> VALUE1, VALUE2, VALUE3
> VALUE4, VALUE5
> It is required that a DRL snippet could be constructed to utilise all available comma separated tokens and not have to hard code $1, $2 etc references.
> Eg a snippet could be:
> property == $forall_param_and
> resulting in the compiled snippet:
> property == "VALUE1" && property == "VALUE2" && property == "VALUE3"
> property == "VALUE4" && property == "VALUE5"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list