After completing or updating the service rules in the service package, confirm that all the services rules you expect are present and accessible before you deploy. For Service REST rules, you can also view and delete the invocation history.
- Create a service package. For more information, see Creating a service package.
- Define the processing mode, access group, and authentication for the service package. For more information, see Defining processing and authentication for service packages.
- In the navigation pane of Dev Studio, click Records.
- Expand the Integration-Resources category, and then click Service Package.
- On the Context tab, in the Methods
section, click Refresh to refresh the list of methods. The system searches the PegaRULES database and lists rules (of the selected service rule type) with the package name as the first key part. If you provided an access group in the Service access group field, the display includes only rules of the selected service type that are visible to a requestor with that access group.
If you did not provide a service access group, the display includes only rules (of the selected service type) that are visible to your ruleset list. This field uses a search to list the results, and does not update any rules.
- To review a list of the methods (each defined by a service rule) in the
package, in the Service type field, select one service
rule type. Save the form and click Refresh methods.
For example: Rule-Service-REST
- Click Save on the rule form and then click Refresh.
- In the Service monitoring field, click the
Gear icon to configure whether to monitor this rule,
and if monitoring, whether to include the clipboard state.This field is displayed when the service type is Rule-Service-REST. You can configure monitoring at the service level only if the service/EnableGlobalMonitoring dynamic system setting is set to Deferred.
- In the Edit service monitoring window, in the Select service monitoring field, select whether to enable monitoring for this rule.
- Optional: To configure monitoring at the individual service level by clicking As defined on the service rule.
- If you turn on monitoring, in the Capture clipboard state field, select whether to include the state of the primary data page in the monitoring results.
- Click Submit.
- To immediately delete the invocation history for all rules in the service
package, click Clear invocation history.
Note: This field is only displayed when the service type is Rule-Service-REST.
- In the Method name column, click the service rule to open
it.Each service rule found in the service package is listed in the column. Each row lists the service version.
- If your service type is REST, click the service rule in the Resource path column to open it.
- In the Ruleset column, click the name of the ruleset to open it.
- In the Test endpoint, click Test to
open a dialog box where you can enter values for the variable components of the
URI template.The dialog box does not open if the endpoint only contains literal components.
- To view the invocation history for an individual rule, click View
Result: The Service request invocation history dialog box displays information about each invocation of the rule. You can view the URI template, request and response data, the clipboard state (if configured), and attachments that are included in the request and response.
- Click Save.