2022-04-20 13:36:58 +00:00
|
|
|
using Elsa.Activities;
|
2022-04-20 19:06:39 +00:00
|
|
|
using Elsa.Modules.Activities.Console;
|
2022-04-25 09:43:23 +00:00
|
|
|
using Elsa.Services;
|
2022-04-20 13:36:58 +00:00
|
|
|
|
2022-04-20 13:52:51 +00:00
|
|
|
namespace Elsa.IntegrationTests.Activities;
|
2022-04-20 13:36:58 +00:00
|
|
|
|
|
|
|
|
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"),
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|