Invoke a method in a Java Class

From AgileApps Support Wiki
Revision as of 23:01, 5 August 2013 by imported>Aeric (Created page with "==Invoke a Java Method== Invoking a Java method lets you use the Java APIs to interact with the platform, and do anything else that you can accomplish using Java code. ===Me...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Invoke a Java Method

Invoking a Java method lets you use the Java APIs to interact with the platform, and do anything else that you can accomplish using Java code.

Method Signature

You can select any method defined in a Java class, as long as it has the required signature:

public void someMethod(com.platform.api.Parameters requestParams);
Considerations
  • The method can be either a static class method or an instance method. An instance of the object is created before making the call.
  • The method must be public, return void, and take a single Parameters argument.

Example: Validate Incoming Data

HowTo:Use a Data Policy to Validate Incoming Data