21 terms

SNOW | Write, test, and debug server side scripts

STUDY
PLAY

Terms in this set (...)

what are the two types of server-side scripts
business rules & script includes
what kind of involvement do business rules have with forms?
they do not monitor forms or form fields but DO EXECUTE LOGIC WHEN FORMS INTERACT W/ THE DATABASE
what are the when options that determine (relative to database access) business rule logic executes?
before, after, async, display
specify when business rule should run:

use an after Business Rule when updates need to be made to a record related to the record accessed. If a record has child records use an after Business Rules to propagate a change from the parent record to the children.
after
specify when business rule should run:

if you want to concatenate two fields values and write the concatenated values to the Description field.
before
when should a business rule run if field values on a record need to be modified before the database access occurs?
before
when should a business rule run when no changes are needed to the record being accessed in the database?
after
when does the business rule logic run if the when option is specified as async?
after database operation occurs
what is the difference between after and async business rules?
async business rules are queued by a schedule to be run as soon as possible
what is the advantage of async business rules?
they allow transaction to complete without waiting for the business rules execution to finish and prevents freezing a user's screen
what kind of business rule is executed for SLA calculations?
async
where would you go to see async business queued for execution?
system scheduler > scheduled jobs > scheduled jobs and look for job names beginning with _async
when do display business rules run their logic?
when a form loads and a record is loaded from the database.
display business rules must complete execution before ___________
control o the form is given to a user
what is the point of a display business rule?
to populate an automatically instantiated object, g_scratchpad
what is the association between the g_scratchpad object, the display business rule, and client-side scripts?
g_scratchpad object is passed from the display business rule to the client-side for use by client-side scripts
what object is used to pass data to the client-side without modifying the form?
g_scratchpad
what are the default properties of g_scratchpad?
g_scratchpad has no default properties
what is the 8 step business rule process flow?
User or system query > query rules > database query > display rules > form submit > before rules > database update > after/async rules
what is the 8 step business rule process flow?

query rules
after/async rules
user or system query
before rules
database query
display rules
form submit
database update
User or system query > query rules > database query > display rules > form submit > before rules > database update > after/async rules
what is the 8 step business rule process flow?

user or system query
database update
database query
query rules
after/async rules
before rules
display rules
form submit
User or system query > query rules > database query > display rules > form submit > before rules > database update > after/async rules
YOU MIGHT ALSO LIKE...
STUDY GUIDE