How to set up scorecard properties using global variables?

How to set up scorecard properties using global variables?

book

Article ID: KB0090410

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
============
How to set up scorecard properties using global variables?

Environment:
==========
TIBCO BusinessEvents (BE)  3.x,4.x
All Operating Systems

Resolution:
========
You could use System.getGlobalVariableAsDouble() function in a on-startup rule function to load the global variable and set the value to ScoreCard property. The syntax is as follows:

Suppose we have the following global variable:

test.testGV=123

You should load it like the following:

int scNum = System.getGlobalVariableAsInt("test/testGV",100);

Then set the value to a scorecard property as initial value.

Issue/Introduction

How to set up scorecard properties using global variables?