Path: redb-route/redb.Route/Definitions/ProcessorDefinition.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Definitions/ProcessorDefinition.cs
----
using redb.Route.Abstractions;
namespace redb.Route.Definitions;
///
/// Base class for all processor definitions in the canonical Camel ProcessorDefinition model.
/// Every EIP node derives from this and overrides to produce
/// its runtime .
///
public abstract class ProcessorDefinition : IProcessorDefinition
{
///
/// Optional step id assigned via the Id("...") DSL verb (Apache Camel id()). Used by
/// AdviceWith weaving (WeaveById), diagnostics and the XML form; null when unnamed.
/// When set, it becomes the node id in message history instead of the generated label+counter one.
///
public string? StepId { get; internal set; }
///
/// Optional human-readable step label assigned via the Description("...") DSL verb (Apache
/// Camel description()) or the XML description attribute. When set, it replaces the
/// type-derived label in message history; the node id is unaffected. null when unset.
///
public string? StepDescription { get; internal set; }
///
public IList Outputs { get; } = new List();
///
public IProcessorDefinition? Parent { get; set; }
///
public abstract IProcessor CreateProcessor(IRouteContext context);
///
/// Appends to and sets its
/// to this node.
///
protected void AddOutput(IProcessorDefinition output)
{
output.Parent = this;
Outputs.Add(output);
}
}