29 lines
728 B
C#
29 lines
728 B
C#
using Elsa.Activities;
|
|
using Elsa.Contracts;
|
|
using Elsa.Modules.Activities.Activities.Console;
|
|
|
|
namespace Elsa.IntegrationTests;
|
|
|
|
class NestedSequentialWorkflow : IWorkflow
|
|
{
|
|
public void Build(IWorkflowDefinitionBuilder workflow)
|
|
{
|
|
workflow.WithRoot(new Sequence
|
|
{
|
|
Activities =
|
|
{
|
|
new WriteLine("Start"),
|
|
new Sequence
|
|
{
|
|
Activities =
|
|
{
|
|
new WriteLine("Line 1"),
|
|
new WriteLine("Line 2"),
|
|
new WriteLine("Line 3")
|
|
}
|
|
},
|
|
new WriteLine("End"),
|
|
}
|
|
});
|
|
}
|
|
} |