Gosu enhancements
Gosu enhancements provide additional methods (functionality) on a Guidewire entity. For example,
suppose that you create an enhancement to the Activity entity. Within this
enhancement, you add methods that support new functionality. Then, if you type
Activity. (Activity followed by the dot character) within any Gosu code,
Studio uses code completion on the Activity entity and displays any methods
that you have defined in your Activity enhancement, along with the native
Activity entity methods.
Gosu enhancement files end in .gsx. Studio stores enhancement files in the
gsrc folder hierarchy in the
configuration folder.
Do not create a Gosu class, enhancement, or template at the root level, outside a package. Studio does not recognize Gosu classes, enhancements, or templates that reside at the root level.
Create a new enhancement
Before you begin
If you have not already done so, first create a package for your new class.
Procedure
- In Guidewire Studio, in the Project tool window, navigate to , and then to the package for your new class.
- Right-click the package, and then click .
-
Type the name for the enhancement.
Guidewire strongly recommends that you end each enhancement name with the word Enhancement.
For example, if you create an enhancement for an Activity entity, name your enhancementActivityEnhancement. -
Enter the entity type to enhance.
For example, if enhancing an Activity entity, enter Activity.
What to do next
See also
