Introduction To SFG Custom Customer Delivery Protocol: IBM Sterling File Gateway Advanced Topics March 2020
Introduction To SFG Custom Customer Delivery Protocol: IBM Sterling File Gateway Advanced Topics March 2020
4. Configure AFTExtensionsCustomer.xml
5. Configure AFTExtensionsCustomer.properties
7. Recap
8. Examples
9. Useful Links
What are Custom Customer Delivery Protocols
• Consists of:
• Business Process
• Specify more parameters or less parameters than what is provided by default protocol
• Helps in avoiding the customization of the default SFG BPs to achieve the business need.
• Client needs to support internal and external communication through separate Adapter Groups.
• Business Process name must NOT CONTAIN any underscores in the name ‘_’.
• /ProcessData/FG/ExtractabilityCount: Set to 0
Process Data at Execution
Element Description
The primary document contains the data as it will be delivered to the consumer, so that, if the
producer's document required PGP operations (such as decryption) or the consumer required
Primary Document
PGP processing, the contents of the primary document contains the results of performing those
PGP operations.
PrimaryDocumentId Document ID for the primary document
DestinationMessageName Name of the primary document
TransportBP Name of the business process that will be executed for the protocol
An internal identifier needed if the AFT Route Progress Event Reporting service is called. The
AFTRouteId
value of this element must not be changed by the extensibility business process.
An internal work flow identifier needed if the AFT Route Progress Event Reporting service is
AFTRouteWorkFlowId
called. The value of this element must not be changed by the extensibility business process.
ProducerName Name of the data producer
ConsumerName Name of the data consumer
Parameters added to
Any parameters you supply as part of your custom protocol are available in process data.
AFTExtensionsCustomer.xml
Configure AFTExtensionsCustomer.xml
• OPTION (0..n per file): Static and Dynamic lists to populate dropdowns
• AFTExtension (1..n per file): Root element for each custom protocol option.
• Static Lists – OPTION element has the attribute ‘name’ and child elements ELE for each value in
the dropdown.
• name: Name of option to be referenced in the options attribute of the VARDEF element.
• Class (Dynamic) Listers – OPTION element has the attributes ‘name’ and ‘class’.
• class: Java Classes that retrieve lists of configured objects in IBM B2B Integrator. Listers Include:
• com.sterlingcommerce.woodstock.ui.SSHRemoteProfileLister
• com.sterlingcommerce.woodstock.ui.ContractLister
• com.sterlingcommerce.woodstock.ui.BPLister
• com.sterlingcommerce.woodstock.ui.CACertLister
AFTExtension
• Attributes:
• name: Name of the custom protocol, hyphen separated. Must be unique and cannot change.
Naming convention is: <ClientPrefix>-<Protocol>-protocol
• Example: “coe-sftp-protocol"
• bp: Name of the business process, following all restrictions list in ‘Business Process’ slide.
GROUP
• Attributes:
• title: Property name in AFTExtensionsCustomer.properties to find value
in UI , dot separated. Naming Convention is:
<ClientPrefix>.<Protocol>.<Purpose>.title
• Example:"USB.push.chooseProtocol.title"
• Example:"gpcsftp.instance.group1.title"
VARDEF
• varname: ProcessData element (with path) passed • size: Unsure, only seen set as "30" (only USB)
into the BP.
• maxsize: Unsure, only seen set as "250" (only USB)
• type: Unsure, only seen set as "String“ (only USB)
• label: Name in AFTExtensionsCustomer.properties to
• htmlType="text“ find value in UI, dot separated. Naming Convention is:
ProcessData.
• required: sets variable as mandatory (label will be
• password: passes obscured value from textbox to bold with asterix.)
ProcessData. BP needs revealObscured(Xpath).
• options: value of the name attribute of a Options
• select - UI presents a list whose contents are derived
element.
from an "options" class.
• Attributes:
• title: Property name in AFTExtensionsCustomer.properties to find value in UI , dot
separated. Naming Convention is: <ClientPrefix>.<Protocol>.<Purpose>.title
• Example:"USB.push.chooseProtocol.title"
• Example:"gpcsftp.instance.group1.title”
• AFTExtension/@label
• AFTExtension/GROUP/@title
• AFTExtension/GROUP/VARDEF/@label
• AFTExtension/GROUP/VARDEF/SUBGROUP/@title
• AFTExtension/GROUP/VARDEF/SUBGROUP/VARDEF/@label
Labels and Locations
AFTExtension/@label
AFTExtension/GROUP/@title
OPTION/ELE/@displayname
AFTExtension/GROUP/VARDEF/@label
Comments
AFTExtensionsCustomer.xml
<!--
# Taking care to backup any files that may get displaced, save this
# file into the following two directories, restart SFG with setupfiles and deployer:
#
# <install-dir>/container/Applications/aft/WEB-INF/classes/resources/xml
# <install-dir>/container/Applications/myaft/WEB-INF/classes/resources/xml
-->
AFTExtensionsCustomer.properties
# Taking care to backup any files that may get displaced, save this
# file into the following two directories, restart SFG with setupfiles and deployer:
#
# <install-dir>/container/Applications/aft/WEB-INF/classes/resources/
# <install-dir>/container/Applications/myaft/WEB-INF/classes/resources/
How to Deploy Custom Customer Delivery Protocols
• Create / Check in Business Process for Custom Customer Delivery Protocol.
• Do not use underscore '_' character anywhere in the name.
• <install_dir>/container/Applications/myaft/WEB-INF/classes/resources/xml
• <install_dir>/container/Applications/myaft/WEB-INF/classes/resources
• Run <install_dir>/bin/setupfiles.sh.
• Run <install_dir>/bin/deployer.sh.
• Run <install_dir>/bin/run.sh.
Recap
• https://www.ibm.com/support/knowledgecenter/en/SS4TGX_2.
2.0/com.ibm.help.sfg_sys_admin.doc/SFGAddCustomProtocols
.html
• https://www.ibm.com/support/pages/webcast-replay-how-
create-custom-protocol-ibm-sterling-connectdirect-ibm-sterling-
file-gateway