@@ -80,7 +80,7 @@ else
string? ns;
string? name;
- bool loading;
+ bool loading = true;
bool saving;
private ProblemDetails? problemDetails = null;
diff --git a/src/dashboard/Synapse.Dashboard/Pages/Workflows/Details/Store.cs b/src/dashboard/Synapse.Dashboard/Pages/Workflows/Details/Store.cs
index 33f012ef..b0b1c372 100644
--- a/src/dashboard/Synapse.Dashboard/Pages/Workflows/Details/Store.cs
+++ b/src/dashboard/Synapse.Dashboard/Pages/Workflows/Details/Store.cs
@@ -47,6 +47,7 @@ ToastService toastService
private TextModel? _textModel = null;
private bool _disposed;
+ private bool _hasTextEditorInitialized = false;
///
/// Gets the service used for JS interop
@@ -275,15 +276,26 @@ public async Task GetWorkflowAsync(string ns, string name)
/// A awaitable task
public async Task ToggleTextBasedEditorLanguageAsync(string _)
{
- await this.OnTextBasedEditorInitAsync();
+ await this.InitializeTextBasedEditorAsync();
}
///
/// Handles initialization of the text editor
///
- /// A awaitable task
+ ///
public async Task OnTextBasedEditorInitAsync()
{
+ this._hasTextEditorInitialized = true;
+ await this.InitializeTextBasedEditorAsync();
+ }
+
+ ///
+ /// Initializes the text editor
+ ///
+ ///
+ public async Task InitializeTextBasedEditorAsync()
+ {
+ if (this.TextEditor == null || !this._hasTextEditorInitialized) return;
await this.SetTextBasedEditorLanguageAsync();
await this.SetTextEditorValueAsync();
}
@@ -297,7 +309,7 @@ public async Task SetTextBasedEditorLanguageAsync()
try
{
var language = this.MonacoEditorHelper.PreferredLanguage;
- if (this.TextEditor != null)
+ if (this.TextEditor != null && this._hasTextEditorInitialized)
{
if (this._textModel != null)
{
@@ -325,7 +337,7 @@ public async Task SetTextBasedEditorLanguageAsync()
/// A awaitable task
public async Task OnCopyToClipboard()
{
- if (this.TextEditor == null) return;
+ if (this.TextEditor == null || !this._hasTextEditorInitialized) return;
var text = await this.TextEditor.GetValue();
if (string.IsNullOrWhiteSpace(text)) return;
try
@@ -510,7 +522,7 @@ public async Task DeleteWorkflowInstanceAsync(WorkflowInstance workflowInstance)
public async Task SelectNodeInEditor(GraphEventArgs e)
{
if (e.GraphElement == null) return;
- if (this.TextEditor == null) return;
+ if (this.TextEditor == null || !this._hasTextEditorInitialized) return;
var source = await this.TextEditor.GetValue();
var pointer = e.GraphElement.Id;
var language = this.MonacoEditorHelper.PreferredLanguage;
@@ -564,7 +576,7 @@ public override async Task InitializeAsync()
///
protected async Task OnPreferredThemeChangedAsync(string newTheme)
{
- if (this.TextEditor != null)
+ if (this.TextEditor != null && this._hasTextEditorInitialized)
{
await this.TextEditor.UpdateOptions(new EditorUpdateOptions() { Theme = newTheme });
}
diff --git a/src/dashboard/Synapse.Dashboard/Services/SpecificationSchemaManager.cs b/src/dashboard/Synapse.Dashboard/Services/SpecificationSchemaManager.cs
index f14267c8..9160b54c 100644
--- a/src/dashboard/Synapse.Dashboard/Services/SpecificationSchemaManager.cs
+++ b/src/dashboard/Synapse.Dashboard/Services/SpecificationSchemaManager.cs
@@ -50,14 +50,14 @@ public async Task GetLatestVersion()
}
///
- /// Gets the specification's JSON schema for the specificed version
+ /// Gets the specification's JSON schema for the specified version
///
/// The version to get the schema for
/// A awaitable task
public async Task GetSchema(string version)
{
if (_knownSchemas.TryGetValue(version, out string? value)) return value;
- var address = $"https://raw.githubusercontent.com/serverlessworkflow/serverlessworkflow.github.io/main/static/schemas/{version}/workflow.yaml";
+ var address = $"https://raw.githubusercontent.com/serverlessworkflow/serverlessworkflow.github.io/main/public/schemas/{version}/workflow.yaml";
var yamlSchema = await this.HttpClient.GetStringAsync(address);
this._knownSchemas.Add(version, this.YamlSerializer.ConvertToJson(yamlSchema));
return this._knownSchemas[version];
diff --git a/src/operator/Synapse.Operator/Synapse.Operator.csproj b/src/operator/Synapse.Operator/Synapse.Operator.csproj
index e11fe155..93d7712e 100644
--- a/src/operator/Synapse.Operator/Synapse.Operator.csproj
+++ b/src/operator/Synapse.Operator/Synapse.Operator.csproj
@@ -8,7 +8,7 @@
en
True
1.0.0
- alpha5.8
+ alpha5.11
$(VersionPrefix)
$(VersionPrefix)
The Synapse Authors
diff --git a/src/runner/Synapse.Runner/Services/TaskExecutor.cs b/src/runner/Synapse.Runner/Services/TaskExecutor.cs
index 78c7687c..e655edc6 100644
--- a/src/runner/Synapse.Runner/Services/TaskExecutor.cs
+++ b/src/runner/Synapse.Runner/Services/TaskExecutor.cs
@@ -379,20 +379,6 @@ public virtual async Task SkipAsync(object? result, string? then = FlowDirective
this.Stopwatch.Stop();
if (string.IsNullOrWhiteSpace(then)) then = FlowDirective.Continue;
var output = result;
- var arguments = this.GetExpressionEvaluationArguments() ?? new Dictionary();
- arguments[RuntimeExpressions.Arguments.Output] = output!;
- if (this.Task.Definition.Output?.As is string fromExpression) output = await this.Task.Workflow.Expressions.EvaluateAsync