elsa-core/src/modules/Elsa.Workflows.Core/Extensions
Sipke Schoorstra ae66015e15
Add HTTP file download activity and supporting classes (#5608)
* Add HTTP file download activity and supporting classes

This commit adds a new activity, DownloadHttpFile, which provides the capability to download a file from a specified URL. It introduces supporting classes like HttpFile, FileHttpContentParser, and several extensions methods related to handling HTTP headers and file content. It also contains necessary updates in existing classes to accommodate the new file-download feature.

* Add response stream to context in DownloadHttpFile

In DownloadHttpFile.cs, context data now includes response content's file stream. Changes to DefaultDownloadableManager.cs simplify the return statement when no provider is found, directly returning an empty array.

* Add byte array converter and enhance HTTP file download

A new ByteArrayConverter class has been added to Elsa.JavaScript that converts byte arrays to Uint8Arrays. In Elsa.Http, the DownloadHttpFile activity now also stores the downloaded file's content in bytes. In addition, various new type aliases have been added to the Elsa.Http and Elsa.JavaScript modules, making it easier to handle non-string responses and the transfer of data.

* Update Elsa.Studio package versions

The package versions for Elsa.Studio, Elsa.Studio.Core.BlazorWasm, and Elsa.Studio.Login.BlazorWasm have been updated from 3.2.0-preview.346 to 3.2.0

* Update Jint version and adjust configuration

Updated the Jint package version to 4.0.0-preview-644. Also, added the Jint Preview package source in the NuGet configuration. Furthermore, made a change to use ArrayBuffer instead of Uint8Array in ByteArrayConverter.cs to align with the updated Jint version.
2024-06-15 20:31:58 +02:00
..
ActivityDescriptorExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
ActivityExecutionContextExtensions.cs Fix naming issues 2024-06-07 14:01:14 +02:00
ActivityExtensions.cs Minor improvements and bug fixes following the 3.1 release (#5168) 2024-04-02 07:41:46 +02:00
ActivityNodeExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
ActivityPropertyExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
ActivityRegistryExtensions.cs Fix naming issues 2024-06-07 14:01:14 +02:00
BackgroundActivityExecutionContextExtensions.cs Implement enhanced activity tracking in Elsa workflow runtime 2024-01-26 21:09:47 +01:00
BehaviorCollectionExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
BookmarkExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
BreakBehaviorActivityExecutionContextExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
DictionaryExtensions.cs Enhance BulkDispatchWorkflows Activity with Support for Multiple Input Keys and Customizable Input Key (#5182) 2024-04-04 16:07:32 +02:00
ExpressionEvaluatorExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
ExpressionExecutionContextExtensions.cs Fix workflow variable scope inconsistency (#5558) 2024-06-10 10:51:23 +02:00
InputExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
ItemSourceActivityExecutionContextExtensions.cs Add BatchProcessing sample and update ForEach activities 2024-01-17 22:11:03 +01:00
JsonElementExtensions.cs Normalize extensions namespaces (#3577) 2022-12-31 16:16:43 +01:00
MemoryBlockReferenceExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
ModuleExtensions.cs Stash 2024-01-03 09:30:24 +01:00
ObjectExtensions.cs Normalize extensions namespaces (#3577) 2022-12-31 16:16:43 +01:00
OutputExtensions.cs Add HTTP file download activity and supporting classes (#5608) 2024-06-15 20:31:58 +02:00
StringExtensions.cs Normalize extensions namespaces (#3577) 2022-12-31 16:16:43 +01:00
TriggerExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
VariableCollectionExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
VariableExtensions.cs Reuse JsonSerializerOptions (#5283) 2024-04-26 15:29:16 +02:00
WorkflowBuilderExtensions.cs Fix flowchart completion after faulted child activity cancellation (#5145) 2024-03-29 20:38:09 +01:00
WorkflowExecutionContextExtensions.cs Fix Race Condition in WorkflowDefinitionActivity (#5315) 2024-05-01 14:53:37 +02:00
WorkflowExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
WorkflowRunnerExtensions.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00