The secure Batch FTP OTDs contain several dynamic configurable parameters, which include (but are not limited to) the following:
BatchFTPOverSSL:
CM (Connectivity Map) Link configuration ⇒ FTP and SSL Settings ⇒ Remote Directory
CM Link configuration ⇒ FTP and SSL Settings ⇒ Remote Directory Name Is Pattern
CM Link configuration ⇒ FTP and SSL Settings ⇒ Remote File
CM Link configuration ⇒ FTP and SSL Settings ⇒ Remote File Name Is Pattern
CM Link configuration ⇒ FTP and SSL Settings ⇒ Local Directory
CM Link configuration ⇒ FTP and SSL Settings ⇒ Local Directory Name Is Pattern
CM Link configuration ⇒ FTP and SSL Settings ⇒ Local File
CM Link configuration ⇒ FTP and SSL Settings ⇒ Local File Name Is Pattern
CM Link configuration ⇒ FTP and SSL Settings ⇒ Transfer Mode
CM Link configuration ⇒ FTP and SSL Settings ⇒ Append
CM Link configuration ⇒ FTP and SSL Settings ⇒ Local File Overwrite
BatchSCP:
CM Link configuration ⇒ SCP Settings ⇒ Remote Directory
CM Link configuration ⇒ SCP Settings ⇒ Remote File
CM Link configuration ⇒ SCP Settings ⇒ Local Directory
CM Link configuration ⇒ SCP Settings ⇒ Local File
CM Link configuration ⇒ SCP Settings ⇒ Transfer Mode
CM Link configuration ⇒ SCP Settings ⇒ Copy Recursive
BatchSFTP:
CM Link configuration ⇒ SFTP Settings ⇒ Remote Directory
CM Link configuration ⇒ SFTP Settings ⇒ Remote Directory Name Is Pattern
CM Link configuration ⇒ SFTP Settings ⇒ Remote File
CM Link configuration ⇒ SFTP Settings ⇒ Remote File Name Is Pattern
CM Link configuration ⇒ SFTP Settings ⇒ Local Directory
CM Link configuration ⇒ SFTP Settings ⇒ Local Directory Name Is Pattern
CM Link configuration ⇒ SFTP Settings ⇒ Local File
CM Link configuration ⇒ SFTP Settings ⇒ Local File Name Is Pattern
CM Link configuration ⇒ SFTP Settings ⇒ Transfer Mode
The configuration parameters listed below can be configured from the Collaboration Editor by entering the specified integer values in the method parameters. The classes, com.stc.connect.ssl.FTPSSLConstants and com.stc.connect.ssh.SSHConstants, do not allow “incremental completion,” that is, you must enter the value using the fully qualified name to access the constant.
For example, to set the BatchFTPOverSSL Secure Mode to Explicit SSL, from the Collaboration Editor, do the following:
From the Collaboration Editor toolbar, click Source Code Mode. The Collaboration Editor’s Java Source Editor opens.
From the Business Rules tree (Business Rules pane) select the rule that contains the parameter or method that you want to configure. Selecting the rule highlights the corresponding code in the Java Source Editor. Find the code you wish to modify.
From the Java Source Editor, enter the value for the setting you require. For example, to set the BatchFTPOverSSL SecureType method to Explicit SSL, type com.stc.connector.ssl.FTPSSLConstants.FTP_SECURE_TYPE_SSL_EXPLICIT as the parameter value (see example below):
public void receive( com.stc.connector.appconn.file.FileTextMessage input, com.stc.connector.batchadapter.appconn.ftps.FTPOverSSL BatchFTPOverSSL_1 ) throws Throwable { if (!BatchFTPOverSSL_1.getClient().isConnected()) { logger.error( "Collab Start NOT CONNECTED ============ DO CONNECT" ); BatchFTPOverSSL_1.getClient().connect(); BatchFTPOverSSL_1.getConfiguration().setSecureType( com.stc.connector.ssl.FTPSSLConstants.FTP_SECURE_TYPE_SSL_EXPLICIT ); } BatchFTPOverSSL_1.getClient().get(); if (BatchFTPOverSSL_1.getClient().isConnected()) { logger.error( "Collab End IS CONNECTED ============ DO DISCONNECT" ); BatchFTPOverSSL_1.getClient().disconnect(); } } |
Once you have made your changes to the Collaboration, click the Commit Changes icon (from the Java Source Editor toolbar).
The OTD parameters listed below accept the following specified values:
BatchFTPOverSSL:
CM Link configuration > FTP and SSL Settings > SecureType
None: com.stc.connector.ssl.FTPSSLConstants.FTP_SECURE_TYPE_NONE
Implicit SSL:com.stc.connector.ssl.FTPSSLConstants.FTP_SECURE_TYPE_IMPLICIT
Explicit SSL:com.stc.connector.ssl.FTPSSLConstants.FTP_SECURE_TYPE_SSL_EXPLICIT
Environment Link configuration > FTP and SSL Settings > KeyStoreType
JKS:com.stc.connector.ssl.FTPSSLConstants.KEY_STORE_TYPE_JKS (only one valid choice)
Other: (this is a place holder - reserved for future enhancement)
CM Link configuration > FTP and SSL Settings > TransferMode
ASCII:com.stc.connector.ssl.FTPSSLConstants.FTP_TRANS_MODE_ASCII
BINARY:com.stc.connector.ssl.FTPSSLConstants.FTP_TRANS_MODE_BINARY
BatchSFTP: