Question

Import JAR file and use it in functions

Hello,

I have an JAR file that contains the custom-written java functions & methods to do some calculations, I want to use the JAR file in Pega DEV studio and make use the methods in the pega rules like declare expression, function.

I had tried some of the below approach

  • Imported the JAR file, but can't locate the contents of the file.
  • I had tried on writing the Java code contents inside jar as pega Function rule

Different approaches are welcomed

Comments

Keep up to date on this post and subscribe to comments

Pega
September 23, 2019 - 11:36pm

Hi Matheswaran,

You can check in pr_engineclasses table if the necessary classes are loaded into the DB.

If available, Primary check would be to try creating an Object for that class in Java Step of Activity.