Java External API Application Rule

This Application Rule is used to call Java External API in your process flow. You need to specify the Class Name and the method of the API.

Figure 4-10 Java External API Application Rule Details window


This image displays the Java External API Application Rule Details window.

Table 4-6 Java External API Application Rule Details Description

Field Name Description
Name Enter a unique name for the Application Rule.
Rule Type Select the Rule Type from the drop-down list. The Java External API Application Rule can be used as a Decision Rule, Execution Rule, or Selection Rule based on your requirement.
Execution Type Displays the Application Execution Type as JAVA External API.
Class Name Enter the complete java class name that implements the Business Logic.
Method Enter the method that you want to execute.
Input Parameters You can pass Input Parameters for the method using Data Fields. Select the required Data Fields from the drop-down list.
Return Parameters Select the Data Field that stores the Return Parameter of the method, from the drop-down list.
Scope Select the Scope as Process to use the Application Rule only in the current process or Package to use the Application Rule across all the processes in the package.

Note:

  1. The class and its dependent file (or jar) need to be available in the web container classpath. For example, <TOMCAT_HOME>/webapps/<context>/WEB-INF/lib/<forecast.jar>
  2. For details on the supported APIs for use as Java External APIs, see Appendix B.