Class WorkflowInputBuilder
- Namespace
- Bonsai.Expressions
- Assembly
- Bonsai.Core.dll
Represents an expression builder that generates an observable sequence to be used as input to an encapsulated workflow.
The WorkflowInput
operator is used inside nested workflows to route input arguments from the outside. The type of the input sequence and its behavior is dependent on the exact operator in which they are nested. Each WorkflowInput
is uniquely numbered starting from Source1
.
Warning
The numbering of the WorkfklowInput
nodes usually reflects the order of arguments in the outer operator, but this is not always required. In fact, how many input arguments are available in the nested workflow is entirely dependent on the nesting operator.
[WorkflowElementCategory(ElementCategory.Source)]
public class WorkflowInputBuilder : ZeroArgumentExpressionBuilder, IExpressionBuilder, INamedElement
- Inheritance
-
WorkflowInputBuilder
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
Index
Gets or sets the zero-based index of the input parameter.
[Browsable(false)]
public int Index { get; set; }
Property Value
Name
Gets or sets the name of the input parameter. Arbitrary named arguments are not supported, so all names must start with the ArgumentNamePrefix followed by the one-based argument index.
[Browsable(false)]
public string Name { get; set; }
Property Value
Methods
Build(IEnumerable<Expression>)
Returns the source input expression specified in Bonsai.Expressions.WorkflowInputBuilder.Source.
public override Expression Build(IEnumerable<Expression> arguments)
Parameters
arguments
IEnumerable<Expression>
Returns
- Expression
- A collection of Expression nodes that represents the input arguments. An Expression that will be used as the source of an encapsulated workflow.