erminas.SmartAPI.CMS.Project.ContentClasses.Elements.WorkflowAssignments.CreateAndConnectStructuralworkflow C# (CSharp) Method

CreateAndConnectStructuralworkflow() public method

public CreateAndConnectStructuralworkflow ( string workflowName ) : void
workflowName string
return void
        public void CreateAndConnectStructuralworkflow(string workflowName)
        {
            const bool IS_STRUCTURAL_WORKFLOW = true;
            ExecuteCreateAndPreassignWorkflow(workflowName, new[] {_element.Project.LanguageVariants.Current},
                                              IS_STRUCTURAL_WORKFLOW);
        }

Usage Example

 public void CreateAndConnectStructuralworkflow(string workflowName)
 {
     _workflowAssignments.CreateAndConnectStructuralworkflow(workflowName);
 }