Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Login to AppBase
  2. Go to System Setup and create a new solution  (or edit an existing one)
  3. click on the Events tab 
  4. Fill in the events with following SQL rules 

    EventRule
    Before create environment
    Code Block
    languagesql
    collapsetrue
    CREATE TABLE LOG
      ( 
         Id NUMBER,
         time_of_creation timestamp,
         event varchar2(255)
      );
    After create environment
    Code Block
    languagesql
    collapsetrue
    INSERT INTO log (id, time_of_creation, event) VALUES (1, sysdate, 'After Create Environment');
    Before deployment
    Code Block
    languagesql
    collapsetrue
    INSERT INTO log (id, time_of_creation, event) VALUES (3, sysdate, 'Before Deployment');
    After deployment
    Code Block
    languagesql
    collapsetrue
    INSERT INTO log (id, time_of_creation, event) VALUES (3, sysdate, 'After Deployment');
    Before delete environment
    Code Block
    languagesql
    collapsetrue
    INSERT INTO log (id, time_of_creation, event) VALUES (4, sysdate, 'Before Deleting');
  5. When saving the solution (or the environment), AppBase creates the table Log and then inserts data into it.
     
  6. When building the Solution, after pressing Execute SQL, AppBase executes the next two events (Before Deployment,then After Deployment)
  7. Similarly for the other events