You can send an AS2 message automatically in response to configured events using the Triggers and the Trading Partner File Upload or Trading Partner Regex File Upload actions. The basic steps that you need to perform are to create a Trigger with "Current Time" as Event Type and select a specific partner to send files. Follow the below steps to automatically send files to trading partners when files are placed in specified folders.
CREATING TRIGGER TO SEND FILES AUTOMATICALLY
- Login into the JSCAPE MFT server Web Interface.
- Go to "Domains" tab and select the domain created in above steps.
- After selecting the domain click on the "Edit" button at the bottom.
- Select the Directory Tab and click on Add button to add a new one. (See Figure34)
Figure34: Directory Monitor Screen
- Provide the name and the UNC path of the network location from where you want to pick the file to transfer. (See Figure35)
Figure35: Directory Monitor Settings
- Now go to the "Triggers" option from the left pane. (See Figure36)
Figure36: Triggers Pane for Domain
- Click on the "Add" button to add a new Trigger.
- Provide the name in the Name field and then select the Event type from the EVENT TYPE drop-down as "Directory Monitor File Added".(See Figure37)
Figure37: Triggers Creation Step1
- Click on Next button and then configure the Trigger Condition if you have a need to run the action associated with the Trigger to execute only after the Trigger condition gets satisfied.
- Proceed next to add a Trigger Action that could to be performed on the occurrence of the event. Click on the "Add" button at bottom and select an appropriate action from the Add Action screen. You can select "Trading Partner Regex File Upload" option and click on OK to configure details regarding this action.(See Figure38)
Figure38: Triggers Creation Step3
- Select the Trading Partner to send file from the "Partner" drop-down on the "Add Trading Partner Regex File Upload Action" screen.
- Browse the Local directory from where you want to send the files to the Partner. Also, configure the Regular expression that will be used to filter out files from the list of files to be sent to the Trading partner.(See Figure39)
Figure39: Triggers Action Creation
|
Partner: Select the Trading partner to send file |
- Configure other parameters as per requirement and click on OK button to save and apply changes.(See Figure40)
Figure40: Triggers Action Created
- After this you can see the newly created event in the Triggers Screen for your domain. Select the trigger and click on the "Apply" button at the bottom to save and apply the changes.