Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1917

Support variable expressions in interval-based for temporal operators

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • 5.5.0.Final
    • Guided Rule Editor
    • None
    • Documentation (Ref Guide, User Guide, etc.)
    • Low

      It would be cool if it were possible to use expressions, and bound variables in particular, in time intervals for temporal operators. Something like this:

      rule "Sound the alarm with parametric delay"
      when
      $f : FireDetected( )
      not( SprinklerActivated( this after[expr: $f.start, $f.end] $f ) )
      then
      // sound the alarm
      end

      A similar request was made for the interval-based timer in this issue:
      https://issues.jboss.org/browse/JBRULES-3402

            Unassigned Unassigned
            adrian.paredes Adrian Paredes (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: