using System; using Elsa.Activities; using Elsa.Contracts; using Elsa.Modules.Activities.Console; namespace Elsa.IntegrationTests.Activities; public class ComplexIfWorkflow : IWorkflow { private readonly Func _condition; public ComplexIfWorkflow(Func condition) { _condition = condition; } public void Build(IWorkflowDefinitionBuilder workflow) { workflow.WithRoot(new Sequence { Activities = { new WriteLine("Start"), new If { Then = new WriteLine(""), Else = new Sequence( new WriteLine("Executing"), new WriteLine("False!") ) }, new WriteLine("End") } }); } }