A next action setting defines an action to take following the completion of a task. The action can be to either send an email message to a specified recipient or list of recipients, or to run another task.
A next action setting can be configured to run after any combination of the following task results:
A next action can also be configured to run after the Task, which will cause the next action to run once after completion of the entire task, or after Each File, which will cause the next action to run after each file is completely processed.
When sending an email following completion of a task, there are four settings to configure:
When starting another task following completion of a task, there are two settings to configure:
If the selected task is already running when MOVEit Central tries to start it via Next Action, MOVEit Central will wait until the running instance of the task is completed before it starts the task.
As of MOVEit Central 3.2, the built-in "[Error..." macros can be used to send the error code and description of any error which happened in the subject or body of a Next Action notification.
For example, a Next Action message body of:
At [yyyy]-[mm]-[dd] [hh]:[tt]:[ss], task '[TaskName]' encountered error #[ErrorCodeFile] - [ErrorDescriptionFile] - while transporting '[OrigName]' (FYI, the current task error is #[ErrorCodeTask] - [ErrorDescriptionTask])
...will be interpreted as:
At 2005-01-07 12:37:26, task 'Test Error Macros' encountered error #2234 - CopyFile returned Access is denied. - while transporting 'readme.txt' (FYI, the current task error is #2234 - CopyFile returned Access is denied.)
If you settle on a preferred combination of messages using error macros, you may want to propagate their use by setting them up as Global Parameters and configure your tasks' Next Actions to work off global parameters rather than a different message for each task.
Please note that Next Actions can by themselves generate failures. For example, if a task successfully transfers 5 files but cannot send the email to notify the operator, then the whole task will be marked failed. To prevent this kind of behavior, be sure to point your mail host to a reliable external server or to the localhost SMTP server when using email-based Next Actions.