When creating a solution, the user has an option to add custom SQL rules to be triggered after certain events. The rules will act on the environment(s) the solution is connected to
Event | Description |
---|---|
Before create environment | Execute the moment after saving new solution/environment |
After create environment | Executes Last after creating new environment |
Before deployment | Executes the moment user hits Execute SQL |
After deployment | Executes Last after executing SQL |
Before delete environment | ??????? |
Simple Example
This example covers creating a table and insert data for solution events
- Login to AppBase
- Go to System Setup and create a new solution (or edit an existing one)
- click on the Events tab
Fill in the events with following SQL rules
Event Rule Before create environment After create environment Before deployment After deployment Before delete environment - When saving the solution (or the environment), AppBase creates the table Log and then inserts data into it.
- When building the Solution, after pressing Execute SQL, AppBase executes the next two events (Before Deployment,then After Deployment)
- Similarly for the other events