Commit graph

4304 commits

Author SHA1 Message Date
Abhijit d9fd79a307
Upgraded nupkg DistributedLock to v2.3.3 (#4360)
DistributedLock v2.3.2 was indirectly referencing System.Drawing.Common v5.0.0 nupkg which has one critical vulnerability.
2023-08-29 12:46:32 +02:00
Sipke Schoorstra f0158245db Fix ListAsync of Redis cluster member store 2023-08-28 23:42:33 +02:00
Sipke Schoorstra b3e0c0064c Fix sample and test 2023-08-28 22:44:43 +02:00
Sipke Schoorstra d5ab498af5
Implement stale member handling (#4369)
* Update ACA provider to remove stale members

* Move monitor to separate actor

* Implement reentrancy for tasks that take a longer time

* Update version from protoactor project
2023-08-28 22:26:44 +02:00
Sipke Schoorstra 2eb13deb8d Update ACA Cluster Provider to remove dead members retroactively 2023-08-26 12:07:58 +02:00
Sipke Schoorstra 7358613653 Fix orphaned completion callback handling 2023-08-26 02:02:02 +02:00
Sipke Schoorstra ca25b78457
Fix Break behavior (#4365)
* Fix Break behavior

* Ensure removal of completion callbacks
2023-08-26 01:11:10 +02:00
Sipke Schoorstra e9249d6b1c Add API client to get server version 2023-08-25 10:04:47 +02:00
MariusVuscanNx 06f92d8d7e
Enrich trigger validation to take into consideration path and method uniquness (#4363) 2023-08-25 09:11:22 +02:00
Ray 811f8b4c93
V3 get type definitions request (#4353)
* Update IWorkflowDefinitionsApi.cs

Add GetTypeDefinitions Refit request

* Create GetTypeDefinitionsRequest.cs

Add the Request model.

* Refactor WorkflowDefinitionRequest to seperate resource.

---------

Co-authored-by: Raymon Boer <r.boer@sense-cloud.nl>
2023-08-24 21:44:04 +02:00
Sipke Schoorstra 4d37c2a1da
Fix Default Workflow Runtime Race condition (#4362)
* Refactor Telnyx activities to use instance ID for correlating events

* Ensure SetVariable sets value in correct scope

* Fix race condition between new instances that are being resumed

* Fix tests
2023-08-24 21:41:45 +02:00
Sipke Schoorstra a30ac939ee
Refactor safe serializer (#4361) 2023-08-24 13:15:28 +02:00
Sipke Schoorstra 48b2e29b00
Refactor activity state serializer (#4357) 2023-08-23 21:57:10 +02:00
Sipke Schoorstra a02bacbbde
Support serialization of non(de)serializable values (#4356) 2023-08-23 20:56:12 +02:00
Sipke Schoorstra 73482a8e4c
Enhanced Logging for Activity Outcomes and Outputs (#4352)
* Add result to logs

* Include outcomes and outputs with activity execution log

* Include outputs with completed activity events
2023-08-23 13:34:30 +02:00
Sipke Schoorstra 1e7f954311
Implement HTTP correlation ID selectors (#4349) 2023-08-23 10:48:12 +02:00
Sipke Schoorstra 46c9a76259 Move input accessors to Jint service to control order 2023-08-22 14:59:31 +02:00
Sipke Schoorstra 9416461f78 Fix SendHttpRequestActivity response handling logic
This fixes a bug where the "unmatched status code" activity would be scheduled even if the returned status code was defined as an expected outcome.
2023-08-22 13:42:23 +02:00
Sipke Schoorstra 68a20de07f Ignore MemoryBlockReference from Argument when serializing to JSON 2023-08-22 00:21:02 +02:00
Sipke Schoorstra 10533131e3 Add fault information to journal 2023-08-21 22:45:56 +02:00
Sipke Schoorstra 0413cbebf6 Fix duplicate workflow inbox message effect 2023-08-21 21:17:40 +02:00
Sipke Schoorstra 10218c27ff Serialize activity state using activity state serializer
This fixes the issue where an activity's input contains objects that cannot be deserialized.
2023-08-21 11:12:17 +02:00
Sipke Schoorstra 776e3c141b Revert PolymorphicObjectConverter changes 2023-08-21 11:10:11 +02:00
Sipke Schoorstra 1eaaecd132 Fall back to JsonObject
When deserialization dails due to the target type not being deserializable, return a JsonObject instead. This enable e.g. ActivityExecutionLogRecord to store JSON information for ActivityState, which does not need to be reconstructed into the original type. An improvement could be considered to store activity execution log record activity state in a non-polymorphic structure in the first place.
2023-08-21 11:00:21 +02:00
Sipke Schoorstra e73d618b1a Remove IsHandled filter when delivering messages 2023-08-21 10:18:12 +02:00
Sipke Schoorstra 6a66c3f0ae Add message handler provider API 2023-08-20 20:02:59 +02:00
Sipke Schoorstra 15ca560882 Update StopAudioPlayback 2023-08-19 13:37:28 +02:00
Sipke Schoorstra 3ff0655fac Add Elsa API client configuration API 2023-08-19 13:37:17 +02:00
Sipke Schoorstra 687768bd3e Prevent multiple activity completion
This enables CodeActivity to explicitly complete itself
2023-08-18 10:01:03 +02:00
Sipke Schoorstra c25f33434c Fix Telnyx response models 2023-08-17 22:41:21 +02:00
Sipke Schoorstra 061ecc1476 Fix PlayAudio 2023-08-17 20:48:08 +02:00
Sipke Schoorstra e43e36b157 Fix hashing 2023-08-17 20:27:35 +02:00
Sipke Schoorstra 1cc7a91fc5 Fix Telnyx bookmark resumption 2023-08-16 19:49:45 +02:00
Sipke Schoorstra 8c3f2658e8 Include hash in trigger comparer
This ensures triggers are updated when anything changes
2023-08-16 13:44:03 +02:00
Sipke Schoorstra a684d3d8b5 Don't invoke CatchAll if To and From workflows were triggered 2023-08-14 21:12:25 +02:00
Sipke Schoorstra aa8536ca7b Merge branch 'v3-workflow-inbox-cleanup' into v3 2023-08-14 14:50:12 +02:00
Sipke Schoorstra 7ad3da2c2a Minor cleanup 2023-08-14 14:47:35 +02:00
Sipke Schoorstra 811827c393 Fix unintended attempt to convert dictionary to array 2023-08-14 14:38:33 +02:00
Sipke Schoorstra ebc585b11a Restore getGuidString and getShortGuid functions and deprecate them 2023-08-14 14:34:40 +02:00
Sipke Schoorstra 6430d9beec Serialize missing Fault details 2023-08-14 14:34:11 +02:00
Sipke Schoorstra f4ae684edd
Implement workflow inbox cleanup service (#4327) 2023-08-13 12:35:15 +02:00
Sipke Schoorstra ebd6375f7f Implement workflow inbox cleanup service 2023-08-13 12:31:58 +02:00
Sipke Schoorstra af34276d60
Delete ActivityExecutionRecords when deleting workflow instances (#4324)
* Delete ActivityExecutionRecords when deleting workflow instances

* Enable Hangfire for testing, code formatting
2023-08-12 22:22:40 +02:00
Sipke Schoorstra b829a0acef Update Event Trigger endpoint to resume HTTP bookmarks 2023-08-12 21:58:15 +02:00
Sipke Schoorstra a2b587d0d1 Order workflow definitions by name by default 2023-08-12 21:09:24 +02:00
Sipke Schoorstra e2e861af05 Use FireAndForget strategy instead of Background worker
For some reason, the background worker causes duplicate handling of notifications
2023-08-12 21:09:07 +02:00
Sipke Schoorstra 6b68bd8f6d Prevent WorkflowInbox from triggering new workflows
when targeting a specific workflow instance
2023-08-12 21:08:14 +02:00
Sipke Schoorstra cf15360c0d Fix BackgroundEventPublisherHostedService argumentation 2023-08-12 21:07:26 +02:00
Sipke Schoorstra 7c99037de2
EF Core NoTracking (#4323)
* Use NoTracking for EF Core

* Use Activity ID as Node ID for modern tooling

* Fix DispatchWorkflow activity

* Update tests and remove redundant ToolVersion
2023-08-12 16:41:16 +02:00
Sipke Schoorstra 0b8d97c422
Fix WriteHttpResponse when NoContent (#4322) 2023-08-12 11:47:07 +02:00