Skip to content

Commit dbcb10f

Browse files
committed
fix(Sdk): Renamed the CorrelationDefinition into CorrelationKeyDefinition
Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
1 parent e997fab commit dbcb10f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ServerlessWorkflow.Sdk/Models/CorrelationDefinition.cs renamed to src/ServerlessWorkflow.Sdk/Models/CorrelationKeyDefinition.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
namespace ServerlessWorkflow.Sdk.Models;
1515

1616
/// <summary>
17-
/// Represents the definition of a event correlation
17+
/// Represents the definition of an event correlation key
1818
/// </summary>
1919
[DataContract]
20-
public record CorrelationDefinition
20+
public record CorrelationKeyDefinition
2121
{
2222

2323
/// <summary>
24-
/// Gets/sets a runtime expression used to extract the correlation value from events.
24+
/// Gets/sets a runtime expression used to extract the correlation key value from events.
2525
/// </summary>
2626
[DataMember(Name = "from", Order = 1), JsonPropertyName("from"), JsonPropertyOrder(1), YamlMember(Alias = "from", Order = 1)]
2727
public required virtual string From { get; set; }
2828

2929
/// <summary>
30-
/// Gets/sets a constant or a runtime expression, if any, used to determine whether or not the extracted correlation value matches expectations and should be correlated. If not set, the first extracted value will be used as the correlation's expectation.
30+
/// Gets/sets a constant or a runtime expression, if any, used to determine whether or not the extracted correlation key value matches expectations and should be correlated. If not set, the first extracted value will be used as the correlation key's expectation.
3131
/// </summary>
3232
[DataMember(Name = "expect", Order = 2), JsonPropertyName("expect"), JsonPropertyOrder(2), YamlMember(Alias = "expect", Order = 2)]
3333
public virtual string? Expect { get; set; }

src/ServerlessWorkflow.Sdk/Models/EventFilterDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public record EventFilterDefinition
3030
/// Gets/sets a name/definition mapping of the correlation to attempt when filtering events.
3131
/// </summary>
3232
[DataMember(Name = "correlate", Order = 2), JsonPropertyName("correlate"), JsonPropertyOrder(2), YamlMember(Alias = "correlate", Order = 2)]
33-
public virtual EquatableDictionary<string, CorrelationDefinition>? Correlate { get; set; }
33+
public virtual EquatableDictionary<string, CorrelationKeyDefinition>? Correlate { get; set; }
3434

3535
}

0 commit comments

Comments
 (0)