You are here: Reference > Rule types > Connect Javas > Connect Java form - Completing the Service tab

  Connect Java form
Completing the Service tab

  1. About 
  2. New 
  3. Service 
  4. Constructor 
  5. Method 
  6. History 
  7. More... 

Complete this tab first.

Field

Description

Java Class

Enter the fully qualified name of the Java class.

Java Class Constructor  
Constructor

If the value in the Initialize Object field is set to either Create a new object every time or If possible, use a valid object handle, identify the name of the constructor to be used. If this constructor requires parameters, complete the Constructor tab.

Java Class Method  
Initialize Object

Indicate whether a new Java object is to be used for each call. Select one:

  • Create a new object every time
  • If possible, use a valid object handle
  • Require use of a valid object handle
Method

Enter the signature of the method to be called, identifying the position and types of each parameter. For example:

getPhone(String)
getSize()

Finalize Object

Indicate the disposition of the object after the call completes. Select one:

  • Keep alive and store object handle
  • Remove object after method call
Object Handle Property

Optional. To save an object handle across multiple calls, identify a property of mode Java Object to contain the handle.

Error Handling  
Status Value Property

Optional. Identify a Single Value property that can hold a status value returned by the connector. The literal value Good identifies success. You can use the standard property @baseclass.pyStatusValue.

Status Message Property Optional. Identify a Single Value property that can receive a text error message returned by the connector. You can use the standard property @baseclass.pyStatusMessage.
Invocation Exception Property

Optional. Select a property of mode Java Object to contain a Java exception, if any are thrown during this connection execution.

Error Handler Flow

Optional. Identify a flow rule that is to be started when this connector rule is started by a flow rule but fails. The default flow rule Work-.ConnectionProblem provides one approach for handling such problems. See Handling connector exceptions.

Test Connectivity

Click this button at any time after you have completed and saved the form to confirm that the Pega 7 Platform can connect to the Java class identified.

The system presents test results in a separate window, identifying the parameters used in the test, the steps attempted, and the outcome of each step.

Simulations

Click to create a simulator for this connect rule. See Creating connect simulators.

   

About Connect Java rules