Try OpenEdge Now
skip to main content
BPM Events User's Guide
Accessing Java objects and EJB components : Rule language extensions : Instance method invocation or property access
 

Instance method invocation or property access

To invoke an instance method, the method or property must be public. The following illustrates how object references are handled, and various types of method invocations using them.
Val myobj1: ~MyClass = new ~MyClass();
myobj1.MyMethod1();
val v2: int = myobj1.MyMethod2();
myobj1.MyMethod3(v2);
Val v3 = myobj1.MyProperty1;
….
If (myobj1.MyMethod2() > 123)
Then {…}