Refactor workflow services and update project references

Fixed code indentation in WorkflowStateExtractor, adjusted output handling in LocalWorkflowClient, and replaced project references in Elsa.Api and Elsa.Http. Reactivated JavaScript engine configuration in Elsa.Server.Web for enhanced script execution capabilities.
This commit is contained in:
Sipke Schoorstra 2025-08-01 22:44:15 +02:00
parent 30139dedc6
commit 82c3ceeb08
No known key found for this signature in database
GPG key ID: 5C10502B28A4268F
4 changed files with 7 additions and 7 deletions

View file

@ -22,6 +22,7 @@
<ProjectReference Include="..\Elsa.Expressions.Liquid\Elsa.Expressions.Liquid.csproj" />
<ProjectReference Include="..\Elsa.Resilience\Elsa.Resilience.csproj" />
<ProjectReference Include="..\Elsa.SasTokens\Elsa.SasTokens.csproj" />
<ProjectReference Include="..\Elsa.Workflows.Api\Elsa.Workflows.Api.csproj" />
<ProjectReference Include="..\Elsa.Workflows.Runtime\Elsa.Workflows.Runtime.csproj" />
</ItemGroup>

View file

@ -10,7 +10,7 @@
<ItemGroup>
<ProjectReference Include="..\..\common\Elsa.Api.Common\Elsa.Api.Common.csproj" />
<ProjectReference Include="..\Elsa.Expressions.JavaScript\Elsa.Expressions.JavaScript.csproj" />
<ProjectReference Include="..\Elsa.Http\Elsa.Http.csproj" />
<ProjectReference Include="..\Elsa.SasTokens\Elsa.SasTokens.csproj" />
<ProjectReference Include="..\Elsa.Workflows.Management\Elsa.Workflows.Management.csproj" />
<ProjectReference Include="..\Elsa.Workflows.Runtime\Elsa.Workflows.Runtime.csproj" />
</ItemGroup>

View file

@ -120,11 +120,10 @@ public class WorkflowStateExtractor(ILogger<WorkflowStateExtractor> logger) : IW
var contextId = contextState.Id;
if (lookup.TryGetValue(contextId, out var context))
{
context.ExpressionExecutionContext.ParentContext = parentContext.ExpressionExecutionContext;
context.ParentActivityExecutionContext = parentContext;
}
if (lookup.TryGetValue(contextId, out var context))
{
context.ExpressionExecutionContext.ParentContext = parentContext.ExpressionExecutionContext;
context.ParentActivityExecutionContext = parentContext;
}
}

View file

@ -142,7 +142,7 @@ public class LocalWorkflowClient(
Status = workflowState.Status,
SubStatus = workflowState.SubStatus,
Incidents = workflowState.Incidents,
Output = request.IncludeWorkflowOutput ? new Dictionary<string, object>(workflowState.Output) : null
Output = request.IncludeWorkflowOutput ? new Dictionary<string, object>(workflowState.Output) : null,
Bookmarks = workflowState.Bookmarks
};
}