Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 13 Scorecards : Understanding and Working With Scorecards

Understanding and Working With Scorecards
A scorecard is a special type of concept. A scorecard serves as a set of static variables that is available throughout the project. You can use a scorecard resource to track key performance indicators or any other information.
Unlike concepts and events, each scorecard resource is itself a single instance — it is not a description for creation of instances. You create the scorecard at design time. Its values can be viewed and updated using rules.
It is more accurate to say there is one instance of a scorecard per inference agent. Each inference agent in an application has its own instance of the score card. Scorecards are not shared between agents.
Any agent that uses scorecards, and also uses Cache OM, must be assigned a unique key so that the correct scorecard can be retrieved from the cache. The key is set in the Processing Unit tab of the CDD. See Configuring Processing Units (All OM Types).
It is not necessary to add scorecards to the declaration of a rule. Because there is only one instance of each scorecard in a deployed TIBCO BusinessEvents agent, any change causes all rules that use the scorecard in their conditions to be evaluated.
The Instance.isModified() function works differently with scorecards than with concepts. There is only one instance of a scorecard per agent, rather than one per RTC. So after a scorecard is modified it will return true until the agent is restarted.
(In the case of a concept instance, Instance.isModified() returns true after the instance has been modified only for the rest of the RTC in which it is modified.)
See Also
Chapter 41, Diagrams for information on using scorecard dependency diagrams.
Adding a Scorecard
Configuring a scorecard is similar to configuring a concept, except that scorecards do not have relationships.
1.
2.
3.
Click Finish. You see the Scorecard Editor.
4.
5.
Using a Scorecard in Rules
After configuring a scorecard resource, use rules to gather the information you need in the scorecard. To access the scorecard in a rule, use this syntax:
folder.folder.scorecard.property
For Example:
int i = SalesFolder.StatsScorecard.numOrdersProperty;
Scorecard Resource Reference
Scorecard configuration is the same as concept configuration, except that scorecards have no relationships with each other. Scorecards, therefore, have none of the properties used for setting up relationships. Scorecard properties can be of any primitive type.
See Concept Resource Reference for details about scorecard properties

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved