using Elsa.Activities.Entity; using Elsa.Activities.Console; using Elsa.Builders; using Elsa.Activities.Entity.Models; namespace Elsa.Samples.EntityChanged { public class EntityChangedWorkflow : IWorkflow { public void Build(IWorkflowBuilder workflow) { workflow .EntityChanged(EntityChangedAction.Added) .WriteLine(context => $"Entity '{((EntityChangedDto)context.Input).EntityName}' was '{((EntityChangedDto)context.Input).Action}'"); } } }