Open topic with navigation

TIBCO BusinessConnect™ Container Edition 1.3.0

# FTP Inbound

For FTP inbound operations, the script that is uploaded is executed instead of running pre-defined get or mget operations. During script execution, files are placed in a temporary directory.

To access this property on TIBCO BusinessConnect Container Edition UI:

1. Expand Partner Management > Business Agreements > protocol link > Transports tab.
2. Select FTP and click Edit settings.
3. Upload the scripts file in the FTP settings dialog box.

Job Variables

A client interface is available for developing the script and the object implementing the interface is available in the job slot variable.

• ftpObj The slot to retrieve the FTP client object.

Example: var ftpClient = job.get("ftpObj");

In addition, you can use the following job variables in scripts:

• getTmpDir The variable for the temporary directory on the local machine to retrieve files from the FTP server.

Example: var getdir = job.get("getTmpDir");

• hostName The variable containing the trading host name from whom the file came.

Example: var hostName = job.get("hostName");

• logObj The slot variable to retrieve the UserLogAccess object that does audit logging.

• tpName The variable containing a trading partner for whom the file is intended to be stored.

Example: var tpName = job.get("tpName");

• ibPGPHandler The variable to be used for inbound PGP un-packaging in an FTP session. Users can use the handler to set the inbound PGP processing policy.

Example: var ibPGPHandler = job.get("ibPGPHandler");

var policy = ... //options: "None", "Must Encrypt", "Must Sign", "Must Sign and Encrypt",

"Pass-through"

ibPGPHandler.setPGPPolicy(policy);

You might also need to set the operation id for the current inbound message:

ibPGPHandler.setOperationID(...);

and then to un-package the received file:

ibPGPHandler.unpackageMessage(filefullname);

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessConnect™ Container Edition

Copyright © 2001-2023. Cloud Software Group, Inc. All Rights Reserved.