book
Article ID: KB0086469
calendar_today
Updated On:
Description
Resolution:
Description:
==========
When Rule Template has two or more Bindings referring to the same Domain Model, clicking the ruletemplate in the WebStudio after typing the Business Rule name results in the error "Exception Occurred: (TypeError): Cannot call method 'indexOf' of null".
Environment:
===========
TIBCO BusinessEvents 5.1.1
Symptoms:
=========
>>>>>>>>>>>>>>>>
Exception Occurred:
(TypeError): Cannot call method 'indexOf' of null
[Unknown.$fillInStackTrace(Unknown Source), Unknown.JavaScriptException_0(Unknown Source), Unknown.caught_0(Unknown Source), Unknown.onResponseReceived_0(Unknown Source), Unknown.$fireOnResponseReceived(Unknown Source), Unknown.onReadyStateChange(Unknown Source), Unknown.anonymous(Unknown Source), Unknown.apply(Unknown Source), Unknown.entry0(Unknown Source), Unknown.anonymous(Unknown Source)]
<<<<<<<<<<<<<<<<
BE log:
>>>>>>>>>>>>>>>>
2013 Jul 19 13:23:57:319 GMT -7 hucheng-T430.na.tibco.com Debug [$default.be.mt$.Worker.5] - [WebStudio.Core.RuleFunctions.Actions.WS_RF_FetchArtifactContentsFromStore] [WS-Inference-class] Contents of artifact loaded from SCS /**
* @description
* @author anpatil-dt
*/
ruletemplate BusinessRules.RT_SetDescDataPriority {
attribute {
priority = 5;
forwardChain = true;
}
views{
BusinessRules.RTV_SetPriorityForDescriptiveDetailData;
}
bindings{
int priority1 (DomainModels.Prioirty);
int priority2 (DomainModels.Prioirty);
int priority3 (DomainModels.Prioirty);
}
…
}
2013 Jul 19 13:23:57:336 GMT -7 hucheng-T430.na.tibco.com Debug [$default.be.mt$.Worker.5] - [WebStudio.Core.RuleFunctions.Utils.RT.View.Ops.Fetch.WS_RF_CreateRuleTemplateViewConceptFromSCS] [WS-Inference-class] Domain FQN /DomainModels/Prioirty for binding id priority1
2013 Jul 19 13:23:57:338 GMT -7 hucheng-T430.na.tibco.com Debug [$default.be.mt$.Worker.5] - [WebStudio.Core.RuleFunctions.Utils.RT.View.Ops.Fetch.WS_RF_CreateRuleTemplateViewConceptFromSCS] [WS-Inference-class] Creating new Domain concept for /DomainModels/Prioirty
2013 Jul 19 13:23:57:358 GMT -7 hucheng-T430.na.tibco.com Debug [$default.be.mt$.Worker.5] - [WebStudio.Core.RuleFunctions.Utils.RT.View.Ops.Fetch.WS_RF_CreateRuleTemplateViewConceptFromSCS] [WS-Inference-class] Domain Data Type for int
2013 Jul 19 13:23:57:365 GMT -7 hucheng-T430.na.tibco.com Debug [$default.be.mt$.Worker.5] - [WebStudio.Core.RuleFunctions.Utils.RT.View.Ops.Fetch.WS_RF_CreateRuleTemplateViewConceptFromSCS] [WS-Inference-class] Domain FQN /DomainModels/Prioirty for binding id priority2
<<<<<<<<<<<<<<<<
If properties refer to different Domain Models, e.g.
bindings{
int priority1 (DomainModels.Prioirty);
int priority2 (DomainModels.Prioirty2);
int priority3 ;
}
This will work.
Cause:
=======
CR BE-19092
Resolution:
==========
The workaround for this until a fix is available is to make copies of the Domain Models and use them so that in one RT the same Domain Model is not repeated.
Issue/Introduction
"Exception Occurred: (TypeError): Cannot call method 'indexOf' of null" .