Commit graph

3701 commits

Author SHA1 Message Date
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 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 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
Sipke Schoorstra 74eec314fe
Create variable in local scope (#4321) 2023-08-12 11:04:30 +02:00
RuslanSay 0ea9399f81
Add to ElsaClientOptions.ConfigureHttpClient access to the service provider (#4318) 2023-08-11 23:02:36 +02:00
RuslanSay a0bc324b83
V3 improve dispatch endpoint (#4317)
* add versionOptions to Dispatch endpoint

* Add DispatchWorkflow API client
2023-08-11 22:59:51 +02:00
Sipke Schoorstra 3ba6a548e1
Update ForEach activity with local variables (#4315)
* Update ForEach activity with local variables

* Add option to include activity instance ID as part of bookmark hash
2023-08-11 21:59:39 +02:00
Sipke Schoorstra 57d06244ec Remove unused constructor argument 2023-08-11 11:35:02 +02:00
Sipke Schoorstra 8815284cde Update DefaultApplicationCredentialsValidator with empty value check 2023-08-11 11:34:50 +02:00
Sipke Schoorstra 265434b651
Update output selector with support for activity instances (#4307)
* Update output selector with support for activity instances

* Update tests
2023-08-10 00:20:30 +02:00
Sipke Schoorstra 62ae3b1f6e
Add ability to push variables to scheduled work (#4306) 2023-08-09 22:35:44 +02:00
GitHub Action 594c98e066 Updated designer version to 3.0.3-preview.198 2023-08-09 11:26:17 +00:00