Manage the WIR Database

Last Updated: Version 26R4

A user with Administrator or Designer access level can complete this task.

Once you create a Workflow Intelligence Repository (WIR) in Configure a Database, you can then manage the database objects within the WIR in the Database Management screen.

This database can be used for data enrichment within batch and document business rules. For example, a rule may lookup the vendor account number using the vendor name and address, or lookup the PO data using the PO number that is extracted from an invoice document. This data can be used for Accounts Payable 3-way matching and verification.

You can also execute a query to mine specific data, replace data, or perform a count within a table.

View the WIR Database Tables

  1. Choose Settings.

  2. Choose Database Management.

  3. From the Connection list, select the WIR that you created previously. All available tables will load, but initially the data is empty, as shown below. Once created, tables are listed alphabetically.

Create a Table

  1. Click +Create New Table.

  2. Enter a unique name for the table, and then click +Add Column to choose Column Settings:

    1. Enter a unique name for the column. The column name cannot start with a number, and should use only letters, numbers, and underscores. The name is limited to 100 characters.

    2. Select the Data type. Options are Text, Integer, Decimal, Boolean, Date Time, Date, or Time.

    3. If Text was selected, enter the field length.

    4. Under Properties, set the following fields:

      • Required: Set to True if this column must be populated.

      • Auto Increment: If the data type is Integer, set to True to automatically generate values.

      • Default Value: Choose the appropriate default value for the data type.

        Note that relational columns and table relationships (e.g., foreign keys) are not supported.

  3. Click OK to proceed. Back on the Create Table screen, click +Add Column to repeat steps 2 and 3 above to create additional new columns in this table.

  4. Once all columns are created for this table, click Add Table.

  5. Repeat the instructions above to create additional tables.

The tables appear in the Database Management screen, as shown in the example below. If changes are necessary, you can click the Ellipses menu to Edit or Delete the table. The Designer can now configure business rules that query this table.

If you choose to Delete a table, a warning message indicates that the deletion is permanent. Proceed with caution.

View and Maintain Records

You can view and edit records stored within the WIR repository tables.

  1. In the Database Management screen, click the Ellipses button beside a specific table, and choose Select All from the menu.

  2. The table data will load all records, as shown in the example below.

  3. Click Edit to modify any editable values in the table.

  4. Click the Ellipses button and select Delete to remove a table entry.

Execute a Query

You can query the database to mine data and perform Select, Count or Insert operations. After you select the query type, you will be able to choose a specific table or view to query.

  1. In the Database Management screen, click Execute Query.

  2. In the Execute Query screen, choose the query Type: 

    • Select: A simple data query

    • Count: Count rows in a table

    • Insert: Insert a new row into a table

  3. Select the table from the Table or View list. Additional fields will load based on the query type selected.

    Field¯ Type ®

    Select Count Insert

    Return: Select one or more columns to query from the list

    ü ü  
    Skip ü    
    Limit ü    
    Sort by ü    
    Sort Order ü    

    Distinct (checkbox if Select, drop-down of columns in table if Count)

     

    ü

     

    Optional Columns

     

     

    ü

    Conditions

     

    ü

     

In the example below, an Insert query was executed to determine if any data matched a specific date.

As shown in the screen below, one row in the selected table was a match (affected), which means that one row of data was inserted into the database.