Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-61

Documentation of rule ordering is incorrect for AFTER rules

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.2.0
    • 1.1.1
    • Documentation
    • None

    Description

      Normally, when more than rule is injected at a given trigger the order in which rule triggers are injected follows the order of rules in the currently installed script(s). However, for rules with location AFTER XXX the order is reversed. For example, consider the following rules:

      script1.txt
      RULE R1
      CLASS C
      METHOD M
      AT INVOKE foo
      . . .
      ENDRULE

      RULE R2
      CLASS C
      METHOD M
      AFTER INVOKE foo
      . . .
      ENDRULE

      script2.txt
      RULE R3
      CLASS C
      METHOD M
      AT INVOKE foo
      . . .
      ENDRULE

      RULE R4
      CLASS C
      METHOD M
      AFTER INVOKE foo
      . . .
      ENDRULE

      The sequence of events when C.M is called is

      enter C.M
      . . .
      trigger R1
      trigger R3
      call foo
      trigger R4
      trigger R2
      . . .
      exit C.M

      Attachments

        Activity

          People

            rhn-engineering-adinn Andrew Dinn
            rhn-engineering-adinn Andrew Dinn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: