Copying a state model, renaming it using Refactor does not fix the original name references therein.

Copying a state model, renaming it using Refactor does not fix the original name references therein.

book

Article ID: KB0090465

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
===========
Copying a state model, renaming it using Refactor does not fix the original name references therein.

Environment:
===========
BusinessEvents 5.1.0
All Operating Systems

Symptoms:
=========
EAR build would fail with following error stack (please note that this error stack is project specific.):

Enterprise Archive File has failed to build.
com.tibco.be.parser.codegen.CompilationFailedException: C:\Users\ADMINI~1\AppData\Local\Temp\1\BE_1372262545831\conceptSrc\be\gen\RYDER\Concepts\CUST_REQ.java:5766: cannot find symbol
symbol  : method $2zTransition_1(java.lang.Object[])
location: class be.gen.RYDER.Concepts.CUST_REQ.CUST_REQ$TrackCustomerRequest
var.$2zTransition_1(objects);
   ^
C:\Users\ADMINI~1\AppData\Local\Temp\1\BE_1372262545831\conceptSrc\be\gen\RYDER\Concepts\CUST_REQ.java:5953: cannot find symbol
symbol  : method $2zTransition_2(java.lang.Object[])
location: class be.gen.RYDER.Concepts.CUST_REQ.CUST_REQ$TrackCustomerRequest
var.$2zTransition_2(objects);
   ^
C:\Users\ADMINI~1\AppData\Local\Temp\1\BE_1372262545831\conceptSrc\be\gen\RYDER\Concepts\CUST_REQ.java:6117: cannot find symbol
symbol  : method $2zTransition_3(java.lang.Object[])
location: class be.gen.RYDER.Concepts.CUST_REQ.CUST_REQ$TrackCustomerRequest
var.$2zTransition_3(objects);

Cause:
======
When copying a state model and then renaming it using refactor, the new State Model still has some references to the old State Model.

Resolution:
======
In Studio, open the new State Model with Text Editor. Find/Replace old State Model references with new State Model.

Issue/Introduction

Copying a state model, renaming it using Refactor does not fix the original name references therein.