Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include transient variables in merged variables for JavaScriptEngine …
…Access (#4769) ## Summary This pull request introduces changes to the handling of transient variables in the `WorkflowExecutionContext.cs`. The aim is to include transient variables in the merged variables collection, enhancing their accessibility to the JavaScriptEngine. This change is expected to improve the functionality and flexibility of variable handling within workflows. ## Changes - Modified the `GetMergedVariables()` method in `WorkflowExecutionContext.cs` to start the aggregation with the TransientState and then merge the `WorkflowInstance.Variables` at the end. This ensures that transient variables are included in the merged variables. ## Added - A new test case in `WorkflowExecutionContextTests.cs` to verify that transient variables set in the execution context are retrievable in the merged variable collection after the changes. ## Impact These changes allow for transient variables to be more accessible and functional within the JavaScriptEngine, enhancing the overall workflow execution capabilities. Co-authored-by: JoostVanVelthoven <j.vanvelthoven@effytool.nl>
- Loading branch information