You can run tasks in the background while you continue working in MapInfo Pro. This is useful for long-running object processing, to generate event logs, and for reoccurring tasks.
Creating tasks requires some MapBasic programming to create a shell for the commands you want to process. To ensure there is no conflict on a table running in a background task, use the Set Table statement to set tables as in use: use the InUse clause to specify ReadAccess or WriteAccess on a table. This ensures that anyone working in MapInfo Pro and accessing the table, cannot write to it while the task is running.
Tasks are run in to MapInfo Pro in the Tasks window. To open this window on the HOME tab, in the Windows group, click Tool Windows, and click Tasks from the list. The Tasks window contains a search field, a Sorting by drop-down list, and a list panel that displays running and completed tasks. You can sort the tasks in the list panel in ascending and descending order, by the current status, name, start time, end time, or elapsed time. Right-clicking on a task in the task list opens a context menu with the following options for managing the task or the task list:
- Pause
- Cancel
- Remove
- Remove All Inactive
- Remove All completed
You can manage a task using the following buttons:
Icon | Command | Description |
---|---|---|
Pause |
Click to pause a running task. |
|
Resume |
Click to resume running a task. |
|
Cancel |
Click to cancel running a task. |
|
Remove |
Click to remove a task from the Task window. |
|
View Log |
Click to see the log file for a task. |
Indicators show the status of a task on completion:
Icon | Status | Description |
---|---|---|
Successful |
Task completion was successful. |
|
Warning |
Task completion with a warning notice. |
|
Errors |
Task failure due to errors. |