Constructing the XML for the administrative data import file
The PolicyCenter/build/xsd/pc_import.xsd file defines the XML schema used for import and export of administrative data. This file further references information in two other XSD files in the same directory:
- pc_entities.xsd
- pc_typelists.xsd
You can use any schema-aware XML editor to help format information properly according to these
XSD definitions. You generate these XSD files by entering the following command in a
command prompt open in the PolicyCenter installation folder:
gwb genImportAdminDataXsd
Regenerate the XSD files any time you modify the data model. These files are likely to change as you configure the data model.
The following XML example shows the default activity pattern 30 Day Diary from the PolicyCenter administrative export file.
<?xml version="1.0"?>
<import xmlns="http://guidewire.com/pc/exim/import" version="p5.86.a12.309.46"
usePeriodicFlushes="true">
<ActivityPattern public-id="sample_pattern:19">
<ActivityClass>task</ActivityClass>
<AutomatedOnly>false</AutomatedOnly>
<Category>reminder</Category>
<Code>30_day_diary</Code>
<Command/>
<Description/>
<Description_L10N_ARRAY/>
<DocumentTemplate/>
<EmailTemplate/>
<EscBusCalLocPath/>
<EscalationBusCalTag/>
<EscalationDays/>
<EscalationHours/>
<EscalationInclDays/>
<EscalationStartPt/>
<Mandatory>false</Mandatory>
<PatternLevel>All</PatternLevel>
<Priority>normal</Priority>
<Recurring>true</Recurring>
<ShortSubject/>
<ShortSubject_L10N_ARRAY/>
<Subject>30 day diary</Subject>
<Subject_L10N_ARRAY/>
<TargetBusCalLocPath/>
<TargetBusCalTag/>
<TargetDays>30</TargetDays>
<TargetHours/>
<TargetIncludeDays>elapsed</TargetIncludeDays>
<TargetStartPoint>activitycreation</TargetStartPoint>
<Type>general</Type>
</ActivityPattern>
</import>
You can:
- Modify any existing entry in the administrative export file and re-import the file.
- Add additional entries by using the existing entries as a model and re-import the file.
