Class BiLeftHandSide<A,​B>

  • Type Parameters:
    A - generic type of the first resulting variable
    B - generic type of the second resulting variable

    public final class BiLeftHandSide<A,​B>
    extends Object
    Represents the left hand side of a Drools rule, the result of which are two variables. The simplest variant of such rule, with no filters or groupBys applied, would look like this in equivalent DRL:
     
      rule "Simplest bivariate rule"
      when
          $a: Something()
          $b: SomethingElse()
      then
          // Do something with the $a and $b variables.
      end
     
     
    Usually though, there would be a joiner between the two, limiting the cartesian product:
     
      rule "Bivariate join rule"
      when
          $a: Something($leftJoin: someValue)
          $b: SomethingElse(someOtherValue == $leftJoin)
      then
          // Do something with the $a and $b variables.
      end
     
     
    For more, see UniLeftHandSide.