Rosslyn Bulk Rule Loader RAPid Application User Guide

October 30, 2023
Rosslyn

Rosslyn Bulk Rule Loader RAPid Application

Rosslyn-Bulk-Rule-Loader-RAPid-Application-PRODUCT

Introduction

This is a comprehensive guide to the Bulk Rule Loader tool, used to load rules into the RAPid audit trail for Item Classification. This guide assumes a working knowledge of RAPid Item Classification/Audit Tagging.

Features

The following key features exist in Bulk Rule Loader as of May 2021.

New Features

  • Comprehensive Review and Update of Functionality

Bulk Rule Loader – Overview

The Bulk Rule Loader is a RAPid application that can be enabled for Rosslyn and External Users. The tool allows a semi-automated method to create Bulk Rules that can then be used to automatically classify items within RAPid. It provides an alternative method of creating rules from the existing method available in RAPid data mining applications. The Bulk Rule Loader interface is used to define the structure of rules, this structure is exported to a .csv template file. That .csv template is then manually modified to provide the rules, which are then uploaded into RAPid. The rules appear in the Tagging Audit Trail to be Approved or Rejected. If Approved the rules then classify/tag the appropriate items.

Bulk Rule Loader – Prerequisites

RAPid Database
A RAPid environment needs to be set up for loading. At least one taggable dimension, e.g. UNSPSC or Customer Taxonomy, must be configured, populated and enabled/visible within the RAPid client.

Microsoft Excel
Microsoft Excel is recommended to manipulate rule Templates.

Notepad++
Notepad++ is an enhanced text editor, recommended to view large txt based (csv) files.

Bulk Rule Loader – Launching

The Bulk Rule Engine is a RAPid application available on the RAPid home page:

Bulk Rule Loader GUI – Main Window

The Bulk Rule Loader main window: Rosslyn-Bulk-Rule-Loader-RAPid-
Application-FIG-2

Dimension Selection [TAB]

This tab is used to define the rules to be bulk loaded.

Rosslyn-Bulk-Rule-Loader-RAPid-Application-FIG-3

Select target dimension for rule template
Firstly, select the target dimension for bulk rules to be applied. Target Status

Set the default Target Tagging status for the Rules template:

  • All – Taget All – Rule applies to Unclassified and Classified items
  • Unclassified – Target Unclassified – rule applies only to unclassified items
  • Classified – Target Classified – rule applies only to classified items

Target Dimension

Rosslyn-Bulk-Rule-Loader-RAPid-Application-FIG-5

Choose from list of active (visible) taggable dimensions configured for the client, in this example this includes:

  • Document Type
  • UNSPSC Categorisation

Target Columns
Choosing a Target Dimension displays related Target Columns, enough Target Columns need to be selected to be able to uniquely identify a Target Dimension:

  • Document Type

Rosslyn-Bulk-Rule-Loader-RAPid-Application-FIG-6

  • UNSPSC Categorisation

Rosslyn-Bulk-Rule-Loader-RAPid-Application-FIG-7

  • A message box to the right of the Target Columns will confirm the validity of the selections:

Select up to five source dimensions
Select the condition fields for the rules in the template:Rosslyn-Bulk-Rule-
Loader-RAPid-Application-FIG-9

Source Dimension 1
Define the rules for the Source Dimension:

Rosslyn-Bulk-Rule-Loader-RAPid-Application-FIG-10

  • Pick from any dimension configured for the client: Rosslyn-Bulk-Rule-Loader-RAPid-Application-FIG-11

Column 1

Rosslyn-Bulk-Rule-Loader-RAPid-Application-FIG-12

  • Columns relating to the Source Dimension can be selected:

Add Column

  • Multiple Columns can be added per Dimension: Rosslyn-Bulk-Rule-Loader-RAPid-Application-FIG-15
  • Note that a ‘Remove column’ button becomes available to remove unused columns:

Add Source Dimension
Click the ‘Add Source Dimension’ button to add additional dimensions (up to 5 ):Rosslyn-Bulk-Rule-Loader-RAPid-Application-FIG-16

Note that a ‘Remove source dimension’ button becomes available to remove unused source dimensions:

Results Message
At the bottom of the ‘Dimension Selection’ window, a box displays the status of the work:

Download Template

Once satisfied with the defined rules, choose the ‘Download Template’ button to export the rules to a .csv file that can be manipulated before being uploaded into RAPid. The file will be automatically downloaded with the naming convention: RApidBulk-Rule-Loader-Template().csv For example, this could be either:

  • RApidBulk-Rule-Loader-Template(Document-Type).csv
  • RApidBulk-Rule-Loader-Template(UNSPSC-Categorisation).csv

Template Modification

Before being uploaded to RAPid the rule will need to be manipulated. The output .csv file is split into three sections:

  • Template – [Not to be amended] This includes a description of the template and the valid conditions and types of values that can be used for each column
  • Help – [Not to be amended] Text to guide Users how to modify the Rules
  • Rules – Section to be modified with the Rules to be applied to RAPid

Rosslyn-Bulk-Rule-Loader-RAPid-Application-FIG-19

Template [Section]
The Template section should NOT be modified, it provides a list of the valid statuses/conditions for the Dimensions selected during the ‘Dimension Selection’ phase.

Template Definition Please do not modify this section.

The following section lists the target and source dimension columns selected when the template was generated and the accepted conditions for each one.

 |  |  |
Fact Dimension|

Invoice Detail

|
 |  |  |
Target Status|

Valid Statuses

|

All, Classified, Unclassified

 |  |  |
Target Dimension|

Document Type

|

Columns

|

Code (Text)

 |  | Valid Conditions| Exact Value Required
 |  |  |
Source Dimensions|

1. Document Type

|

Columns

|

1. Code (Text)

 |  |

Valid Conditions

| Equals, Not Equals, Starts With, Ends With, Contains, Like,

Matches Phrase, Matches All, Matches Any

Help [Section]
The Help section exists in the Template file to act as a guide:

  • One rule per line.
  • The rule name is a free text field which is required and should be used to describe the purpose of the rule.
  • The target status defines whether the rule should be applied to classified or unclassified items only or all items regardless of status.
  • For each line at least one target value must be populated and at least one source value must be populated.
  • The combination of target values supplied in the line must be sufficient to uniquely identify the target dimension or the rule will not be loaded.
  • For hierarchical/taxonomy dimensions
    • an ‘L1’ value only will be assumed to target the level 1 node. ‘L1’
    • ‘L2’ will target the L2 node.
  • Empty source values will be ignored
  • The associated condition field is required for any populated source value. Valid values for each field can be derived from the template above.
  • The default conditions for each source value as selected when the template was created have been pre-populated in line 1 but can be changed as above.
    • e.g. Line with Rule Name = ‘Taxi charges to Travel’ – Taxonomy/Description Level 1 (Target Value) = ‘Travel’ – Invoice Detail/Description (Source Value) = ‘Taxi’ – Invoice Detail/Description (Condition) = ‘Matches All’
  • -> generates rule called ‘Taxi charges to Travel’ that classifies any invoice line with ‘Taxi’ in the line description to Taxonomy L1 Classification ‘Travel’.

Rules [Section]
The Rules section is modifed by the User to provide the Rules to be added to RAPid Item Classification:

Rules| This section is for completion by the user. Please do not modify the column headings.
---|---

Rule Name

|

Target Status

| Document Type/Code (Target

Value)

|

Document Type/Description (Target Value)

|

1. Document Type/1. Code (Source Value)

|

1. Document Type/1. Code (Condition)

---|---|---|---|---|---
 | All|  |  |  | Equals

Additional rules can be entered by adding additional rows.

Example Rules

Rule

s

| This section is for completion by the user. Please do

not modify the column headings.

|  |  |  |
---|---|---|---|---|---
 |  |  |  |  |  |  |
Rule Nam e| Target Status| UNSPSC

Categorisation/Des cription Level 1 (Target Value)

| UNSPSC

Categorisation/Des cription Level 2 (Target Value)

| UNSPSC

Categorisation/Des cription Level 3 (Target Value)

| UNSPSC

Categorisation/Des cription Level 4 (Target Value)

| 1.

Invoice Detail/1

.

Descript ion (Source

Value)

| 1.

Invoice Detail/1

.

Descript ion (Conditi

on)

Test 1| Unclassif ied| Cleaning Equipment and Supplies| Cleaning and janitorial supplies| Brooms and mops and brushes and

accessories

| Toilet brushes| Toilet Brush &

Holder

| Contain s
Test 2| All| drugs and pharmaceutical

products

| anthelmintics|  |  | Aspirin| Contain s

Template Upload [TAB]

Once the Template (.csv) is modified it needs to be uploaded into RAPid to appear in the Tagging Audit Trail. Rosslyn-Bulk-Rule-Loader-RAPid-
Application-FIG-20

Select completed rule template file for upload
Browse to select the exported template file:

Rosslyn-Bulk-Rule-Loader-RAPid-Application-FIG-21

Upload File
With the Template File selected, click to ‘Upload File’ into RAPid:

A status in the top right will confirm the upload process:

Upload File Results
The results of any upload are validated and displayed for review before being committed to RAPid.

Successful Upload
The first step validates the logic of the Upload:Rosslyn-Bulk-Rule-Loader-
RAPid-Application-24

At this point changes have not been made to RAPid. Choose to Commit or Cancel the change. If committed, the following message appears:

Rosslyn-Bulk-Rule-Loader-RAPid-Application-25

Failed Upload
If the file being uploaded is incomplete or incorrect, the csv file will NOT make any changes to RAPid, and will be rejected with a visible reason. Note that any errors will need to be corrected and the file upload attempted again:

Rosslyn-Bulk-Rule-Loader-RAPid-Application-26

Tagging Audit Trail
The rule will now appear in the Tagging Audit Trail (RAPid Application) for Approval/Rejection.

Rosslyn-Bulk-Rule-Loader-RAPid-Application-27

Note that Super Users can be granted the ability to Approve/Reject rules in bulk (highlighting multiple rules). If the ability to bulk Approve/Reject is a requirement please contact Rosslyn Support.

End-to-End Scenario

Launch the Bulk Rule Loader:

Rosslyn-Bulk-Rule-Loader-RAPid-Application-28

  • Define the target dimension:

Rosslyn-Bulk-Rule-Loader-RAPid-Application-29

  • Define the source dimensions:

Rosslyn-Bulk-Rule-Loader-RAPid-Application-30

  • Download the Template .csv file for modification:
  • RAPid Item Classification is being used to define the Rules to be defined: Rosslyn-Bulk-Rule-Loader-RAPid-Application-32
  • In this scenario we will categorise brushes to the appropriate UNSPSC Categorisation: Rosslyn-Bulk-Rule-Loader-RAPid-Application-33 Rosslyn-Bulk-Rule-Loader-RAPid-Application-34
  • The output .csv file is modified to classify items appropriately, this could be via Excel or Notepad: Rosslyn-Bulk-Rule-Loader-RAPid-Application-35
  • Rules, This section is for completion by the user. Please do not modify the column headings.,,,,,,
  • Rule Name,Target Status, UNSPSC Categorisation/Description Level 1 (Target Value), UNSPSC Categorisation/Description Level 2 (Target Value),UNSPSC Categorisation/Description Level 3 (Target Value), UNSPSC Categorisation/Description Level 4 (Target Value),1. Invoice Detail/1. Description (Source Value),1. Invoice Detail/1. Description (Condition) TEST, Unclassified, Cleaning Equipment and Supplies, Cleaning and janitorial supplies, Brooms and mops and brushes and accessories, Toilet brushes, Toilet Brush & Holder,Contains

Upload the Template file using Bulk Rule Loader:

Rosslyn-Bulk-Rule-Loader-RAPid-Application-36Rosslyn-Bulk-Rule-Loader-RAPid-Application-37

  • Launch the Tagging Audit Trail: Rosslyn-Bulk-Rule-Loader-RAPid-Application-38
  • Note how the Rule is added with the correct details for Approval/Rejection: Rosslyn-Bulk-Rule-Loader-RAPid-Application-39
  • Verify that the rule appears correct before deciding to Approve or Reject: Rosslyn-Bulk-Rule-Loader-RAPid-Application-40
  • Item Classification can be used to verify successful classification: Rosslyn-Bulk-Rule-Loader-RAPid-Application-41
  • The following shows the data modified (note – the table rows are split across two pictures to be viewable on the page): Rosslyn-Bulk-Rule-Loader-RAPid-Application-42
  • NH/RDT – V1 May 2021

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

Rosslyn User Manuals

Related Manuals