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\Analytics\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 TIBCO Enterprise Runtime for R engines: create, start, stop, delete, check if it is running, get TIBCO Enterprise Runtime for R error message, and so on.
- Engine pool: create the TIBCO Enterprise Runtime for R engines pool that can be shared among multiple RTC threads.
- 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 by creating a TIBCO Enterprise Runtime for R engine pool. Each RTC thread is assigned its own TIBCO Enterprise Runtime for R engine from the pool, see figure RTC and TIBCO Enterprise Runtime for R Engine. For example, for a project configured with Shared Queue (Thread Count is 10) and Concurrent RTC, we can create a pool size of 5. The 5 instances of Terr engines are shared among the threads.
Datatype Mapping
See BusinessEvents and TIBCO Enterprise Runtime for R Mapping Reference for mapping details about different datatypes of BusinessEvents and TIBCO Enterprise Runtime for R.