terça-feira, 20 de outubro de 2015

Sterling File Gateway Routing Channel Template Part 3 - Creating an FTP Partner Consumer

Creating an FTP Partner Consumer

To set up an FTP Consumer Partner I followed the following steps. This entity user will be able only to receive files


  1. From partners page in File Gateway select Create.



  1. Fill the partner info pages



  1. Set the partner as Consumer of Data and with Partner will listen for a connection to consume data enabled. The partner as also been set as producer.




  1. Set that yes Will test_partner7 use either SSH/SFTP or SSH/SCP protocol to initiate connections? And leave no in Authorized key option.



  1. Set up the connection to the FTP Server.


  1. Leave default values for PGP.

  1. Final validation screen.


Create Routing Channel Template


The created channel was the simplest possible as described.
  1. Navigate to templates


  1. Select Static. With this option routes will have a specific producer/consumer link when instantiating a route.



  1. Select the Special Characters to be removed.


  1. Specify the groups that are involved in the RTC this cannot be edit once a routing channel has been establish using this template. Make sure the groups in the set can be expanded to had more users to the template in the future.
  1. Provisinal Facts can be used to dynamicly creating mailbox at the time the rountig channel is being established, they can also be vars to match patterns within the filename.


  1. Set up the Producer. Three elements are taken into account here.
    1. Mailbox Path: if it is set to ${ProducerName} it means it is connected to the root mailbox of the partner the path that external users will see when logging to myFilegateway is “/”, the same happens if an FTP Client is used, a folder structure will appear with the “/” being the root and this where to place files in order to being routed through the channel using this template. If using Provisional Facts the mailbox path can be set as “/${ProducerName}/Outbound/{MyDeliveryFact}” where MyDeliveryFact is defined at when the route is set, this is usefull when the Producer Partner wants to deliver a file specifically to a consumer (or a group of consumers) and that can be explicit on the mailbox for outboundso the producer can destinguish wich are the consumers who the file is being deliverd to.
    2. Producer File Type: this will enable File Gateway to handle different file types in a different manner, choose unknow if you don’t know the type of file to be routed.
    3. File Name Pattern: regular expression that filters filenames that do not match it, it can be used in conjuction with Provisional Facts to establish dynamic filtering per channel. The Provisional Facts are matched using (). An example would be to set file pattern to .+.(.) and create a fact like MyExtension the result will be a filter as .+.(MyExtension). Remember that the fact value will be provided at the time of routing instatiation, and the facts have to be insterted in the box File name pattern group fact names, comma delimited






  1. For the consumer a new set of values has to be defined. The checkboxes can be left checked to force the system to create mailboxes, alternativly they can be created manually in the B2B Admin Dashboard.
    1. Mailbox Path: same effect as in producer Mailbox Path
    2. File Name Format: string content of the file to name being delivered. It can be set recurring to coombinations of facts and strng prefixes or suffixes, if the file is to keep the same name as in producer the System Fact ${ProducerName} can be used for the effect.
    3. Consumer File Type: same effect as in producer Producer File Type.
    4.  



  1. After setting up all the fields and save the result is shown.



Create the Routing Channel

The routing channels are implementations of the RTC each must contain at least a producer (dynamic channels don’t require consumers as they are determinate at the time the actual routing occurs).

  1. Navigate to the Channels panel.

  1. To create a new channel use the Create button.


  1. If there are no provisional facts the users will get to be selected from a drop down menu the system populates this options with the users that belong to the groups inserted in producer and consumer previously on the RTC creation.



  1. The channel will be ready for use.

  1. Testing FTP to be consumer
    1. Log out from File Gateway and Login to myFileGateway with test_partner6 (the producer producer). From there navigate to upload as follows. Do send.


    1. Check it’s routing


    1. Check the FTP as receive it with an FTP Client.

If the route is set in the opposite direction setting the test_partner7 as producer.

Sem comentários:

Enviar um comentário