Commit graph

295 commits

Author SHA1 Message Date
Sipke Schoorstra 993e08ea89
Refactored Switch Activity (#545)
* Add IfThen activity + sample

* Add match mode

* Rename IfThen to Switch
2020-12-29 16:40:21 +01:00
Sipke Schoorstra 460c75227d Implement delete workflow definition 2020-12-28 17:34:44 +01:00
Sipke Schoorstra c6d68875c1 Implement workflow settings 2020-12-27 21:02:14 +01:00
Sipke Schoorstra d04cd93536 Add support for overriding display name and description 2020-12-26 21:55:02 +01:00
Sipke Schoorstra 8dc86a6fa2 Fix broken workflow runner 2020-12-26 15:46:50 +01:00
Sipke Schoorstra 75c4be157a Fix order of startup tasks 2020-12-26 15:32:50 +01:00
Sipke Schoorstra fa13aadd37 Serialization improvements and cleanup 2020-12-26 14:37:05 +01:00
Sipke Schoorstra 310cab9032
Elsa Activity + Workflow registration refactorings (#543)
* Elsa options and activity/workflow registration improvements

* Add convenience extensions for Quartz and Hangfire timer activity registration

* Fix solution and warnings
2020-12-26 12:21:08 +01:00
Rafael Carnucci 92e1a1c3bf
Redesign activities and workflows management (#536)
* Adding Activities, Workflows, TriggerProviders and WorkflowContextProviders by Reflection

* Activities stored in ElsaOptions, instead of IServiceCollection

* Remove the empty XML comments

* Renamed ElsaConfigurationsOptions to ElsaConfiguration

* Small enhancements

* Workflows stored in ElsaOptions, instead of IServiceCollection

* Instantiated workflows can now be added

* Workflow instance was not registered to DI

* Add Elsa.Activities.Rebus project to solution

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
2020-12-25 21:17:17 +01:00
Rafael Carnucci f6685189f7
Add ContextType to WorkflowInstance (#539)
* Add ContextType to WorkflowInstance

* Removed ContextType from WorkflowDefinition

* Added ContextType to WorkflowInstanceDocument and WorkflowInstanceIndex
2020-12-25 21:15:58 +01:00
Sipke Schoorstra 599c6a5cd6 Fix workflow execution
This fixes an issue where blocking activities would not actually block workflow execution from continuing, due to the workflow runner continuing to schedule the posted activities.
2020-12-24 21:38:45 +01:00
Sipke Schoorstra 28ac92b6ff
Introduce Workflow Instance Name (#538)
* Add Name property to Workflow Instance models and update Dashboard UI

* Add SetName activity

* Add naming workflow sample

* Add modal html

* Implement search by workflow instance name
2020-12-24 14:30:55 +01:00
Rafael Carnucci 5b84a2e7a2
Using AutoMapper.Extensions.Microsoft.DependencyInjection, instead of own implementation (#537) 2020-12-24 14:25:43 +01:00
Sipke Schoorstra b24ff99354 Fix build after merge 2020-12-23 12:50:34 +01:00
Sipke Schoorstra 8dbc3fe100
Workflow Execution Log (#530)
* Rename provider folder to locking

* Update project reference paths

* Incremental work on workflow execution log storage

* Fix deadlock

* Add workflow execution log stores
2020-12-21 17:08:32 +01:00
Sipke Schoorstra 740337bd1e Handle workflow exceptions 2020-12-21 13:55:41 +01:00
Sipke Schoorstra dd2004dd89 Fix CompositeActivity behavior and update sample 2020-12-21 12:10:41 +01:00
Sipke Schoorstra 0b40eb104d Do not invoke context loader for workflow blueprint trigger initialization 2020-12-20 21:58:35 +01:00
Sipke Schoorstra 03c9f94671
Improve specifications and YesSQL implementation (#529)
* Update Fluid.Core package

* Make specifications flexible

* Update build environment

* Disable global.json
2020-12-20 12:12:32 +01:00
Sipke Schoorstra c047d66942 Update packages 2020-12-19 15:35:11 +01:00
Sipke Schoorstra 61c7df61fe Fix NRE in Join activity 2020-12-19 14:56:44 +01:00
Sipke Schoorstra d41039b567 Rename extensions namespace 2020-12-18 11:35:29 +01:00
Sipke Schoorstra cb33ba1f9c Remove reference to deleted folder 2020-12-17 12:05:19 +01:00
Rafael Carnucci 0ba56f51b4
Enhance project structure (#524)
* Fix sample Elsa.Samples.FileBasedWorkflow

* Centralize project properties

* Fix PackageLicenseExpression

* Added configureawait.props & FodyWeavers.xml & FodyWeavers.xsd.

* Remove icon.png and added PackageIconUrl

* Removed <Nullable>disable</Nullable>

* Fix Icon in Elsa.Activities.MassTransit and Rebuild

Co-authored-by: Rafael Carnucci <rafael.carnucci@icn.de>
2020-12-16 10:31:02 +01:00
Sipke Schoorstra b08eba93d5 Fix SignalReceived activity 2020-12-14 21:51:24 +01:00
Sipke Schoorstra 9dc7b691da Add Entity Changed blocking support + workflow context enhancements 2020-12-14 21:12:37 +01:00
Sipke Schoorstra 9611935c3a Add correlation specification 2020-12-14 18:02:00 +01:00
Sipke Schoorstra d6cc7d7f56
Implement Specification pattern (#517)
* Add specifications

* Update persistence providers with specification pattern
2020-12-14 17:15:39 +01:00
Sipke Schoorstra 0d18e374d5 Update workflow time stamps 2020-12-12 19:56:02 +01:00
Sipke Schoorstra 3c8d7c3c0d Extract workflow context handling to event handlers 2020-12-12 19:41:45 +01:00
Sipke Schoorstra f2aae986f4 Use in-memory persistence by default 2020-12-12 14:07:17 +01:00
Sipke Schoorstra daa10df6c3 Remove unused namespaces 2020-12-12 12:38:07 +01:00
Sipke Schoorstra b13a274c2f Add query methods to workflow instance manager 2020-12-12 12:37:57 +01:00
Sipke Schoorstra 2bc141a464 Wrap workflow definition store with workflow definition manager 2020-12-11 22:02:43 +01:00
Sipke Schoorstra a57816663d Wrap workflow instance store with workflow instance manager 2020-12-11 21:49:39 +01:00
Sipke Schoorstra e601747fae Renames and small tweaks 2020-12-11 21:35:22 +01:00
Sipke Schoorstra 70e7b98d7b Rename Repository to Store 2020-12-11 21:14:57 +01:00
Rafael Carnucci 3b35d9ff0a
Seperate YesSql (#504)
* Seperate YesSql and added InMemory, MongoDb

* Error fixed, if DatabaseInitializer is run through several times

* icon.png was not packed

* Added AddWorkflowProvider to AddElsaPersistenceMongoDb

* Wrong primary keys were used for MongoDb

* Refactorig MongoDb

* Register IMongoCollection<WorkflowDefinition> and IMongoCollection<WorkflowInstance> with DI

* Wrong Parameter Type in Constructor (MongoDbWorkflowInstanceRepository)

* Add workflowDefinition.WorkflowDefinitionId = _idGenerator.Generate(); to Initialize

* Removed duplicated code

* Correct wrong Commit

Co-authored-by: Rafael Carnucci <rafael.carnucci@icn.de>
Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
2020-12-11 21:03:49 +01:00
Sipke Schoorstra c9199bb335 Incremental work on dashboard + API 2020-12-10 22:08:53 +01:00
Sipke Schoorstra dac4610ac8 Incremental work on dashboard + API 2020-12-08 22:23:52 +01:00
Sipke Schoorstra 4c9fa9350b Incremental work on dashboard 2020-12-07 22:04:17 +01:00
Sipke Schoorstra 59076c8b1f Rename WorkflowInterruptor to WorkflowTriggerInterruptor 2020-12-06 13:25:11 +01:00
Sipke Schoorstra b3270d9b0a Add methods to query workflows by correlation ID 2020-12-06 13:24:48 +01:00
Sipke Schoorstra de535b3954 Fix workflow registration bug 2020-12-06 13:24:28 +01:00
Sipke Schoorstra c0084e9fef Fix bug in Inline activity method to propogate activity result to caller 2020-12-06 13:23:47 +01:00
Sipke Schoorstra 3868b04b65 Restructure signal activity folders 2020-12-06 13:23:00 +01:00
Sipke Schoorstra a21ba060d5 Add InterruptTrigger activity 2020-12-06 13:22:24 +01:00
Sipke Schoorstra be1ccea956 Add IfElse convenience extensions 2020-12-06 13:21:19 +01:00
Sipke Schoorstra 0171750eb1 Fix loss of workflow context ID 2020-12-05 11:15:55 +01:00
Sipke Schoorstra 245d6e9bbc Simplify queries thanks to fix in YesSQL 2020-12-04 12:23:45 +01:00