Configure Script Services

The Script services are created to process files with a script which needs to be executed on the files.

Follow the steps below to configure a Script service:

Add a new Script service

  1. Launch the MassTransit Administrator.
  2. Open the Setup window by clicking on the Setup button from the Navigation Bar or by selecting the Setup... option from the Window main menu.
  3. Open the Services tab of the Setup window.
  4. Click on the Add... button in order to add a new service.
  5. The New Service window appears.

  6. Select the Script option from the Service drop-down menu.

  7. The Configure Script Service window appears next. Click on the Browse button and select a .vbs file or a .js file for a VBScript (Visual Basic Script) or a JavaScript respectively.

  8. After selecting the desired script file, click Open and its name will be displayed in the Script to Execute area of the Configure Script Service window.
  9. By default, the service name will be the name of the script file. If you want to, you can set a custom name for the service. To do that, check the Use Custom Name check box and enter a custom name in the field next to it.
  10. When you configure the service settings, click on the OK button in the Configure Script Service window. The newly configured service should appear in the Services tab.
  11. Click on the OK button in the Setup window to save the changes. If you click Cancel, the service will not be saved.

Edit a Script service

To edit a configured service in the Services tab:

  1. Highlight the desired service in the list with services.
  2. Click on the Configure... button – the Configure Script Service window should appear.
  3. Click on the Browse button and select a .vbs file or a .js file for a VBScript (Visual Basic Script) or a JavaScript respectively.

  4. After selecting the desired script file, click Open and its name will be displayed in the Script to Execute area of the Configure Script Service window.
  5. By default, the service name will be the name of the script file. If you want to, you can set a custom name for the service. To do that, check the Use Custom Name check box and enter a custom name in the field next to it.
  6. When you configure the service settings, click on the OK button in the Configure Script Service window. The newly configured service should appear in the Services tab.
  7. Click on the OK button in the Setup window to save the changes. If you click Cancel, the service will not be saved.

Enabling and disabling a service

In the first column of the Services list, there is an indicator showing whether the service is enabled or not.

Delete a service

To delete a service:

  1. Highlight it from the list with services.
  2. Click on the Delete... button.
  3. In the dialog box for deletion confirmation, click Delete if you are sure you want to delete the service. Then, the service will disappear from the list with services.
  4. To save the changes, click on the OK button in the Setup window. If you click Cancel, the changes will not be saved.