You cannot access GlobalVariables defined in TIBCO BusinessEvents (BE) in TERR scripts, but it is possible to set a TERR variable in your BE code and use that variable in TERR script.
eg: GlobalVariable: TERR/BE_VARIABLE1
BE Code: String sVariableFromBE = System.getGlobalVariableAsString("TERR/BE_VARIABLE1","teste"); Analytics.Engine.setVariable("TerrEngine","GVvariableInTerr",sVariableFromBE); Analytics.Engine.engineExecute("TerrEngine",rscript,true)