Follow the below steps to To call a batch file for renaming the file with a unique identifier for Adeptia.:
- Login into to the JSCAPE MFT server Web InterfaceServer web interface.
- Go to "the Domains" tab and , select the domain.After selecting the domain click on the "Edit" button at the bottom, and click Edit.
- Select the "Triggers" option from the left panemenu.
- Click on "Add" button and then provide the Trigger Name and Description for the trigger. (See Figure25).
...
Select the Event Type as The Add Trigger window appears.- Provide the name and description of the trigger.
- Select "File Upload" and click on 'Next' button to define the Trigger Condition.(See Figure26)in the Event Type drop-down list.
...
- Move to Trigger Action window and select the Action as "Run Process" and click on OK.(See Figure27)
...
- Provide the Absolute File Path Click Next.
- Skip Trigger Conditions wizard and click Next.
- On the Trigger Action, click Add.
The Add Action window appears. - Select Run Process from the Action drop-down list.
- Click OK.
The Run Process window appears. - Provide the absolute file path and file name in the "Program" field text box for your batch file.
- Define the space separated arguments in the "Arguments" field; you can use pre-defined variables also. Arguments text box. You can also use predefined variables.
Provide the name and path for
creating output and error stream forthe batch execution
. (See Figure28)in the Output Stream and Error Stream text boxes respectively.
...
...
Info Click Add Variable to use predefined variables for getting the path and file name of the uploaded file
...
.
Click Add Function to use predefined functions in JSCAPE. To configure the Run Process Trigger action, click here.- Click OK to close the Run Action window.
- Click OK to create a new trigger.
The new trigger is created successfully.