Public Access
Fix workflow rule validation logging
PR and Push Build/Test / build-and-test (push) Failing after 9m19s
PR and Push Build/Test / build-and-test (push) Failing after 9m19s
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
namespace MeetingAssistant.Workflow;
|
||||
|
||||
internal static class MeetingWorkflowRuleSchema
|
||||
{
|
||||
public const string StepAddAttendee = "add_attendee";
|
||||
public const string StepRemoveAttendee = "remove_attendee";
|
||||
public const string StepAddProject = "add_project";
|
||||
public const string StepSetProperty = "set_property";
|
||||
public const string StepAddContext = "add_context";
|
||||
|
||||
public const string PropertyTitle = "title";
|
||||
public const string PropertyMeetingTitle = "meeting.title";
|
||||
public const string PropertyTranscriptLine = "transcript.line";
|
||||
public const string ParameterTranscriptSpeaker = "transcript.speaker";
|
||||
|
||||
public static readonly string[] SupportedTriggerKeys =
|
||||
[
|
||||
"created",
|
||||
"state_transition",
|
||||
"speaker_identified",
|
||||
"transcript_line"
|
||||
];
|
||||
|
||||
public static readonly string[] SupportedConditionKeys =
|
||||
[
|
||||
"condition",
|
||||
"and",
|
||||
"or",
|
||||
"not"
|
||||
];
|
||||
|
||||
public static readonly string[] SupportedStepUses =
|
||||
[
|
||||
StepAddAttendee,
|
||||
StepRemoveAttendee,
|
||||
StepAddProject,
|
||||
StepSetProperty,
|
||||
StepAddContext
|
||||
];
|
||||
|
||||
public static readonly string[] SupportedSetPropertyNames =
|
||||
[
|
||||
PropertyTitle,
|
||||
PropertyMeetingTitle,
|
||||
PropertyTranscriptLine
|
||||
];
|
||||
|
||||
public static bool IsStep(string? value, string step)
|
||||
{
|
||||
return string.Equals(value?.Trim(), step, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
public static bool IsProperty(string? value, string property)
|
||||
{
|
||||
return string.Equals(value?.Trim(), property, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user