Lesson 1: K2BAudit basic usage

In this lesson we will learn how to audit a few transactions of the application. In order to do so, follow this steps:

  1. Go to GeneXus and click on the menu option "K2B Audit" and select "Manage Audited Transactions".
    ManageAuditedTransactions
    Manage Audited Transactions

  2. Now, it's time to select the transactions you are going to audit. In this case, we want to audit Product and Customer transactions:
    • Click on "Customer" located inside "Transactions" and drag it to "Audited Trasactions" section.
    • Click on "Product" located inside "Transactions" and drag it to "Audited Trasactions" section.
      AuditedTransactions
      Audited Transactions

    • Click on "Apply" to save the changes.
  3. Once selected the transactions you want to audit, it's time to create the triggers. For this, go to menu option "K2BAudit" and select the option "Create Audit Triggers".
    CreateAuditTriggers
    Create Audit Triggers

  4. After creating the triggers, since it's the first time you do it, it will question you if you want to create Analyzer Knowledge base. Click on "Ok".
    CreateAnalyzerKnowledgeBase
    Create Analyzer Knowledge Base

  5. Create the Analyzer Knowledge Base. We suggest you leave the name as Genexus recommends (KnowledgeBaseName+Analyzer).
    CreateAnalyzerKnowledgeBase2
    Analyzer Knowledge Base

  6. Modifiying data:
    • Now that our transactions are audited, we want to make a few changes in the database in order to see how our Analyzer Application works:
      • Insert a new Client.
      • Delete the Client you just inserted.
      • Modify the price of the product with ID 1 (Leica ELMARIT - TL) from 1000 to 1500.
    • Note: In this case we are going to use Genexus default insert, delete and update method, but it's possible to apply K2BTools patterns to Customers and Prouct transaction for this.

Now that we have modified data, it's time to see how Audit Analyzer Works.