elsa-core/test/integration/Elsa.IntegrationTests/Scenarios
Sipke Schoorstra fb2f0f0271
Update InputJsonConverter to deserialize complex value types into their original type (#4878)
* Remove unused using directives in test classes

The using directives for System, System.Collections.Generic, System.IO, and others were not necessary in many of the test classes. These unused directives have been removed to enhance code readability and maintainability.

* Update source port retrieval in ConnectionJsonConverter

The source port retrieval code in ConnectionJsonConverter.cs has been updated. It now uses TryGetProperty instead of GetProperty, enabling it to handle cases where the "port" property may not exist. This enhances error handling and resilience in the activities module.

* Refactor InputJsonConverter for proper variable expressions handling

The InputJsonConverter in the Elsa.Workflows.Serialization has been expanded for efficient handling of variable expressions during the JSON conversion process. The refactor ensures appropriate extraction and assignment of values to variables. This adds robustness to the serialization process, maintaining variable types after serialization.

* Add tests for variable expressions serialization

A new `Tests.cs` file has been added under the `Elsa.IntegrationTests/Serialization/VariableExpressions` directory. This file contains tests for ensuring the serialization of variable expressions works correctly. A corresponding `SampleWorkflow` file has also been established, providing the workflows to be used in the tests.

* Refactor workflow builder extension class

The WorkflowDefinitionBuilderExtensions class has been deleted and replaced with WorkflowBuilderExtensions in Elsa.Workflows.Core. This new class retains similar functionality but includes more detailed comments and dynamic member access capabilities in its method definition.
2024-02-05 21:39:49 +01:00
..
ActivityNotificationsMiddleware Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
ActivityOutputs Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
Blocking Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
BlockingAndBreaking Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
CanExecute Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
Composites Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
CompositesAndOutcomes Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
CompositesPassingData Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
DependencyWorkflows Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
ExplicitJoins Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
FlowchartCompletion Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
FlowchartNextActivity Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
ImplicitJoins Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
ImportAndExecute Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
Incidents Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
JavaScriptListsAndArrays Remove unused namespaces in Tests.cs 2024-02-02 21:10:14 +01:00
JsonObjectSerialization Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
JsonObjectToObjectRemainsJsonObject Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
ParentChildCompletion Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
ParentChildInputs Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
ParentChildOutputMapping Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
SetGetVariables Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
SetGetVariablesFromActivities Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
WorkflowCancellation Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
WorkflowOutputMapping Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00
WorkflowResults Update InputJsonConverter to deserialize complex value types into their original type (#4878) 2024-02-05 21:39:49 +01:00