Using Gosu to configure sample data
The simplest way to configure sample data in PolicyCenter is to edit the Gosu in the gw.sampledata package.
The contents of a data set are in subpackages of gw.sampledata based on the typecode. For example, the contents of the small data set are within gw.sampledata.small. The contents are further subdivided into collections by the kind of data. For instance, to alter account data in the small sample data set, edit SmallSampleAccountData.gs.
Guidewire recommends the following guidelines for editing the data:
- The main SampleData class merely invokes the appropriate data collections. Put the data in there.
- While generating data, use the helper methods in
AbstractSampleDataCollection, creating your own as necessary. Do not put complex logic in the collection itself. - If you have frequently used constants, consider putting them in
SampleDataConstantsfor reuse.
