Skip to main content
Version: ILLiad 10.0 (Pre-release) 🚧

Example Routing Rules

Advanced TransactionStatus Matching

For transaction statuses with variable content (such as dates or codes), you can use wildcard characters like % and _ directly in the TransactionStatus field. For detailed information and examples, see Using Wildcards in TransactionStatus Field in the Configuring Routing Rules documentation.

Basic Routing Rules

Borrowing - Faculty Requests

In this example, you want to send all requests received from faculty members to a special queue called Awaiting Faculty Request Processing.

For this routing example to work properly, you would also have to create a custom queue named Awaiting Faculty Request Processing.

RuleNo1
RuleActiveYes
ProcessTypeBorrowing
TransactionStatusAwaiting Request Processing
MatchStringu.Status = 'Faculty'
NewProcessTypeBorrowing
NewTransactionStatusAwaiting Faculty Request Processing
RuleDescriptionThis rule moves all faculty requests into an Awaiting Faculty Request Processing queue.

Lending - OCLC Collections Data

In this example, you want to send all lending requests with data in the Collections tab to a special queue called Awaiting EJournal Processing.

For this routing example to work properly, you would also have to create a custom queue named Awaiting Faculty Request Processing.

RuleNo2
RuleActiveYes
ProcessTypeLending
TransactionStatusAwaiting Lending Request Processing
MatchStringt.TransactionNumber in (select distinct TransactionNumber from OCLCCollectionData)
NewProcessTypeLending
NewTransactionStatusAwaiting EJournal Processing
RuleDescriptionThis rule moves any incoming lending request with Collections data to a new custom queue.

Borrowing - Cancelled by Customer

In this example, you want to send all requests cancelled online by patrons to the queue Cancelled by ILL Staff.

RuleNo1
RuleActiveYes
ProcessTypeBorrowing
TransactionStatusCancelled by Customer
MatchStringt.ILLNumber is NULL
NewProcessTypeBorrowing
NewTransactionStatusCancelled by ILL Staff
RuleDescriptionAll requests that are cancelled by the patron online and haven't yet been ordered are automatically routed to Cancelled by ILL Staff.

Compound Routing Rules

WIth compound Routing Rules, you are able to use multiple values in the Match String. These values can come from different tables: Transactions, Users, Tracking, Notes, and LenderAddresses.

To connect these values into a query, use connectors such as AND and OR.

In this example, you want to send all requests that are older than 5 years straight to Awaiting Request Processing, bypassing Awaiting Copyright Clearance.

RuleNo1
RuleActiveYes
ProcessTypeBorrowing
TransactionStatusAwaiting Copyright Clearance
MatchStringt.RequestType = 'Article' and len(t.PhotoJournalYear) = 4 and t.PhotoJournalYear < convert(varchar(4),(datepart(year,getdate()) - 5))
NewProcessTypeBorrowing
NewTransactionStatusAwaiting Request Processing
RuleDescriptionBypasses Copyright Clearance for articles older than 5 years

In this example, you will check all new article requests against all requests made in the last x number of days to find duplicates from a specific patron.

RuleNo3
RuleActiveYes
ProcessTypeBorrowing
TransactionStatusAwaiting Copyright Clearance
MatchStringt.PhotoArticleTitle in (select PhotoArticleTitle from Transactions where CreationDate >= GETDATE()-540 and TransactionNumber <> t.TransactionNumber and Username = t.Username)


*In this match string, it will check all articles from the past 540 days. If you wanted to check for the last 30 days, change 540 to 30. If you wanted to check for a year, put 365, etc.
NewProcessTypeBorrowing
NewTransactionStatusAwaiting Duplicate Review
RuleDescriptionCheck new articles for duplicate requests

*To use this example rule, you would need to create a custom queue called Awaiting Duplicate Review

Lending - Skip Shipping Labels for Priority Shipping

In this example, you want to skip printing shipping labels for any priority shipping requests.

RuleNo4
RuleActiveYes
ProcessTypeLending
TransactionStatusAwaiting Shipping Label Printing
MatchStringt.RequestType = 'Loan' and l.PriorityShipping = 'Yes'
NewProcessTypeLending
NewTransactionStatusItem Shipped
RuleDescriptionSkips Loan shipping labels for addresses marked Priority Shipping in Lending.

Routing Rules Across Modules

Using routing rules, you can send requests from one module to another. This is only available in Borrowing and Document Delivery, requests cannot be routed from Lending to Borrowing or Document Delivery.

Doc Del to Borrowing - Not Found Items in Doc Del

In this example, you want to send all requests that were not found in your library to a special Borrowing queue called Awaiting Unfilled Doc Del Processing.

For this routing example to work properly, you would also have to create a custom queue named Awaiting Unfilled Doc Del Processing.

RuleNo5
RuleActiveYes
ProcessTypeDoc Del
TransactionStatusDoc Del Item Not Found
MatchStringt.RequestType = 'Article' or t.RequestType = 'Loan'
NewProcessTypeBorrowing
NewTransactionStatusAwaiting Unfilled Doc Del Processing
RuleDescriptionMoves Doc Del items that are not found back to Borrowing

Borrowing to Doc Del - Items Available in Library

In this example, you want to send requests received with a library call number to a special queue called Awaiting In Library Processing.

This rule will allow the request to bypass Borrowing and go straight to Document Delivery.

For this routing example to work properly, you would also have to create a custom queue named Awaiting In Library Processing.

RuleNo10
RuleActiveYes
ProcessTypeBorrowing
TransactionStatusAwaiting Document Delivery Processing
MatchStringt.CallNumber is not NULL
NewProcessTypeDoc Del
NewTransactionStatusAwaiting In Library Processing
RuleDescriptionMoves transactions that are in your library straight to Doc Del to be processed.