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

Return a success response but the rule seems to be not running.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.3.0.CR2
    • 6.3.0.CR1
    • kie server
    • None
    • Hide

      1. Build rules and deploy using workbench.
      2. Send a rest call to kie-server.
      3. Check LogFile.

      ---------------------- rules ---------------------------
      package infosec.window;

      declare TestVO
      @role(event)
      cnt : int
      end

      rule "window rule test 1-1"
      when
      Number($number : intValue)
      from accumulate( TestVO($cnt : cnt) over window:time(30s), sum( $cnt) )
      then
      System.out.println("SUM : " + $number);
      end

      rule "window rule test 1-2"
      when
      Number($number : intValue)
      from accumulate( TestVO($cnt : cnt) over window:time(1m) , count( $cnt) )
      then
      System.out.println("COUNT : " + $number);
      end

      ---------------------- request body ---------------------------
      <batch-execution lookup="infoSession">
      <insert>
      <infosec.window.TestVO2>
      <cnt>1</cnt>
      </infosec.window.TestVO2>
      </insert>
      <fire-all-rules />
      </batch-execution>

      Show
      1. Build rules and deploy using workbench. 2. Send a rest call to kie-server. 3. Check LogFile. ---------------------- rules --------------------------- package infosec.window; declare TestVO @role(event) cnt : int end rule "window rule test 1-1" when Number($number : intValue) from accumulate( TestVO($cnt : cnt) over window:time(30s), sum( $cnt) ) then System.out.println("SUM : " + $number); end rule "window rule test 1-2" when Number($number : intValue) from accumulate( TestVO($cnt : cnt) over window:time(1m) , count( $cnt) ) then System.out.println("COUNT : " + $number); end ---------------------- request body --------------------------- <batch-execution lookup="infoSession"> <insert> <infosec.window.TestVO2> <cnt>1</cnt> </infosec.window.TestVO2> </insert> <fire-all-rules /> </batch-execution>
    • NEW
    • NEW

    Description

      Kie_server returns a success rest response status code, but nothing show up in my log file.
      It seems to be not running only in "6.3.0.CR1". (The rules work "6.2.0.Final")

      Attachments

        1. 2015_08_20_11_27_43_987.mp4
          6.90 MB
        2. method_not_allowed.png
          method_not_allowed.png
          41 kB
        3. Screenshot 2015-09-03 17.08.40.png
          Screenshot 2015-09-03 17.08.40.png
          280 kB
        4. window-1.1.4.jar
          5 kB

        Activity

          People

            etirelli@redhat.com Edson Tirelli
            ljwandy_jira 재우 이 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: