Task Factory
dm.tasks.TaskFactory
Module providing the task factory.
TaskFactory
The factory class that allows to create Tasks.
createTask(element, name)
staticmethod
Creates a task.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
element
|
_Element
|
The xml element defining the task. |
required |
name
|
str
|
The name of the task to create. |
required |
Returns:
Type | Description |
---|---|
object
|
The initialized task. |
Raises:
Type | Description |
---|---|
TaskException
|
if the task could not be created. |