AstToWorkflowConverter.CompileWorkflows Method

Definition

Overloads

CompileWorkflows(ScriptBlockAst, PSModuleInfo)

Converts a PowerShell AST into a script block that represents the workflow to run.

CompileWorkflows(ScriptBlockAst, PSModuleInfo, String)

Converts a PowerShell AST into a script block that represents the workflow to run.

CompileWorkflows(ScriptBlockAst, PSModuleInfo, InitialSessionState, ParseException)

Converts a PowerShell AST into a script block that represents the workflow to run.

CompileWorkflows(ScriptBlockAst, PSModuleInfo, InitialSessionState, ParseException, String)

Converts a PowerShell AST into a script block that represents the workflow to run.

CompileWorkflows(ScriptBlockAst, PSModuleInfo, InitialSessionState, Nullable<PSLanguageMode>, ParseException)

Converts a PowerShell AST into a script block that represents the workflow to run.

CompileWorkflows(ScriptBlockAst, PSModuleInfo)

Converts a PowerShell AST into a script block that represents the workflow to run.

public:
 virtual System::Collections::Generic::List<System::Management::Automation::WorkflowInfo ^> ^ CompileWorkflows(System::Management::Automation::Language::ScriptBlockAst ^ ast, System::Management::Automation::PSModuleInfo ^ definingModule);
public System.Collections.Generic.List<System.Management.Automation.WorkflowInfo> CompileWorkflows (System.Management.Automation.Language.ScriptBlockAst ast, System.Management.Automation.PSModuleInfo definingModule);
abstract member CompileWorkflows : System.Management.Automation.Language.ScriptBlockAst * System.Management.Automation.PSModuleInfo -> System.Collections.Generic.List<System.Management.Automation.WorkflowInfo>
override this.CompileWorkflows : System.Management.Automation.Language.ScriptBlockAst * System.Management.Automation.PSModuleInfo -> System.Collections.Generic.List<System.Management.Automation.WorkflowInfo>
Public Function CompileWorkflows (ast As ScriptBlockAst, definingModule As PSModuleInfo) As List(Of WorkflowInfo)

Parameters

ast
ScriptBlockAst

The PowerShell AST correpsponding to the job's definition.

definingModule
PSModuleInfo

The module that is defining this command (if any)

Returns

A PowerShell script block that invokes an underlying job, based on the definition provided by this script block.

Implements

Applies to

CompileWorkflows(ScriptBlockAst, PSModuleInfo, String)

Converts a PowerShell AST into a script block that represents the workflow to run.

public:
 virtual System::Collections::Generic::List<System::Management::Automation::WorkflowInfo ^> ^ CompileWorkflows(System::Management::Automation::Language::ScriptBlockAst ^ ast, System::Management::Automation::PSModuleInfo ^ definingModule, System::String ^ rootWorkflowName);
public System.Collections.Generic.List<System.Management.Automation.WorkflowInfo> CompileWorkflows (System.Management.Automation.Language.ScriptBlockAst ast, System.Management.Automation.PSModuleInfo definingModule, string rootWorkflowName);
abstract member CompileWorkflows : System.Management.Automation.Language.ScriptBlockAst * System.Management.Automation.PSModuleInfo * string -> System.Collections.Generic.List<System.Management.Automation.WorkflowInfo>
override this.CompileWorkflows : System.Management.Automation.Language.ScriptBlockAst * System.Management.Automation.PSModuleInfo * string -> System.Collections.Generic.List<System.Management.Automation.WorkflowInfo>
Public Function CompileWorkflows (ast As ScriptBlockAst, definingModule As PSModuleInfo, rootWorkflowName As String) As List(Of WorkflowInfo)

Parameters

ast
ScriptBlockAst

The PowerShell AST correpsponding to the job's definition.

definingModule
PSModuleInfo

The module that is defining this command (if any)

rootWorkflowName
String

Only root Workflow will be compiled

Returns

A PowerShell script block that invokes an underlying job, based on the definition provided by this script block.

Implements

Applies to

CompileWorkflows(ScriptBlockAst, PSModuleInfo, InitialSessionState, ParseException)

Converts a PowerShell AST into a script block that represents the workflow to run.

public:
 virtual System::Collections::Generic::List<System::Management::Automation::WorkflowInfo ^> ^ CompileWorkflows(System::Management::Automation::Language::ScriptBlockAst ^ ast, System::Management::Automation::PSModuleInfo ^ definingModule, System::Management::Automation::Runspaces::InitialSessionState ^ initialSessionState, [Runtime::InteropServices::Out] System::Management::Automation::ParseException ^ % parsingErrors);
public System.Collections.Generic.List<System.Management.Automation.WorkflowInfo> CompileWorkflows (System.Management.Automation.Language.ScriptBlockAst ast, System.Management.Automation.PSModuleInfo definingModule, System.Management.Automation.Runspaces.InitialSessionState initialSessionState, out System.Management.Automation.ParseException parsingErrors);
abstract member CompileWorkflows : System.Management.Automation.Language.ScriptBlockAst * System.Management.Automation.PSModuleInfo * System.Management.Automation.Runspaces.InitialSessionState * ParseException -> System.Collections.Generic.List<System.Management.Automation.WorkflowInfo>
override this.CompileWorkflows : System.Management.Automation.Language.ScriptBlockAst * System.Management.Automation.PSModuleInfo * System.Management.Automation.Runspaces.InitialSessionState * ParseException -> System.Collections.Generic.List<System.Management.Automation.WorkflowInfo>
Public Function CompileWorkflows (ast As ScriptBlockAst, definingModule As PSModuleInfo, initialSessionState As InitialSessionState, ByRef parsingErrors As ParseException) As List(Of WorkflowInfo)

Parameters

ast
ScriptBlockAst

The PowerShell AST correpsponding to the job's definition.

definingModule
PSModuleInfo

The module that is defining this command (if any)

initialSessionState
InitialSessionState

The initial session state of a runspace.

parsingErrors
ParseException

parsing errors

Returns

A PowerShell script block that invokes an underlying job, based on the definition provided by this script block.

Implements

Applies to

CompileWorkflows(ScriptBlockAst, PSModuleInfo, InitialSessionState, ParseException, String)

Converts a PowerShell AST into a script block that represents the workflow to run.

public:
 virtual System::Collections::Generic::List<System::Management::Automation::WorkflowInfo ^> ^ CompileWorkflows(System::Management::Automation::Language::ScriptBlockAst ^ ast, System::Management::Automation::PSModuleInfo ^ definingModule, System::Management::Automation::Runspaces::InitialSessionState ^ initialSessionState, [Runtime::InteropServices::Out] System::Management::Automation::ParseException ^ % parsingErrors, System::String ^ rootWorkflowName);
public System.Collections.Generic.List<System.Management.Automation.WorkflowInfo> CompileWorkflows (System.Management.Automation.Language.ScriptBlockAst ast, System.Management.Automation.PSModuleInfo definingModule, System.Management.Automation.Runspaces.InitialSessionState initialSessionState, out System.Management.Automation.ParseException parsingErrors, string rootWorkflowName);
abstract member CompileWorkflows : System.Management.Automation.Language.ScriptBlockAst * System.Management.Automation.PSModuleInfo * System.Management.Automation.Runspaces.InitialSessionState * ParseException * string -> System.Collections.Generic.List<System.Management.Automation.WorkflowInfo>
override this.CompileWorkflows : System.Management.Automation.Language.ScriptBlockAst * System.Management.Automation.PSModuleInfo * System.Management.Automation.Runspaces.InitialSessionState * ParseException * string -> System.Collections.Generic.List<System.Management.Automation.WorkflowInfo>
Public Function CompileWorkflows (ast As ScriptBlockAst, definingModule As PSModuleInfo, initialSessionState As InitialSessionState, ByRef parsingErrors As ParseException, rootWorkflowName As String) As List(Of WorkflowInfo)

Parameters

ast
ScriptBlockAst

The PowerShell AST correpsponding to the job's definition.

definingModule
PSModuleInfo

The module that is defining this command (if any)

initialSessionState
InitialSessionState

The initial session state of a runspace.

parsingErrors
ParseException

parsing errors

rootWorkflowName
String

Optional, once assigned, only root Workflow will be compiled

Returns

A PowerShell script block that invokes an underlying job, based on the definition provided by this script block.

Implements

Applies to

CompileWorkflows(ScriptBlockAst, PSModuleInfo, InitialSessionState, Nullable<PSLanguageMode>, ParseException)

Converts a PowerShell AST into a script block that represents the workflow to run.

public System.Collections.Generic.List<System.Management.Automation.WorkflowInfo> CompileWorkflows (System.Management.Automation.Language.ScriptBlockAst ast, System.Management.Automation.PSModuleInfo definingModule, System.Management.Automation.Runspaces.InitialSessionState initialSessionState, System.Management.Automation.PSLanguageMode? sourceLanguageMode, out System.Management.Automation.ParseException parsingErrors);
abstract member CompileWorkflows : System.Management.Automation.Language.ScriptBlockAst * System.Management.Automation.PSModuleInfo * System.Management.Automation.Runspaces.InitialSessionState * Nullable<System.Management.Automation.PSLanguageMode> * ParseException -> System.Collections.Generic.List<System.Management.Automation.WorkflowInfo>
override this.CompileWorkflows : System.Management.Automation.Language.ScriptBlockAst * System.Management.Automation.PSModuleInfo * System.Management.Automation.Runspaces.InitialSessionState * Nullable<System.Management.Automation.PSLanguageMode> * ParseException -> System.Collections.Generic.List<System.Management.Automation.WorkflowInfo>
Public Function CompileWorkflows (ast As ScriptBlockAst, definingModule As PSModuleInfo, initialSessionState As InitialSessionState, sourceLanguageMode As Nullable(Of PSLanguageMode), ByRef parsingErrors As ParseException) As List(Of WorkflowInfo)

Parameters

ast
ScriptBlockAst

The PowerShell AST correpsponding to the job's definition.

definingModule
PSModuleInfo

The module that is defining this command (if any).

initialSessionState
InitialSessionState

The initial session state of a runspace.

sourceLanguageMode
Nullable<PSLanguageMode>

Language mode of source that is creating the workflow.

parsingErrors
ParseException

Optional, once assigned, only root Workflow will be compiled.

Returns

A PowerShell script block that invokes an underlying job, based on the definition provided by this script block.

Implements

Applies to