Back Forward Service MQ form
Completing the Service tab

About Service MQ rules

Use the Service tab to identify the activity that this Service MQ calls.

Field

Description

Primary Page  
Page Class

SmartPromptSelect the class of the page that Process Commander passes to the activity as its primary page. This is also the class that the activity being called by the service belongs to.

Page Model

SmartPromptOptional. Identify a model in the class, to be applied as the page is created.

Page Name

Enter the name of the top-level clipboard page that Process Commander uses at runtime as the primary page by the activity being called remotely through MQ messaging. The property values may be written to or read from this page.

Enter any page name, or accept the default value MyServicePage. (This page name has no special characteristics.) BUG-4561

Service Activity  
Activity Name

SmartPromptSpecify the name of the activity that provides the processing for this service rule. For example, the activity can start a work object in a flow, or perform a flow action on an existing work object. This activity is known as the service activity.

The system uses the value you enter in the Page Class field as the Applies To key part of the activity. The system creates a page with the name provided in the Page Name field and passes it to the activity as the primary page. If the Page Name field is blank, the system passes the activity an unnamed page.

If a parameter value is the same for every service request, you can use the  Params   button to set that parameter's value rather than requiring a client application to supply it in each request. For example, if a service activity starts a flow for a work object and the organization is always the same, specify the name of the organization on this tab. Note that parameter values from the incoming request override values set on this tab.

Processing Options  
Method is read-only

Leave unselected in most cases. Select to indicate that each use of this service is not to count as a service invocation under the terms of your license agreement. See Working with the License Compliance facility.

Execution Mode

SmartPrompt5.4 Proj-318 Select one of the following options:

  • Execute synchronously – Select this when you want the service to run the request immediately.
  • Execute asynchronously – Select this when you want the service to queue the request, return the Queue Item ID to the external application, and end the service call while the processing starts. Choose this option only if a Service Request Processor data instance (Data-Admin-RequestProcessor-Service class) exists with a key that matches the Service Package key part of this service rule.

When the queued service request executes, the execution is performed with the authorization profile of the service. ABLAL 1/9/09

For more information, see Pega Developer Network articles PDN PRKB-25029 How asynchronous service processing works and PRKB-25030 Create a service that processes requests asynchronously.

Request Processor

SmartPrompt5.4 Proj-318If you select Execute asynchronously in the Execution Mode field or you configure a Queue When condition on the Response tab, select the name of the service request processor (instance of Data-Admin-RequestProcessor-Service). The list in this field displays only the request processors that are defined for the same service package as this service rule.

 Integration Viewer

After you save this form, click to view a tree of the components that comprise the service package. See About the Integration viewer.PROJ-311

Up About Service MQ rules