Follow the below steps to call a batch for renaming the file with unique identifier for Adeptia.
- Login into the JSCAPE MFT server Web Interface.
- Go to "Domains" tab and select the domain.
- After selecting the domain click on the "Edit" button at the bottom.
- Select the "Triggers" option from the left pane.
- Click on "Add" button and then provide the Trigger Name and Description for the trigger. (See Figure25)
Figure25: Add Trigger Screen
- Select the Event Type as "File Upload" and click on 'Next' button to define the Trigger Condition.(See Figure26)
Figure26: Add Trigger Screen
- Move to Trigger Action window and select the Action as "Run Process" and click on OK.(See Figure27)
Figure27: Run Process Trigger Action
- Provide the Absolute File Path and file name in the "Program" field for your batch file. Define the space separated arguments in the "Arguments" field; you can use pre-defined variables also. Provide the name and path for creating output and error stream for the batch execution. (See Figure28)
Figure28: Run Process Trigger Credentials
|
You can make use of the pre-defined variables for getting the path and file name of the uploaded file to be renamed by clicking on the "Add Variable" button. |