Commit graph

3836 commits

Author SHA1 Message Date
Sipke Schoorstra 369e4e52c8 Fix CLR materializer
Fix that workflows materialized from CLR materializer lose definition version ID and version
2023-10-15 11:36:56 +02:00
Sipke Schoorstra c9e2b11dfe Fix RunTask activity
This fixes the issue where its bookmark would include the activity instance ID, which causes the task completion reporter to miss the bookmark, since the activity instance ID is not included. Including the activity instance ID is not necessary for locating the correct activity instance because the generated Task ID is unique for each activity run.

Fixes #4511
2023-10-15 11:35:38 +02:00
Sipke Schoorstra c2d9ec4fd2 Make programmatic workflow variable IDs deterministic 2023-10-15 11:32:13 +02:00
Sipke Schoorstra cdf5f9f614 Rename Port Resolver to Activity Resolver
In the scenario where this resolver is used, it's not about discovering ports, but about constructing a graph from the workflow by going through each activity or activities property.
2023-10-15 11:31:24 +02:00
Sipke Schoorstra 01bfc15df9 Exclude activity instance ID from HTTP Endpoint bookmarks 2023-10-15 00:24:00 +02:00
Sipke Schoorstra 402bfda6d7 Merge branch 'v3-activity-state-tracking-issue' into v3 2023-10-13 12:17:50 +02:00
Sipke Schoorstra fa18303198 Handle conversions from object arrays to strings 2023-10-13 12:17:00 +02:00
Sipke Schoorstra 4f50850a1e
Capture activity state (#4530) 2023-10-13 10:34:21 +02:00
Sipke Schoorstra 2d3c13f745 Update SafeSerializer to serialize to JsonElement 2023-10-13 10:17:34 +02:00
GitHub Action 580abe8c7f Updated designer version to 3.0.3-preview.205 2023-10-13 07:30:12 +00:00
Sipke Schoorstra c042429b60 Merge branch 'v3' into v3-activity-state-tracking-issue 2023-10-13 09:28:01 +02:00
Sipke Schoorstra 413d330f01 Merge branch 'v3-740-hotfix-1' into v3 2023-10-13 09:27:12 +02:00
Sipke Schoorstra b19b197484 Add Soap+XML content type support 2023-10-12 14:20:15 +02:00
Sipke Schoorstra fca51abf52 WIP 2023-10-12 13:37:32 +02:00
Sipke Schoorstra a770decc7f Update Flowchart to adhere to CanStartWorkflow 2023-10-12 11:52:05 +02:00
Sipke Schoorstra 6acec86502 Update CancelActivity alteration to affect all activity instances 2023-10-11 12:03:25 +02:00
Sipke Schoorstra 2b909997bc Fix duplicate key issue for older definition formats 2023-10-10 12:55:44 +02:00
Sipke Schoorstra ca5692e3bc
Alteration Improvements and fixes (#4518)
* Remove unused NOOP stores

* Add activity execution manager and FindAsync method to store

The notification is used to broadcast changes to SignalR clients.

* Refactor ActiveActivityExectionContexts

Instead, the workflow state extractor is in control of what gets extracted.

* Add missing files for activity execution deleted broadcast

* Update Flowchart to not fault when child faults

* Update Flowchart to support scheduling existing activity instances

* Update namespaces from Services to Stores

* Improve activity cancellation alteration

* Update ScheduleActivity alteration
2023-10-10 12:34:32 +02:00
jdevillard 60508d40b5
add applications properties to Message Sent to Service bus (#4492)
Co-authored-by: Jérémie DEVILLARD <jdevillard@users.noreply.github.com>
2023-10-07 23:33:07 +02:00
solutionmania 1f014c9264
Corrected behaviour of 'For' activity. (#4497)
* Add 'Auto Step Direction' option to 'For' activity.

* Adjusted 'For' behaviour to be more consistent with generally expected behaviour.
2023-10-07 23:31:16 +02:00
Sipke Schoorstra b7daf718f6 Remove incorrect default connection string values 2023-10-07 23:29:19 +02:00
jeanbaptistedalle 7547708603
Feature/postgresql efcore (#4500)
* Create the extension to enable efcore for postgresql with workflow-runtime

* Create a efcore postgresql samples to check extensions

---------

Co-authored-by: Jean-Baptiste Dalle <jean-baptiste.dalle@stereograph.fr>
2023-10-07 23:24:56 +02:00
bskfrederik 4b86200164
bugfix using editor as standalone (#4487) 2023-10-07 15:37:39 +02:00
Sipke Schoorstra bddf522e55
Activity Preconditions (#4507)
* Add CanExecuteAsync precondition method

* Rename GetInput to GetWorkflowInput to disambiguate between input sent to workflow and input sent to indiviudal activities.
2023-10-07 14:22:51 +02:00
Sipke Schoorstra 523f301bf7
Feature: Alterations (#4501)
* Implement Alteration types and engine

* Implement Alteration APIs

* Refactor activity work item with support for activity input

* Serialize scheduled activities as part of workflow state

* Add signal to schedule child activity

* Implement stores for plans and jobs

* Add EF Core provider

* Add Retry endpoint

* Keep root context as always active. The root context is the workflow execution context and contains persistent variable state

* Regenerate EF Core migrations

* Handle orphaned activity execution contexts

* Refactor workflow execution factory

* Enable configuring Jint from Program

* Update ModifyVariable alteration with support for type deserialization

* Use ShortGuid for identity

* Cleanup WorkflowServer host
2023-10-07 12:47:36 +02:00
Sipke Schoorstra 98e424faa2 Return Bad Request when receiving invalid header values 2023-10-03 10:25:57 +02:00
Sipke Schoorstra 2a7ca95456 Make ConnectionComparer more resilient 2023-09-28 14:09:34 +02:00
Sipke Schoorstra f6f1d930e2 Rename display text of Flow Node 2023-09-28 13:38:37 +02:00
Sipke Schoorstra bf5de06799 Update Jint package 2023-09-28 13:38:19 +02:00
Sipke Schoorstra a011427f35 Handle non-existing drop in directory 2023-09-27 13:11:40 +02:00
Sipke Schoorstra 493c8af3be Update Proto.Actor to 1.4.0 2023-09-27 09:58:57 +02:00
herblinernexxbizz acc5bb5ac3
REturn workflowstate around faulted workflowinstances to make it consistent, add UsesSasTokent to make all in one work (#4484) 2023-09-26 15:29:45 +02:00
Sipke Schoorstra fd9554937a Remove test endpoint 2023-09-26 15:12:14 +02:00
Sipke Schoorstra 5dd6c85045 Make SasTokens implicit dependency of Workflows API
SAS tokens are used by the Events/Trigger API endpoint.
2023-09-26 15:11:46 +02:00
Sipke Schoorstra e75e600910 Fix resumable download issue 2023-09-25 13:58:05 +02:00
Sipke Schoorstra 8025edfbe3 Update programmatic Document Approval workflow sample 2023-09-25 10:31:00 +02:00
Sipke Schoorstra 6b969799bb Add XML comments 2023-09-25 10:30:37 +02:00
Sipke Schoorstra 28dbd7d961 Improve WorkflowBuilder with common default behavior 2023-09-25 10:25:48 +02:00
Sipke Schoorstra b5cdb8d770 Incremental fixes 2023-09-25 00:55:29 +02:00
Sipke Schoorstra 2f69176463
Implement SAS tokens (#4476)
Issue #4475
2023-09-25 00:38:06 +02:00
Sipke Schoorstra 8ff7834ef8 Fix duplicate trigger schedule issue
Issue #4470
2023-09-24 20:31:23 +02:00
Sipke Schoorstra 939c403381 Default to memory stores
Issue #4467
2023-09-24 20:22:31 +02:00
Sipke Schoorstra eebb58e094 Make ActivityJsonSerializer support non-registered activities
For most scenarios, having an activity type in the registry is necessary only when using a visual designer, and not when using programmatic workflows - unless there are activities with modifiers in place. Therefore a warning might suffice.
2023-09-24 20:14:45 +02:00
Sipke Schoorstra 713ccc63f3 Add XML comments 2023-09-24 12:38:06 +02:00
Sipke Schoorstra da34e23c2b
Add DropIn support (#4471)
* Implemented dynamic loading of activities at runtime

* Add support for loading NuGet packages
2023-09-23 19:41:37 +02:00
Sipke Schoorstra a5d13e4e9b
Enhance HTTP Endpoint + Flowchart fix (#4469)
* Fix flowchart next activity scheduling bug

This fixes a bug where the Flowchart activity would schedule connected activities regardless of the outcome of the completed activity.

* Cancel activity execution when cancellation token is triggered.

* Enable user to handle HTTP endpoint validation failures as outcomes

* Don't respond with full details in case of HTTP Endpoint faults for security
2023-09-22 18:45:18 +02:00
Sipke Schoorstra a201672584 FlowSendHttpRequest improvements 2023-09-22 11:13:23 +02:00
Sipke Schoorstra e7ca310eac
HTTP File Response Improvements (#4465)
* Make local temp path configurable

* Generate entity tag based on file content hash instead of modified date
2023-09-21 19:42:41 +02:00
Sipke Schoorstra fc14cfb7b0
Exclude Activity from being serialized in instance and execution log (#4464) 2023-09-21 18:09:48 +02:00
Sipke Schoorstra edc2335d82 Add initial version of Document Approval sample from Elsa 2 2023-09-21 00:05:50 +02:00