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:
parent
30139dedc6
commit
82c3ceeb08
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue