Uploaded image for project: 'mod-circulation'
  1. mod-circulation
  2. CIRC-400

Rule editor: composition of criteria with location

    XMLWordPrintable

Details

    • 13
    • Concorde

    Description

      Use the composition of criteria with location: m book + s 22e7f9bc-a964-11e9-a2a3-2a2ae2dbcce4. The location is temproary UUID that should exist in your system.

      You can use the following as an example policy rules.

      priority: m, s, c, b, a, t, g
      fallback-policy: l example-loan-policy r allow-all n send-no-notices 
      m book + s 22e7f9bc-a964-11e9-a2a3-2a2ae2dbcce4: l two-hour r allow-all n send-no-notices
      m book: l one-hour r allow-all n send-no-notices
      

      Verify that loans, requests, and notices get a correct loan policy assigned in various scenarios:
      If you use the above loan rules, the method of verifictaion is:
      Check out a BOOK in a particular location UUID and expected to see "two hour" loan policty applied to a loan.
      Same for requests and notices.

      See the documentation: https://github.com/folio-org/mod-circulation/blob/master/doc/circulationrules.md
      And the unit tests for the s shelving location: https://github.com/folio-org/mod-circulation/blob/master/src/test/java/org/folio/circulation/rules/Text2DroolsTest.java

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                ecboettcher Emma Boettcher
                energ1zr Dmytro Popov
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases