Gosu programs and the command-prompt tool

A Gosu program is a file with a .gsp file extension that you can run directly from the Gosu command-prompt tool. This tool encapsulates the Gosu language engine.

You can use the Gosu language command-prompt tool outside the PolicyCenter server to perform the following tasks:

  • Invoke Gosu programs (.gsp files), which can use Gosu classes, Gosu extensions, and Java classes
  • Evaluate Gosu expressions passed to the command prompt.

Accessing entities and other types from the Gosu command-prompt tool

Gosu programs that you run with the Gosu command-prompt tool cannot access some types available from PolicyCenter Studio. For example, you cannot access entity types, PCF types, and plugin types. Some types have different sets of methods because some Gosu enhancements are unavailable in the command-prompt tool.

Important: Guidewire does not support the import of built-in PolicyCenter application JAR files into Gosu command-prompt tool programs.

To add, edit, delete, or query PolicyCenter entity instances from a Gosu program, implement the majority of your code as a PolicyCenter WS-I web service. From your Gosu program, read the command-prompt arguments, and then call the web service.

See also