elsa-core/test/integration/Elsa.Workflows.IntegrationTests/Scenarios
Sipke Schoorstra 5f11026ee7
Add JS functions for encoding/decoding byte arrays from and to strings (#5902)
* Add handlers and improve JavaScript engine configuration

Added several new handlers for configuring the JavaScript engine with common types, functions, variable accessors, and input/output accessors. Refactored the JintJavaScriptEvaluator for better clarity and modularity by breaking down configuration steps into separate methods. Also replaced `IsInsideCompositeActivity` with `IsContainedWithinCompositeActivity` for better semantic consistency.

* Refactor to use primary constructor syntax for TypeDefinitionProviders

Updated CommonTypeDefinitionProvider, VariableTypeDefinitionProvider, and ActivityOutputFunctionsDefinitionProvider to use primary constructors for dependency injection. This change reduces redundancy and simplifies the code structure for better readability and maintainability.

* Add byte conversion functions to JavaScript engine

Introduced functions for converting bytes to/from strings and Base64. Updated CommonFunctionsDefinitionProvider and ConfigureEngineWithCommonFunctions to incorporate these new functions. This enhances the JavaScript engine's ability to handle byte array manipulations.

* Add tests for JavaScript byte and string conversions.

Introduce integration tests to verify byte array to string, string to byte array, byte array to Base64, and Base64 to byte array conversions using JavaScript functions. Ensure accurate transformation of data within different encoding scenarios.

* Add meaningful summaries to Jint engine configuration handlers

Updated comment summaries in four handler classes to provide clear and concise descriptions of their purpose. This helps improve code readability and understanding for future developers.

* Rename and merge variable and input/output handlers

Merged the variable accessor logic into the input/output handler and renamed the class to reflect its broader functionality. This consolidation ensures the accessors are registered in the right order.

* Add string base64 conversion functions

Introduced `stringToBase64` and `stringFromBase64` functions to handle base64 encoding and decoding of strings. Updated corresponding provider, handler, and added tests to ensure functionality.
2024-08-14 17:43:35 +02:00
..
ActivityNotificationsMiddleware Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
ActivityOutputs Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
Blocking Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
BlockingAndBreaking Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
CanExecute Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
Composites Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
CompositesAndOutcomes Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
CompositesPassingData Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
DependencyWorkflows Fix WorkflowExecutionContext bug (#4919) 2024-02-09 19:37:37 +01:00
DependencyWorkflowsPublishing Fix naming 2024-06-07 13:13:47 +02:00
ExplicitJoins Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
FlowchartCompletion Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
FlowchartNextActivity Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
HttpRequestWithLiquid feat(liquid): delete json filter and add filters already provided by fluid library (#5188) 2024-04-26 15:50:05 +02:00
ImplicitJoins Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
ImportAndExecute Update packages to latest versions (#5567) 2024-06-10 12:01:42 +02:00
Incidents Add Fault Code, Category and Type (#5362) 2024-05-10 15:30:32 +02:00
JavaScriptFunctions Add JS functions for encoding/decoding byte arrays from and to strings (#5902) 2024-08-14 17:43:35 +02:00
JavaScriptListsAndArrays Add ExpandoObjectConverter for JavaScript object conversion 2024-08-13 19:58:18 +02:00
JsonObjectSerialization Test workflows housekeeping (#5092) 2024-03-19 13:51:18 +01:00
JsonObjectToObjectRemainsJsonObject Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
ParentChildCompletion Test workflows housekeeping (#5092) 2024-03-19 13:51:18 +01:00
ParentChildInputs Test workflows housekeeping (#5092) 2024-03-19 13:51:18 +01:00
ParentChildOutputMapping Test workflows housekeeping (#5092) 2024-03-19 13:51:18 +01:00
SetGetVariables Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
SetGetVariablesFromActivities Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
WorkflowCancellation Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
WorkflowOutputMapping Fix WorkflowExecutionContext bug (#4919) 2024-02-09 19:37:37 +01:00
WorkflowResults Fix WorkflowExecutionContext bug (#4919) 2024-02-09 19:37:37 +01:00