How to use utility functions outside Process Commander


A developer asks:

For a JSR94 implementation, I wish to get at function rules extracted from the rulebase, for use outside the application. What's the best approach? 

Suggested Approach

If the function rules reference Process Commander infrastructure (such clipboard pages), using them outside the Process Commander system won't work.  However, if the functions only reference external structures, here's an approach.

Place the Java code that implements the functions into a separate implementation that's outside the Process Commander system entirely.  Package it as a jar file and access it from there.  Both the function rules and your external Java code can then just use the functions available from the jar.

For example, if you have developed a library of function rules that compute asset depreciation schedules, you can repackage the Java code into a standalone JAR file. The function rules and outside code can both access the JAR file.

Note: Repackaging of function rules that were developed by Pegasystems may be restricted by license agreements.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.