Commit graph

4560 commits

Author SHA1 Message Date
Sipke Schoorstra 8bb7d81251 Update Elsa.Studio packages and configure authentication handler
The Elsa.Studio, Elsa.Studio.Core, and Elsa.Studio.Login packages have been updated across the projects Elsa.AllInOne.Web and ElsaStudioWebAssembly, from Ver. 3.0.0-preview.148 to Ver. 3.0.0-preview.160. In the Program.cs of ElsaStudioWebAssembly, the authentication mechanism has been adjusted by specifying an AuthenticatingApiHttpMessageHandler for the HttpMessageHandler in the method AddRemoteBackend().
2023-12-09 22:10:16 +01:00
Sipke Schoorstra 441b12e90d Remove PR body generator workflow
The PR body generator workflow has been removed from the repository. This includes the deletion of the workflow configuration file (pr-body-generator.yml) under the GitHub Actions workflows directory and the removal of reference to it in the Elsa.sln file.
2023-12-09 21:28:32 +01:00
Sipke Schoorstra c97282f7d5 Remove ApiHttpMessageHandler and update ElsaClient configuration
The ApiHttpMessageHandler and the related configuration in ElsaClientOptions have been removed. The configuration for creating Api clients in DependencyInjectionExtensions has been updated to handle these changes. This includes the addition of a retry policy in case of transient HTTP error and changing the way clients are created to use the HttpClientFactory directly.
2023-12-09 20:44:11 +01:00
Sipke Schoorstra cc18e99d24 Refactor HTTP headers in Elsa
Removed HttpResponseHeaders class and refactored HttpRequestHeaders class into HttpHeaders. This commit merges the separate classes to represent HTTP headers into a single class, HttpHeaders. It also includes updates to the related files like HttpJavaScriptHandler and SendHttpRequestBase to reflect these changes.
2023-12-08 21:53:43 +01:00
Sipke Schoorstra faf8fd1df6
Enhanced ObjectConverter to Return JsonObject Instead of JsonElement (#4686)
* Incremental work

* Refactor code for JSON object handling and workflow context

This commit includes a significant rework of JSON object handling by ensuring produced JsonObject remains as JsonObject. Previously unimplemented customer and order workflow context providers have been removed. The test cases have been renamed and updated to confirm the new behavior is working as expected.
2023-12-08 20:57:07 +01:00
Sipke Schoorstra e03439515f Enable conditional MassTransit usage in Elsa.WorkflowServer
An if condition has been introduced to control the usage of MassTransit in the Elsa.WorkflowServer.Web.
2023-12-08 09:07:57 +01:00
MariusVuscanNx 2dc584fac7
Implemeted FlowFork activity (#4684) 2023-12-07 22:29:05 +01:00
Sipke Schoorstra 683f0ee6d8
Add Bulk Dispatch Workflow activity (#4683)
* Initial version of BulkDispatchWorkflow

* Update comments

* Refactor options models for running workflows and add Properties

* Fix resumption

* Add ability to provide arguments when evaluating expressions

* Update args syntax for JS

* Fix ProtoActor Runtime Properties mapping

* Use default constructor

* Provide completed workflow instance ID as input to BulkDispatchWorkflows

* Implement ChildFaulted port

* Switch to Publish to make Memory service bus work

* Update input evaluation and activity output retrieval

Refined the input evaluation process to only consider inputs with AutoEvaluate set to true. Added a comment to clarify the purpose of the GetActivitiesWithOutputs method. Removed the unnecessary check for AutoEvaluate from the EvaluateInputPropertyAsync method.
2023-12-06 22:32:08 +01:00
Sipke Schoorstra 0146a8aeb0 Update AllInOne dockerfile 2023-12-04 14:25:34 +01:00
Sipke Schoorstra 50ac0e9371 Exclude Start field from being serialized 2023-11-30 12:14:01 +01:00
Sipke Schoorstra 1ed98dfb57 Cleanup 2023-11-30 12:06:41 +01:00
Sipke Schoorstra 811ab7702d Fix conversion of dynamic values to T 2023-11-29 20:30:38 +01:00
Sipke Schoorstra 213f114cfc Add support for JsonObject to target type conversion 2023-11-29 15:09:00 +01:00
Sipke Schoorstra 3352cbee40 Update tests 2023-11-28 22:51:23 +01:00
Sipke Schoorstra d25dbe552e Fix .NET targeting in ElsaAPI client 2023-11-28 22:45:07 +01:00
Sipke Schoorstra bca5a8c545 Change C# Variable to Variables 2023-11-27 20:50:47 +01:00
Sipke Schoorstra fa1e9ba70f Add check to InputJsonConverterFactory
As of .NET 8, base type Input is also seen.
2023-11-27 20:37:44 +01:00
Sipke Schoorstra f5962501bc Update targets 2023-11-27 20:20:22 +01:00
Sipke Schoorstra 5964fc0afb Update AllInOne project 2023-11-27 20:10:55 +01:00
Sipke Schoorstra 694a90baee Update build 2023-11-27 20:05:26 +01:00
Sipke Schoorstra 86ffcfab5d Update Dockerfile 2023-11-27 20:03:50 +01:00
Sipke Schoorstra b73c21e868 Fix package references in DropIns 2023-11-27 20:00:18 +01:00
Sipke Schoorstra 40fce04a14 Fix BulkUpsert for EF Core 8 2023-11-27 19:25:44 +01:00
Sipke Schoorstra b84bcdff93 Increase length of token signing secret (min. 256 bits) 2023-11-27 13:31:42 +01:00
Sipke Schoorstra bec8cbc322
Target .NET 8 (#4660) 2023-11-27 11:26:16 +01:00
Sipke Schoorstra 580f4a22f7 Update log level in appsettings.json of reference server project 2023-11-26 13:33:15 +01:00
Sipke Schoorstra 48e9963d6e Split import endpoints
This fixes an issue where the import of JSON content returns 415.
2023-11-24 21:54:08 +01:00
Sipke Schoorstra c08388ec07 Update JsonContentFactory to use StringContent
This fixes an issue that Content-Length header is not included when using JsonContent, which is problematic for certain backend APIs.
2023-11-24 20:11:28 +01:00
MariusVuscanNx 6a8c175b6d
Updated Api.Client to include instance bulk import and export (#4652) 2023-11-24 11:24:16 +01:00
Sipke Schoorstra 14d7ec18d6 Handle user-usage of $id key in JSON objects 2023-11-23 20:30:58 +01:00
Sipke Schoorstra c10e1b4232 Update TriggerIndexer to return modifiable lists 2023-11-22 20:47:15 +01:00
Sipke Schoorstra c841b3511f Handle attempts to serialize unserializable values 2023-11-22 20:46:40 +01:00
Sipke Schoorstra f033631b30 Fix FlowSendHttpRequest Done outcome
This fixes an issue where Done is not always triggered
2023-11-22 20:46:12 +01:00
Sipke Schoorstra 225a99f39d
Bulk Import + Export of Workflow Definitions and Instances (#4643)
* Implement bulk export of workflow definitions

* Update Import endpoint with support for file uploads

* Update Import endpoint to return imported workflow count

* Implement workflow instance (bulk) export

* Implement workflow state, bookmark, workflow + activity execution export

* Remove globally imported usings
2023-11-22 14:31:48 +01:00
Sipke Schoorstra c4449a4b34 Update outdated Elsa.Studio package references 2023-11-20 22:32:20 +01:00
Sipke Schoorstra 95bdcc64b6 Fix output mapping
Fixes #4566
2023-11-19 22:04:41 +01:00
Sipke Schoorstra fbcb6ae493 Merge branch 'v3' of https://github.com/elsa-workflows/elsa-core into v3 2023-11-19 21:13:26 +01:00
Sipke Schoorstra 0c8fa75a47 Replace IronPython implementation with Python.NET
#4164
2023-11-19 21:13:19 +01:00
jdevillard e518ec60c1
Features : Allow Customization of DbContext Schema (#4638)
* Implement Changing DB Migration Schema At Runtime

* Add Schema Customization for SQL Server Provider

* Add Schema Customization for PostreSql  Provider

* Add Schema Customization for MySql  Provider

---------

Co-authored-by: Jérémie DEVILLARD <jdevillard@users.noreply.github.com>
2023-11-19 10:22:13 +01:00
Sipke Schoorstra c4e812c6ec Merge branch 'v3' of https://github.com/elsa-workflows/elsa-core into v3 2023-11-18 13:47:36 +01:00
Sipke Schoorstra d0060230c7 Update Expression Value property to be object 2023-11-18 13:47:31 +01:00
GitHub Action dae7591726 Updated designer version to 3.0.3-preview.209 2023-11-18 12:41:37 +00:00
Dharmang Gajjar 75b2f30775
fix: workflow definition editor autoLayout (#4634) 2023-11-18 13:39:02 +01:00
Sipke Schoorstra bf205c72b9 Fix SetOutput handling 2023-11-17 20:59:09 +01:00
Sipke Schoorstra c99ce46f25 Add missing namespace 2023-11-15 21:18:34 +01:00
Borja Fernández 7fe05f491d
Complete activity if items count is 0 (#4623) 2023-11-15 21:00:34 +01:00
Borja Fernández 793002ac9f
Add activity execution log pipeline and exception handler pipeline (#4607) 2023-11-15 20:54:44 +01:00
jdevillard 17f5218285
Change endpoint to Post (#4619)
* Change endpoinit to Post

* change Post for Api Client

---------

Co-authored-by: Jérémie DEVILLARD <jdevillard@users.noreply.github.com>
2023-11-15 20:50:56 +01:00
Sipke Schoorstra 21e438bdd1
Add Azure Service Bus for MassTransit (#4624)
* Split RabbitMQ from MassTransit and add Azure Service Bus package

* Use Send topology for commands
2023-11-15 20:47:11 +01:00
Sipke Schoorstra 3a4b15be13 Fix output mapping naming collision 2023-11-15 15:13:19 +01:00