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

if (true) for conditional named consequence fails with exec-model

    XMLWordPrintable

Details

    Description

      Rule like this:

      rule R when
        $p : Person()
        if (true) do[t1]
      then
        result.add("main");
      then[t1]
        result.add("t1");
      end
      

      results in

              org.drools.model.Rule rule = D.rule("R").build(D.pattern(var_$p),
                                                             D.when().then(D.on(var_result).execute(defaultpkg.PEE.LambdaConsequenceEE21997F1A78A2FC85DC68BA0784837A.INSTANCE)),
                                                             D.on(var_result).execute(defaultpkg.P24.LambdaConsequence24EA5983ACEA66E2AC037A35FA85E1FA.INSTANCE));
      

      So D.when() fails with

      text=The method when(ExprViewItem) in the type PatternDSL is not applicable for the arguments ()
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: