Commit graph

106 commits

Author SHA1 Message Date
Sipke Schoorstra ee92344441 Revert "Revert "Provide tag support for workflows (#2990)" (#2991)"
This reverts commit 00c8845346.
2022-05-03 09:47:14 +02:00
Sipke Schoorstra 00c8845346
Revert "Provide tag support for workflows (#2990)" (#2991)
This reverts commit 34a979f1f9.
2022-05-03 09:43:30 +02:00
gurkanguran 34a979f1f9
Provide tag support for workflows (#2990)
Co-authored-by: Gürkan Güran <gurkanguran@gurkangurans-MacBook-Pro.local>
2022-05-03 09:43:10 +02:00
Sipke Schoorstra 261c9cb1a5
Implement Default Workflow Invoker (#2979)
* Implement default invoker

* Proto actor improvements

* Refactor workflow registry handling

* Update migrations
2022-04-30 11:10:08 +02:00
Sipke Schoorstra c04f7c996f Refactor contracts/services/implementations namespaces 2022-04-25 11:43:23 +02:00
Sipke Schoorstra 7bd4df2532 Move IWorkflow to Core and update tests 2022-04-12 17:08:31 +02:00
Sipke Schoorstra 3120429f89 Incremental work on correlation 2022-04-11 14:19:55 +02:00
Sipke Schoorstra c13825a930 Fix metadata and serialization 2022-03-24 12:56:31 +01:00
Sipke Schoorstra b23ebdaddd Restructuring 2022-03-22 14:33:15 +01:00
Sipke Schoorstra c33549c291 Add WorkflowContexts module 2022-03-08 14:40:47 +01:00
Sipke Schoorstra 161a70e429 Remove Trigger separation 2022-03-04 21:42:27 +01:00
Sipke Schoorstra c600399f0d Refactorings 2022-03-04 19:59:44 +01:00
Sipke Schoorstra 689147b9ca Add sources from experimental repo 2022-01-04 09:42:12 +01:00
Sipke Schoorstra 42ce946d64 Reset 2022-01-04 09:38:11 +01:00
Sipke Schoorstra b6eb9a91e4 BREAKING DB: Add DefinitonVersionId ans optimize workflow registry perf 2021-12-15 11:58:28 +01:00
Andrey Mishurinsky ef37f87514
Disable workflow (#1336)
* Publish/Subscribe events added to WorkflowSettings and WorkflowRegistry

* Workflow Registry re-indexed and cache refreshed on workflow disable/enable

* IsDisabled property added to WorkflowBlueprintSummary to display disabled status in the UI

* MySql, PostgreSql and SqlServer persistence added to Workflow Settings

* Validation for disabled workflow in Workflow Resumer

* WorkflowSettings configuration added to the appsettings.json

* Workflow Settings added to Elsa.Server.Host startup collection

* IWorkflowSettingsProvider implemented

* Update README.md

* Elsa-Workflow-Settings and Elsa-Webhooks separate modules added and decoupled from Elsa Web

* Delete unused Client projects

* LoadWorkflowSettingsDisabledHandler changes

* FeatureProvider removed, Webhooks plugin merged to Webhooks Feature Plugin

* Update Webhooks and Settings plugin

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
2021-09-02 16:20:10 +02:00
Sipke Schoorstra 8228053cd9 Fix duplicate Done outcome
Fixes #1455
2021-08-31 21:30:37 +02:00
Sipke Schoorstra 472358f9e7 Introduce designer-critical properties 2021-07-24 11:59:56 +02:00
Sipke Schoorstra e3120e9329 Fix CompositeActivityBlueprint initialization
This fixes an issue where one could not use nested composite activities when used from the designer
2021-07-14 14:59:38 +02:00
Sipke Schoorstra a3fd1a31af Implement workflow priority channels 2021-06-28 22:38:05 +02:00
tomy2105 6c7cbd3c9e Enabling directly named properties used using SetupActivity (not just through C# property name) 2021-06-23 15:00:08 +02:00
Sipke Schoorstra 5f1baedc7e Add branch parameter to Add builder method 2021-06-18 21:20:05 +02:00
Sipke Schoorstra d787ca34ca Update Workflow builder API with support for property storage providers 2021-06-14 14:10:03 +02:00
Sipke Schoorstra 9ec82d9293 Refactor Output handling 2021-06-14 14:10:03 +02:00
Sipke Schoorstra 332741d54f Implement pluggable storage for activity input and output properties 2021-06-14 14:10:03 +02:00
Sipke Schoorstra 6a49f7a991 Stash input output storage 2021-06-14 14:10:03 +02:00
Sipke Schoorstra c5facf0ff5 Organize folder structure a bit 2021-06-14 14:10:03 +02:00
Sipke Schoorstra a33cb1bc88 Implement scoped naming for composite activity children
Fixes #1071
2021-06-08 21:11:55 +02:00
Sipke Schoorstra 97df3b7bc7 Acquire lock on correlation ID when dispatching new workflows
This fixes a race condition between initial workflow execution that e.g. sends a message to a topic, which is then handled by the same workflow later on.
But if that message is delivered too soon (before the workflow got persisted & indexed), then the message consumer won't be able to find the workflow.

Acquiring a lock on the correlation ID fixes this by synchronizing access to that resource
2021-06-03 14:02:07 +02:00
Sipke Schoorstra 899551463e Refactor workflow collection and execution 2021-05-16 21:05:34 +02:00
Sipke Schoorstra d927cae205 Enable branching of inline code activities 2021-05-13 18:49:10 +02:00
Sipke Schoorstra 400a862f96 Cleanup: remove unused namespaces 2021-05-13 11:31:38 +02:00
Sipke Schoorstra 999189c1dc Fix mapping of composite activity property definition onto blueprint 2021-05-11 20:45:55 +02:00
Sipke Schoorstra c6b998d00b Fix assignment 2021-05-05 13:12:27 +02:00
Sipke Schoorstra 9b5bad71c8 Update workflow builder to enable developer to specify latest & published state 2021-05-03 13:07:21 +02:00
Sipke Schoorstra 27b008fd05 Update WorkflowBlueprint with Tag 2021-04-26 12:30:15 +02:00
Sipke Schoorstra 4807ace13c Implement ring group transfer for prioritized hunt strategy 2021-03-26 11:40:22 +01:00
Sipke Schoorstra 61b57de61c Turn Fork into self-cleaning scoped activity 2021-03-26 11:40:22 +01:00
Sipke Schoorstra 6fef9874da **BREAKING API** Update Builder API to allow to connect to named activities as well as activities by type name
This replaces the `Then(string activityName)` method with `ThenNamed(string activityName)`.
A new method is added to allow connecting to activities by type name: `ThenTypeNamed(string activityTypeName)`.

The reason for this change and addition is to allow workflow builders to connect to activity types that do not have a corresponding type.
For example, the Telnyx project has an activity type provider that *dynamically* provides activity types based on Telnyx webhook callback types.
2021-03-26 11:40:22 +01:00
Sipke Schoorstra 5d8d05aec5 Stash 2021-03-26 11:40:22 +01:00
Craig Fowler 9ec698c7bc WIP #738 - Refactor a troublesome extension method
This extension method is quite complex and is frustrating
when a unit test passes-through it.  That's because extension
methods can't be mocked in tests.
2021-03-18 21:09:04 +00:00
Craig Fowler 5c927501d0 PR rework #728 - Default persistence behavior
This reworks the way that the default behavior is selected, in line
with comments.  The changes to the enum are reverted, and the
three places which create a workflow definition are now altered to
explicitly choose WorkflowBurst

This includes a change to the TS enum definition - update to match
its C# counterpart.
2021-03-10 20:08:53 +00:00
Sipke Schoorstra 62352e27ac Remove IsEnabled flag 2021-03-08 15:14:02 +01:00
Sipke Schoorstra 59189bd330
Revise trigger API (#593)
* Update triggers

* Fix service registrations

* Add support for startup task ordering

* Add missing Rebus Activities project

* Handle indexing of many workflow instances

* Update sample

* Separate bookmarks from start triggers

* Add trigger API

* Fix queue worker

* Delete sqlite temp files
2021-01-29 16:16:45 +01:00
Sipke Schoorstra 1316188d82 Add missing line number and source file arguments for inline activities 2021-01-21 12:11:54 +01:00
Sipke Schoorstra 254ec93263
Fix issues with workflow builder API and Join cleanup of scopes (#577)
* Fixed unique key violation

* Fix builder, descoping from join (loops + ifelse)

* Cleanup Join
2021-01-17 11:55:00 +01:00
Sipke Schoorstra 218bd5a851 Store short file name without path 2021-01-14 23:30:30 +01:00
Sipke Schoorstra fe6aa7d9ff Fix OutcomeBuilder bug 2021-01-14 23:28:08 +01:00
Sipke Schoorstra d468b132b7 Update CompositeActivityBuilderExtensions 2021-01-14 22:19:43 +01:00
Sipke Schoorstra 89dfba8269
Add source file + line number to execution log. (#571)
* Add source and activity type to WorkflowExecutionLogRecord

* Update builder extensions
2021-01-14 21:45:28 +01:00