How to invoke an external Java class from within a BusinessConnect custom script.

How to invoke an external Java class from within a BusinessConnect custom script.

book

Article ID: KB0085980

calendar_today

Updated On:

Products Versions
TIBCO BusinessConnect -
Not Applicable -

Description

Resolution:
Description:
============

Customers frequently would like to invoke functionality available in other Java classes from the FTP and File ECMAscript functionality in BusinessConnect (BC).  

Environment:
==========
BuinessConnect 5.X.X, BC 6.X.X
 
Resolution:
=========
You can invoke external classes other than Java classes by doing the following:

1). Make sure that the jar file or class file is included in the CUSTOM_EXT_PREPEND_CP or CUSTOM_EXT_APPEND_CP variables in the deployed TRA file. These values can be set from the "Process Configuration" tab for the deployed BC engine in the BusinessConnect application under Application Management in the Administrator.

2). In your script, use the full signature for the Java class with the string "Packages" prepended to the Java class signature name.  For example, if you want to use the java.io.File() class, you would call it using this format:  Packages.java.io.File()

Issue/Introduction

How to invoke an external Java class from within a BusinessConnect custom script.