MVEL
  1. MVEL
  2. MVEL-85

Projects with filters (WHERE clause)

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 2.0
    • Component/s: Core, Parser
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Projections are nice, but I really need them to filter as well (like Python's generator comprehensions). The syntax would probably be something like "(foo.bar in baz if foo.passesFilter)". (Python uses "if"; "where" might also make sense for the SQL-inclined.)

        Activity

        Hide
        Mike Brock added a comment -

        I think this is really a powerful idea, and I'm definitely going to begin researching it's inclusion into 2.0.

        Show
        Mike Brock added a comment - I think this is really a powerful idea, and I'm definitely going to begin researching it's inclusion into 2.0.
        Hide
        Luke Maurer added a comment -

        Oops - heh, I meant to type "projections", not "projects", in the summary. Ah well

        Looking forward to 2.0 - seems like Drools stands to benefit a good deal!

        Show
        Luke Maurer added a comment - Oops - heh, I meant to type "projections", not "projects", in the summary. Ah well Looking forward to 2.0 - seems like Drools stands to benefit a good deal!
        Hide
        Mike Brock added a comment -

        fixed for beta2. example syntax: (toUpperCase() in ['zero', 'zen', 'bar', 'foo'] if ($ == 'bar'))

        Show
        Mike Brock added a comment - fixed for beta2. example syntax: (toUpperCase() in ['zero', 'zen', 'bar', 'foo'] if ($ == 'bar'))

          People

          • Assignee:
            Mike Brock
            Reporter:
            Luke Maurer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: