TIBCO Enterprise Runtime for R Integration
You can integrate BusinessEvents with TIBCO Enterprise Runtime for R to delegate statistical operations to TIBCO Enterprise Runtime for R engines.
R Scripts
The R script is a text file containing R language commands. The file is stored with extension .r. The R script can be stored either inside a project or outside of a project. You can also refer to the supplied example FraudDetectionTerr at BE_HOME\examples\standard\FraudDetectionTerr for a working example of BusinessEvents and TIBCO Enterprise Runtime for R integration.
Catalog Functions for TIBCO Enterprise Runtime for R
- Lifecycle operations of one or more TERR engines: create, start, stop, delete, check if it is running, get TIBCO Enterprise Runtime for R error message, and so on.
- Data manipulation:
- Loading R scripts into TIBCO Enterprise Runtime for R engines.
- Executing R functions from previously loaded R scripts.
- Generating complex data structures like Datalist or Dataframe and sending them to TIBCO Enterprise Runtime for R engines for processing.
- Receiving complex data structures like Datalist and Dataframe from TIBCO Enterprise Runtime for R and extracting its data.
See
in TIBCO BusinessEvents Functions Reference documentation for more details.Run to Completion (RTC) Cycle
TIBCO Enterprise Runtime for R engine is a single threaded engine. Thus to scale better, use concurrent RTC with multiple TIBCO Enterprise Runtime for R engines. Each RTC thread carries its own TIBCO Enterprise Runtime for R engine, see figure RTC and TIBCO Enterprise Runtime for R Engine. For example, for a project configured with Shared Queue (Thread Count is 3) and Concurrent RTC, each thread name (Engine.threadName function) is mapped to a TIBCO Enterprise Runtime for R engine. Thus, three threads are mapped to three TIBCO Enterprise Runtime for R engines.
Datatype Mapping
See BusinessEvents and TIBCO Enterprise Runtime for R Mapping Reference for mapping details on different datatypes of BusinessEvents and TIBCO Enterprise Runtime for R.
- Configuring BusinessEvents for TIBCO Enterprise Runtime for R
Configure the BusinessEvents engine TRA file to set up the TIBCO Enterprise Runtime for R location. - BusinessEvents and TIBCO Enterprise Runtime for R Mapping Reference
BusinessEvents and TIBCO Enterprise Runtime for R uses different data types, which are mapped to specific types on information exchange.