book
Article ID: KB0088788
calendar_today
Updated On:
Description
Resolution:
Description:
===========
Retrieving property values from Concept when history is set for a value greater than 0 (zero).
Environment:
==========
All Operating Systems
TIBCO BusinessEvents 4.x,5.x
Resolution:
=========
There are two concepts. Concept Account has concept Case as contained concept . Concept case has history value set to greater than 0.
Example Code :
System.debugOut("#### START ######:");
Concepts.Case one = Concepts.Case.Case("1","ONE");
Concepts.Case two = Concepts.Case.Case("2","TWO");
Concepts.Case three = Concepts.Case.Case("3","THREE");
Concepts.Account ac = Concepts.Account.Account(
"Bob" /*extId String */,
2000 /*Balance double */,
0.0 /*Debits double */,
"Normal" /*Status String */,
4000 /*AvgMonthlyBalance double */,
null);
ac.Case[0] = one;
ac.Case[1] = two;
Instance.PropertyArray.appendContainedConcept(ac.Case ,three , DateTime.getTimeInMillis(DateTime.now()));
boolean check1 = Instance.PropertyAtom.setPropertyValue(three.name , "FOUR");
Concepts.Case x = Instance.PropertyAtom.getContainedConceptHistoryValue(ac.Case[2] , 0);
System.debugOut(x.name);
String s1 = Instance.PropertyAtom.getStringHistoryValue(ac.Case[2].name,1);
System.debugOut(s1);
boolean check2 = Instance.PropertyAtom.setPropertyValue(three.name , "FIVE");
x = Instance.PropertyAtom.getContainedConceptHistoryValue(ac.Case[2] , 0);
System.debugOut(x.name);
x = Instance.PropertyAtom.getContainedConceptHistoryValue(ac.Case[1] , 0);
System.debugOut(x.name);
String s2 = Instance.PropertyAtom.getStringHistoryValue(ac.Case[2].name,2);
System.debugOut(s2);
System.debugOut("#### END ######:");
Issue/Introduction
Retrieving property values from Concept when history is set for a value greater than 0 (zero).