Click or drag to resize
AutomationTemplateManager.UpsertConfigurationFromWorkflow Method
Creates configuration (steps, transitions and triggers) from given workflow and inserts it to given template.

Namespace: CMS.Automation
Assembly: CMS.Automation (in CMS.Automation.dll) Version: 13.0.131
Syntax
C#
public static void UpsertConfigurationFromWorkflow(
	AutomationTemplateInfo template,
	WorkflowInfo workflow
)

Parameters

template
Type: CMS.Automation.AutomationTemplateInfo
Automation template where configuration is inserted.
workflow
Type: CMS.WorkflowEngine.WorkflowInfo
Workflow from which data are loaded.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when template or workflow is null.
ArgumentExceptionThrown when given workflow is not automation process.
InvalidOperationExceptionThrown when creating of AutomationTemplateInfo failed.
See Also