Question

After a jar file deployment, is it possible to see what rules that were deployed got executed at least once?

After a jar file deployment, is it possible to see what rules that were deployed got executed at least once via the application in 6.3 SP1?

Message was edited by: Kip Jackson

modified the Discussion Title

**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.

Correct Answer
November 15, 2015 - 5:41pm

Perhaps someone has a more straight forward answer, but I would suggest proceeding like this:

1) Trace the import mechanism so you can understand what rules are used (probably functions and activities) for opening the zip file and determining exactly the pzinskeys being imported.   Use those same rules yourself for storing away a list of the pzinskeys you are interested in monitoring.

2) use a db query to show how many rows exist in each table, and use that query three times, once before the import, once after the import, and once after using your rules.  By comparing the first two usages of the query, the tables whose rows have changed show you which tables the imported rules are cached into.   By comparing second and third usages of the query, you'll know which db tables  the rules are cached into when the rules are actually used.  It's this last set of tables you'll be most interested in when you want to know how many of your rules have been used at least once.  [ NOTE:  Beware that different kinds of rules are cached to different tables.   But your usage of the query will help determine the differences ]

/Eric

Comments

Keep up to date on this post and subscribe to comments

August 27, 2015 - 12:52am

Hope this prhelp document: Working with the Shutdown Rule Usage facility will answer your question.

September 10, 2015 - 5:40pm
Response to Chunzhi_Hong

Hi Chunzhi -

The article is related to the statistics of all the rules that gets executed by the application. I am actually looking for only the rules that gets deployed as part of that release (jar file deployment) not the rules that were already existing before the deployment. We would want to make sure that those rules got executed at least once.

November 4, 2015 - 9:18am
Response to NIPUNPETER

Hi Nipun,

Apologies for the delay in response.

Are you still looking for information related to what rules that were deployed got executed at least once via the application in 6.3 SP1 after a jar file deployment?

Do keep us posted to guide you better.

Thanks!

Vidyaranjan | Community Moderator | Pegasystems Inc.

November 13, 2015 - 2:03pm
Response to Vidyaranjan

Yes, I am actually looking for statistics of only those rules that gets deployed as part of that release (jar file deployment), not the rules that were already existing before the deployment of the jar.

November 13, 2015 - 2:49pm
Response to NIPUNPETER

Hi Nipun,

For your question, follow the below search mechanism from your developer portal. This exercise was performed to check on one of my "HFIX-4786.JAR" related rules (3) details.

1.png

To know about the classes I think you can give a try the below navigation from SMA.

SMA -> Adv -> Class Loader -> Class Details -> Class instances

Not sure, if any of these will help you or not.

Thanks,

Ravi Kumar Pisupati.

November 15, 2015 - 5:41pm

Perhaps someone has a more straight forward answer, but I would suggest proceeding like this:

1) Trace the import mechanism so you can understand what rules are used (probably functions and activities) for opening the zip file and determining exactly the pzinskeys being imported.   Use those same rules yourself for storing away a list of the pzinskeys you are interested in monitoring.

2) use a db query to show how many rows exist in each table, and use that query three times, once before the import, once after the import, and once after using your rules.  By comparing the first two usages of the query, the tables whose rows have changed show you which tables the imported rules are cached into.   By comparing second and third usages of the query, you'll know which db tables  the rules are cached into when the rules are actually used.  It's this last set of tables you'll be most interested in when you want to know how many of your rules have been used at least once.  [ NOTE:  Beware that different kinds of rules are cached to different tables.   But your usage of the query will help determine the differences ]

/Eric