Previous Topic

Next Topic

Book Contents

Book Index

Add a Task Process

In a task, a process runs a single built-in script or custom script. The script must exist before you can add it to a process. For more information, see Scripts. A task can have more than one process.

To access this dialog box:

  1. Select TASKS. Create a new Traditional or Advanced task, or select an existing one. You can filter the list.
  2. On the task properties page, click Step > Process.

    If the task has existing steps:

  3. Make your selections in the Add Process dialog box.

Add Process field

Description

Script

Select a script.

Description

Optional.

Run script

  • Per File: Process runs one time for each file that is downloaded from all sources, before the file is sent to any destination hosts. If there are no sources, the process is run one time. This is the typical setting for most processes.
  • Once After All Downloads: Process runs only one time after all source files have been downloaded, and before any files are uploaded to any destination hosts.

    This setting is useful for tasks such as zipping multiple files into a single archive.

    The process runs even if no files have been downloaded. Such a process can determine whether any files were downloaded by checking to see whether the MICacheFiles() function returns an empty string.

Use process as a destination

Sets the process as a destination so that even If a previous run of the task has already sent files to all destinations, or if a task has no destinations, the task will run. For more information, see Use Process as a Destination.

Edit task parameters

Click and provide parameter values.

If the script has required parameters, the values you set here apply to the task you are configuring.

If a different task uses the same script, you set parameter values for that task when adding a process to that task.

You can also specify a global parameter.