Click or drag to resize
AutomationTemplateManagerCreateAutomationProcessFromTemplate Method
Creates new instance of WorkflowInfo in database with same steps, transitions and triggers as in given template.

Namespace: CMS.Automation
Assembly: CMS.Automation (in CMS.Automation.dll) Version: 13.0.131
Syntax
C#
public static WorkflowInfo CreateAutomationProcessFromTemplate(
	AutomationTemplateInfo template,
	MacroIdentityOption macroIdentityOption
)

Parameters

template
Type: CMS.AutomationAutomationTemplateInfo
Template from which data are loaded.
macroIdentityOption
Type: CMS.MacroEngineMacroIdentityOption
Identity option used for macro signing.

Return Value

Type: WorkflowInfo
Created instance of WorkflowInfo.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when template is null.
InvalidOperationExceptionThrown when creating of WorkflowInfo or other objects failed.
See Also