Add UIHint for FlowJoin activity

The FlowJoin activity's join mode now includes a UIHint, which indicates its input is a dropdown. This improves user interface interaction by allowing the selection of join mode from a dropdown menu rather than manual input.
This commit is contained in:
Sipke Schoorstra 2023-12-31 09:53:10 +01:00
parent cf3cab2fba
commit 8bb36de10f

View file

@ -5,6 +5,7 @@ using Elsa.Workflows.Activities.Flowchart.Extensions;
using Elsa.Workflows.Activities.Flowchart.Models;
using Elsa.Workflows.Attributes;
using Elsa.Workflows.Models;
using Elsa.Workflows.UIHints;
using JetBrains.Annotations;
namespace Elsa.Workflows.Activities.Flowchart.Activities;
@ -26,7 +27,8 @@ public class FlowJoin : Activity, IJoinNode
/// </summary>
[Input(
Description = "The join mode determines whether this activity should continue as soon as one inbound path comes in (Wait Any), or once all inbound paths have executed (Wait All).",
DefaultValue = FlowJoinMode.WaitAny
DefaultValue = FlowJoinMode.WaitAny,
UIHint = InputUIHints.DropDown
)]
public Input<FlowJoinMode> Mode { get; set; } = new(FlowJoinMode.WaitAny);