Table of Contents

Class WorkflowBuilder

Namespace
Bonsai
Assembly
Bonsai.Core.dll

Represents an XML serializable expression builder workflow container.

public class WorkflowBuilder : IXmlSerializable
Inheritance
WorkflowBuilder
Implements
Inherited Members

Constructors

WorkflowBuilder()

Initializes a new instance of the WorkflowBuilder class.

public WorkflowBuilder()

WorkflowBuilder(ExpressionBuilderGraph)

Initializes a new instance of the WorkflowBuilder class with the specified workflow instance.

public WorkflowBuilder(ExpressionBuilderGraph workflow)

Parameters

workflow ExpressionBuilderGraph

The ExpressionBuilderGraph that will be used by this builder.

Properties

Description

Gets or sets a description for the serializable workflow.

public string Description { get; set; }

Property Value

string

Serializer

Gets a XmlSerializer instance that can be used to serialize or deserialize a WorkflowBuilder.

public static XmlSerializer Serializer { get; }

Property Value

XmlSerializer

Workflow

Gets the ExpressionBuilderGraph instance used by this builder.

public ExpressionBuilderGraph Workflow { get; }

Property Value

ExpressionBuilderGraph

Methods

ReadMetadata(string)

Reads workflow metadata from the serializable XML workflow representation at the specified URI.

public static WorkflowMetadata ReadMetadata(string inputUri)

Parameters

inputUri string

The URI for the file containing the XML data.

Returns

WorkflowMetadata

A WorkflowMetadata instance containing the retrieved metadata.

ReadMetadata(XmlReader)

Reads workflow metadata from the serializable XML workflow representation.

public static WorkflowMetadata ReadMetadata(XmlReader reader)

Parameters

reader XmlReader

The XmlReader stream from which the metadata is retrieved.

Returns

WorkflowMetadata

A WorkflowMetadata instance containing the retrieved metadata.