Task Template for IDL 8.7.1
This topic describes the fields (also called keys) in a task template for use with IDL 8.7.1 or later.
Task Keys
This table describes the keys that provide an overview of the task. Refer to IDLTask for additional details.
Key |
Required |
Description |
---|---|---|
|
Yes, if storing the task definition to disk |
A string with the name of the task. This name is used when calling the IDLTask function to create an instance of the task. The name of the task file must match the value of this key and must be a valid IDL variable name. |
|
Yes |
A string with the name of the class to use; the most common is IDLTaskFromProcedure. |
|
Yes |
A string containing the schema of the task definition. The schema is: |
|
Yes, when used with IDLTaskFromProcedure |
The routine that is called when |
|
No |
A string with the name of the task for display purposes. Spaces and special characters are allowed. |
|
No |
A scalar string or an array of strings that help categorize the task. It can be empty with a value of !NULL. |
|
No |
A string with the semantic revision number of the task. Semantic versioning provides a quick way to extract information about a new task release using a convention of X.Y.Z, where:
The |
|
No |
A scalar string or an array of strings that helps categorize the task. |
|
No |
A LIST of HASHs of key/value pairs, described in the Parameter Keys table below. |
Parameter Keys
This table describes the keys that belong to the parameters
group in a task definition; these are repeated for each parameter. Depending on the parameter type, there can be additional keys. Refer to the IDLParameter*
topics to find out specific information about a given parameter. The mapping of the parameter properties to the task definition is 1:1, if the parameter property name is TEST_EXACT
then the task definition key is test_exact
.
Key |
Required |
Description |
---|---|---|
name |
Yes |
The name of the parameter as it appears to the end user. This key must be a valid IDL variable name. |
type |
Yes |
A scalar string indicating the parameter type to use on creating an instance of the task. Basic scalar data type string values are:
Basic array data types must include the
The |
dimensions |
No for scalar, Yes for array |
A scalar string specifying the required dimensions for a parameter, if type specified is an If the number of elements in any dimension does not matter, then use an asterisk ('*') for that dimension.
|
keyword |
No |
The internal keyword that the parameter should map to when invoking the routine. If it is the same as the name key, then you do not need to create this key. |
display_name |
No |
A string with the name of the parameter for display purposes. Spaces and special characters are allowed. |
description |
No |
A string with a description of the parameter. |
direction |
No |
Specify if the parameter is |
required |
No |
A boolean value that indicates whether the parameter is required or not. The default is |
default |
No |
The default value of the parameter if the end user does not provide a value. |
hidden |
No |
A boolean value that indicates whether the parameter is visible to the user or not. The default is |
additional keys |
No |
Depending on the parameter there may be additional keys available to define. For example for a
|
Revision History
This section summarizes the updates to task templates, compared to the previous release:
- The
tags
task key was introduced in 8.7.1.