From f22fadaac182d06dcd660ae2bea521bc2dd50b89 Mon Sep 17 00:00:00 2001 From: Craig Fowler Date: Thu, 4 Mar 2021 19:35:10 +0000 Subject: [PATCH] Resolve #548 - improperly connected activity The activity I removed would never have been executed, because it is not connected from either of the IfElse branches. Since this is Elsa 1.x, I've fixed it using the cheapest/quickest possible solution which is to just remove the misleading part of the sample. --- src/samples/Sample25/DataProcessingWorkflow.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/samples/Sample25/DataProcessingWorkflow.cs b/src/samples/Sample25/DataProcessingWorkflow.cs index 9e5427245..eb2e059d6 100644 --- a/src/samples/Sample25/DataProcessingWorkflow.cs +++ b/src/samples/Sample25/DataProcessingWorkflow.cs @@ -50,8 +50,7 @@ namespace Sample25 ifElse .When(OutcomeNames.True) .Then(x => x.TextExpression = new LiteralExpression("Data exceeds threshold (TRUE)")); - }) - .Then(x => x.TextExpression = new JavaScriptExpression("(`Finished data processing. Result: ${Absolute.Result}`)")); + }); } } -} \ No newline at end of file +}