calling functions - syntax

I created a function in my library. How can I call it in my Rule-Html-Property?
I tried all these ways:

I thought it can resolved by using fully qualified path. But I am not sure how can I see the package name for my library?

Appreciate your help on this.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

July 10, 2009 - 10:55am

The first syntax is correct.
Have you compiled the library?


July 10, 2009 - 10:56am

Yes I did. It works when I call it from activity.


July 10, 2009 - 10:58am

actually My library name is like this: X_Y
so I need to give as: ruleset_X_Y.function(..);

Is that creating a problem?
Not sure why it does not work


July 10, 2009 - 11:00am

What is the error message?
If you see the function call from the generated Java for the activity, you should be able to copy it from there.

The ruleset & library names are lowercased, so if your library is named X_Y, the generated Java is ruleset_x_y.function(...)


July 10, 2009 - 11:19am

Appreciate your help on this Jon. It worked as I copied from the activity with fully qualified name :)

April 7, 2015 - 6:35am

Thanks all!

Function @(Pega-RULES:Utilities).callActivity(ClipboardPage, String, ParameterPage) can be called from other function as:

pega_rules_utilities.callActivity(primaryPage, "ActivityName", paramPage);