Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 23 pages
Exam (elaborations)

Exam Guidewire Best Practices Exam - Complete Study Guide

Document preview thumbnail
Preview 3 out of 23 pages

Avoid using internal path for your classes - ANSWER wire.* should be avoided. These can always be potentially changed or replaced during an upgrade. When referencing typecodes, use the static property on the typelist class instead of the string representation - ANSWER Use TC_TYPECODE instead of "typecode", example: LossCause.TC_REAREND instead of "rearend" Use the text for logical operators instead of the symbols - ANSWER Use "and","or", and "not" instead of "&&", "||", and "!" Code placement - ANSWER 1) Avoid placing code within the CODE tab of a PCF. Create a UI helper class instead 2) Avoid extending entity enhancements with code supporting UI operations Avoid using deprecated classes and methods - ANSWER Guidewire will eventually remove deprecated classes and methods. Turn on and run Studio Inspections - ANSWER These analyze configuration resources Use whitespace effectively - ANSWER Add spaces around operators Do not add spaces between parentheses and operators Indent logical blocks of code by two spaces only Add a blank line after code blocks Add two blank lines after methods, including the last method in a class Comments and Annotations - ANSWER Document new classes and functions with Javadoc-style comments Use single-line comments within functions and methods when you need to clarify the intent of the code Use GoseDoc annotations which are included when generating GosuDoc "Upgrade-Safe" naming conventions: Add the suffix _Ext to - ANSWER Columns added to existing entities Typecodes added to existing typelists The name of custom entities The name of custom typelists New PCF files Script parameters Package naming conventions - ANSWER Use the format re Customer - company name abbreviation Application- InsuranceSuite application code (pc, bc, cc, suite) Feature Category - major feature (delinquency, configuration, integration) Feature - feature (rating, catastrophe, authentication) Example: ntication Class naming conventions - ANSWER Use UpperCamelCase Do not add _Ext to classes within customer package spaces Function naming conventions - ANSWER Use lowerCamelCase Use a verb that describes that the function is doing i.e. verifyAddress Do not add _Ext suffix to private functions or enhancements in customer package spaces Variable naming conventions - ANSWER Member variable names use lowerCamelCase with a leading underscore i.e. _pluginCallbackHandler Local variable names use lowerCamelCase short names that describe the purpose i.e. latestPolicyRevision Display key naming conventions - ANSWER Add suffix _Ext too all new display keys Do not modify automatically generated display keys Logging is - ANSWER The process of recording application actions and state to a secondary interface Logging is used for - ANSWER Application maintenance and troubleshooting Creating statistics relating to application usage Auditing by capturing significant events Typical events to log are - ANSWER Success / Failure - a transaction or action has succeeded or failed Recovery - a system went down or connection failed, retried, and recovered Identification - any large functional areas such as integration, rating, reinsurance, and rules Logging components - Logger - ANSWER has a category and level, sends content to an Appender Logging components - Appender - ANSWER is an output destination (server console or rolling file) Logging components - Layout - ANSWER defines the format of the content sent to an appender Logging Level - Trace - ANSWER Description: Fine-grained informational events When to use: Log method entry and exit Logging Level - Debug - ANSWER Description: Detailed informational events When to use: Log important steps and calculations for diagnosing problems Logging Level - Info - ANSWER Description: Coarse-grained informational messages of progress When to use: Log the occurrence or result of an important event Logging Level - Warn - ANSWER Description: Indicate a potential problem When to use: The user experience has not been affected Logging Level - Error - ANSWER Description - Indicate definite problems When to use: The user experience has been affected There are 2 ways to initialize a logger in Gosu - ANSWER Integration: PLLoggerCategory.INTEGRATION Plugin: PLLoggerCategory.PLUGIN Use sub-level of existing logging category to maintain structure. Example: PLUGIN.MotorVehicleRecord static var _motorVehiclePluginLogger = LoggerFLogger(PLLoggerCategory.PLUGIN."MotorVehicleRecord") Logging Format should be - ANSWER a standard format to simplify analysis of large logs Guarded Logging should be used - ANSWER To test log level before logging costly messages (those with expensive expressions) Typically used with the DEBUG level Format is - if (_logger.DebugEnabled) { log statement content} Not required for parameterized expressions lacking expensive operations, as in: var hello = "Hello" var world = "world" _("{}, {}!", hello, world) Logging: Exception Messages - ANSWER Logged at the ERROR level when user interface is affected Not all exceptions are errors - if they are expected, log at WARN or INFO level Pass the exception object as the second argument Logging Guidelines - ANSWER Log with enough information to explain the state of the application and what was happening Excessive logging results in large logs with potential performance risk Insufficient logging results in logs that lack utility Use care with: Data that is protected by legal, regulatory, or contractual obligations Personally Identifiable Information (PII) - do not log PII at all! Guidewire Query API General Best Practices - ANSWER Use the property reference (EntityType#Property) for type-safe access to the properties on the query entity type Use the property reference to filter query results, join to another entity type, order rows in the result set, or to specify a column for a row query Use ins() after other re() operations against indexed columns for better performance against large data sets Guidewire Query API - Denormalized columns improve performance of - ANSWER Ends with searches Case-insensitive searches Guidewire Query API Anti-Patterns - Bring back only the data you need by - ANSWER Avoid filtering query results in memory Avoid filtering query results in the application server Perform filtering in the database Avoid the use of where(), first(), last(), firstWhere(), and lastWhere() Guidewire Query API Anti-Patterns - use dot notation with care because - ANSWER accessing foreign keys or array fields retrieve additional entities into memory Guidewire Query API Anti-Patterns - Check for existence of an entity when the number of results is not important by - ANSWER Verifying the results of a targeted query are not empty Avoiding hasMatch(), countWhere(), and select().Count Guidewire Query API Anti-Patterns - When a count is necessary, let the database count the entities and - ANSWER Avoid countWhere() Avoid counting collections Avoid iterating over entities from the database to count them Avoid counting entities before accessing them Avoid countWhere() and select().Count Guidewire Query API Anti-Patterns - Avoid queries to check for new or changed entities, instead - ANSWER Us


Document information

Uploaded on
September 6, 2023
Number of pages
23
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$12.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
martinezmartinez
4.9
(260)
Sold
103
Followers
44
Items
4556
Last sold
6 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.