B2B Integration 10.5 | Administering and Monitoring B2B Transactions | Managing File Transfers with ActiveTransfer | Managing Events | Parameterizing Scheduled Events to Poll Source URLs and Transfer Files to Destination URLs | Examples of Event Configurations and Actions
 
Examples of Event Configurations and Actions
Let us configure a scheduled event, ParamEvent which finds a set of files that match the filter invoice* in a remote server and copies the files to another remote server after renaming the files. Let us parameterize the source URL and the destination URL in the event actions.
1. Create a new scheduled event, ParamEvent.
2. Set the event criteria Execute actions to Manual.
3. Configure a find action in the event and parameterize the Find URL field as follows:
*Select the Remote File Path option.
*Type in [sourceURL] in the field.
*Specify invoice* in the File Name field.
4. Configure a copy action after the find action and parameterize the Destination URL as follows:
*Select the Remote File Path option.
*Type in [destinationURL] in the field.
*Configure the Rename file to option as {stem}_processed{ext}
5. Execute the service wm.mft.schedule:executeEvent as follows:
*Create an eventParams  entry for each parameterized event setting, type in the name of the setting and specify a value to the parameterized setting.
*scheduleName = ParamEvent
*eventParams[0]\name = [sourceURL]
*eventParams[0]\value = ftp://enterprise.ftp.server/invoices/partner1/
*eventParams[1]\name = [destinationURL]
*eventParams[1]\value = ftp://partner1.ftp.server:21/incoming/invoices/
Let us consider the following files in the source folder, ftp://enterprise.ftp.server/invoices/partner1/:
P1-currentmonth-invoice.xml
P1-currentmonth-invoice.pdf
P1-currentmonth-details.xml
P1-currentmonth-ack.xml
Result: After the successful execution of the event, ParamEvent the /incoming/invoices/ folder on the ftp://partner1.ftp.server server contains the following files:
P1-currentmonth-invoice_processed.xml P1-currentmonth-invoice_processed.pdf

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.