A managed task is a task that is initially created using the Task Administrator by means of clicking the New button located on the Task Administrator toolbar (shown below) or selecting New from the File menu. A task created in this fashion is automatically accessible from Task Administrator. It can be executed, modified, or deleted through the Task Administrator, and it can include managed task properties such as triggers, logon, priority and security settings. For details regarding managed task properties, see About Managed Task Properties.
All tasks created from the Task Administrator can be managed from the Task Administrator, and thus, become "managed tasks". Such tasks are visible in the Task Administrator window, and all the task management functions of Task Administrator are available for use with that task. This is essentially the manner which most or all tasks are created.
An external task, also known as an unmanaged task, is a task created without the use of the Task Administrator, therefore, management functions of Task Administrator cannot be applied to this type of task. To create external tasks, one must bypass the Task Administrator by directly opening the Task Builder, either by selecting the AutoMate Task Builder option from the Windows Start menu or by running the Task Builder executable (C:\Program Files\AutoMate 7\AM7TB.exe). When started in this manner, the Task Builder comes equipped with File menu options that normally don't appear when editing a managed task, (as shown below).
The available File menu options are:
New: Allows development of a new external task. A new tab will appear right below the Steps pane to provide easy viewing and editing of multiple tasks within one Task Builder instance.
Open: Allows you to open one or more existing task (.AML) file(s) associated to an external task.
Save: Allows you to save an external task. Existing external tasks will be saved to their original location automatically. If saving a new external task, you will be prompted for a location to save the new task.
Save As: Allows you to save an external task to any desired location.
Save All: Allows you to save multiple external tasks that are currently open.
External tasks basically contain a series of steps, however, they do not include other properties such as triggers, logon or security settings. An external task is saved in its own location and does not appear in the Task Administrator window.
When using tasks generally for code reuse, such as running a sub-task (i.e. task module made only to be reused) using the Start Task action, creating an external task is more sensible because sub-tasks normally do not need to be triggered (they are only called from other tasks), thus, there is no need to add them to the Task Administrator. In most cases, only the "parent" task should be added to the Task Administrator. Sub-tasks may be better stored in a designated location on the hard disk or network and called by their filename.
Note: An external task can be changed to a managed task at any time by importing it into the Task Administrator. For further information see Importing Tasks
Task Builder Quick Tour
Adding Task Steps
Working with Sub-tasks