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

calling getQueryResults() from RHS would hang indefinitely.

    Details

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Rule could be refactored to avoid calling getQueryResults() in the RHS.

      For example:

      1. in the RHS, instead of calling getQueryResults() and cycle on the results, do an insert() of a "ActionToken" pojo
      2. have a separate rule which in the LHS match on the "ActionToken" pojo and the pattern of the query.
      3. execute the original intentions over the results, as per original old RHS code of step1
      4. retract the "ActionToken" pojo as the last step
      Show
      Rule could be refactored to avoid calling getQueryResults() in the RHS. For example: in the RHS, instead of calling getQueryResults() and cycle on the results, do an insert() of a "ActionToken" pojo have a separate rule which in the LHS match on the "ActionToken" pojo and the pattern of the query. execute the original intentions over the results, as per original old RHS code of step1 retract the "ActionToken" pojo as the last step
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      As described in the original forum post calling (drools.getKieRuntime().)getQueryResults() from RHS would hang indefinitely on 6.4.0.Final.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tari_manga Matteo Mortari
                Reporter:
                tari_manga Matteo Mortari
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: