Restricting access to a PolicyCenter screen by environment
Guidewire uses PCF (Page Configuration Format) files to render PolicyCenter screens. Properties associated with each PCF screen determine whether it is possible to visit, or edit, the screen.
It is possible to restrict access to a screen based on server environment. For example, an administrator can usually access an Activity Patterns screen. This screen provides a list of all of the activity patterns available in PolicyCenter. Clicking one of the listed activity patterns opens that pattern's detail screen.
- canEdit
- canVisit
gw.api.system.server.ServerUtil.getEnv() == "PROD"
The canVisit property must evaluate to true for the
Activity Patterns Detail screen to be accessible to a PolicyCenter administrative user. If the server is in development or
test mode, the expression evaluates to false and PolicyCenter
restricts access to the screen.
