You can use the Task.Export() method to save the Xml to a file or your can capture the Task.Xml property and save that elsewhere. To regenerate the task, you can use the TaskService.NewTaskFromFile() method to create a TaskDefintion from a file or you can use the TaskService.NewTask method and then assign the Xml the string you extracted from the Xml property. Either way, you will need to then register the new TaskDefinition.
↧