Register a data change from a command prompt

About this task

The command prompt tool data_change works by calling the DataChangeAPI web service on a running PolicyCenter server.

Warning: Before registering a data change on a production server, register and run the data change on a development server first. Guidewire recommends multiple people review and test the code and the results before attempting the data change on a production server.

Procedure

  1. Ensure that the PolicyCenter application server is running.
  2. Open a command prompt and navigate to the following location in the PolicyCenter installation:
    • admin/bin
  3. Run the following command:
    data_change –description DESCRIP –edit REFID –gosu PATH –server SERVERURL –user
          USER –password PW 

    The PolicyCenter administration command prompt tools all require that you enter the password of an administrative user for the tool to work. The use of a user name is optional.

    For example:
    data_change –description "Fix Employee Name"
          –edit REFID_1234 –gosu c:\PolicyCenter\datachange\gosudatachange_REFID1234.gsp
          –server http://TESTINGSERVER:8180/pc –user su –password gw

Results

The script outputs results similar to the following text:

Running data_change.gsp
Connecting as su to URL http://localhost:8180/pc/ws/gw/webservice/systemTools/DataChangeAPI
Edit change ref=REFID1234 publicId=cc:1

What to do next

See also