2025-05-25 18:38:02 +00:00
|
|
|
using Elsa.Extensions;
|
|
|
|
|
using Elsa.Workflows;
|
|
|
|
|
using Elsa.Workflows.Attributes;
|
|
|
|
|
using Elsa.Workflows.Models;
|
|
|
|
|
using Elsa.Workflows.UIHints;
|
|
|
|
|
using Elsa.Workflows.UIHints.CheckList;
|
|
|
|
|
|
|
|
|
|
namespace Elsa.Server.Web.Activities;
|
|
|
|
|
|
|
|
|
|
public class CheckedActivity : CodeActivity<string[]>
|
|
|
|
|
{
|
2025-05-26 18:06:39 +00:00
|
|
|
[Input(UIHint = InputUIHints.CheckList, UIHandler = typeof(CustomCheckListOptionsProvider))]
|
2025-05-25 18:38:02 +00:00
|
|
|
public Input<string[]> CheckedItems { get; set; }
|
|
|
|
|
|
|
|
|
|
protected override void Execute(ActivityExecutionContext context)
|
|
|
|
|
{
|
|
|
|
|
context.SetResult(CheckedItems.GetOrDefault(context));
|
|
|
|
|
}
|
|
|
|
|
}
|