using Elsa.Activities.Console;
using Elsa.Builders;
using Elsa.Models;

namespace Elsa.Samples.Persistence.EntityFramework
{
    public class HelloWorld : IWorkflow
    {
        public void Build(IWorkflowBuilder builder)
        {
            builder 
                 // You need to set this option for your workflow to persist
                .WithPersistenceBehavior(WorkflowPersistenceBehavior.WorkflowBurst)
                .WriteLine("Hello World!");
        }
    }
}