Commit graph

724 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 1c006e3081 Incremental work on deleting workflow definitions 2020-12-27 21:53:27 +01:00
Sipke Schoorstra 7cbfa2d4f1 Implement delete activity 2020-12-27 21:45:24 +01:00
Sipke Schoorstra c6d68875c1 Implement workflow settings 2020-12-27 21:02:14 +01:00
Sipke Schoorstra 5f08df0556 Add Dashboard samples: monolith + client/server 2020-12-27 11:53:52 +01:00
Sipke Schoorstra d04cd93536 Add support for overriding display name and description 2020-12-26 21:55:02 +01:00
Sipke Schoorstra 42bcade5fc Add missing project 2020-12-26 16:01:49 +01:00
Sipke Schoorstra 8dc86a6fa2 Fix broken workflow runner 2020-12-26 15:46:50 +01:00
Sipke Schoorstra a8dfebbfe5 Fix YesSQL migration 2020-12-26 15:33:03 +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
Sipke Schoorstra 1bf53fb59a
Elsa 2.0/workflow editor (#541)
* Fix connection model porperty names

* Add workflow instance name to index

* Enable sample workflows

* Incremental work on activity displays

* Add custom activity display support

* Optimize workflow registry list endpoint model
2020-12-25 22:00:25 +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 79b5b89505
Fix MongoDb (#540) 2020-12-25 21:16:55 +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 a1c1ee9ce0 Add sample workflow with IfElse activity 2020-12-24 21:39:27 +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 b74f97b115 Add helpful string overrides 2020-12-24 21:37:02 +01:00
Sipke Schoorstra 8a4fae6f38 Fix Timer ExecuteAt persistence (for Trigger)
Without ExecuteAt receiving a value (even if it lies in the past), the TimerTriggerProvider will keep triggering workflows containing a Timer.
2020-12-24 21:36:42 +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 e154f5381a Fix build after merge (attempt 2) 2020-12-23 12:52:06 +01:00
Sipke Schoorstra b24ff99354 Fix build after merge 2020-12-23 12:50:34 +01:00
Rafael Carnucci 4274996dd9
Separate quartz (#516)
* Fix sample Elsa.Samples.FileBasedWorkflow

* Separate Quartz from Elsa.Activities.Timers

* Incremental work on Hangfire integration

* Incremental work on Hangfire integration

* Incremental work on Hangfire integration

* Incremental work on Hangfire integration

* Add CancelTimer

* ToCronExpression for Duration

* Removed SweepInterval

* Synchronize access to scheduler

* Refactoring RunHangfireWorkflowJob

* Optimize timer activities to always execute when target time stamp lies in past

* Refactoring TimersOptionsExtensions

* Added common.props and configureawait.props

* Rename CancelTimer to ClearTimer

* Wrong parameter name in comment

* Refactoring TimerConsts and RunQuartzWorkflowJob

Co-authored-by: Rafael Carnucci <rafael.carnucci@icn.de>
Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
2020-12-23 12:38:09 +01:00
Sipke Schoorstra 3776b651c3 Make WorkflowExecutionLogRecordDocument properties writable 2020-12-21 17:33:18 +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 ee89331b91 Handle ServiceBusCommunicationException 2020-12-21 14:21:19 +01:00
Sipke Schoorstra cc91da842c Remove test line 2020-12-21 13:55:53 +01:00
Sipke Schoorstra 740337bd1e Handle workflow exceptions 2020-12-21 13:55:41 +01:00
Sipke Schoorstra 1542576c98 Decrease log level for MessageLockLostException 2020-12-21 13:55:13 +01:00
Sipke Schoorstra 913241732a Fix locking in MessageSenderFactory 2020-12-21 13:54:44 +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 f5f9c070ca Optimize timer activities to always execute when target time stamp lies in past 2020-12-20 20:22:03 +01:00
Sipke Schoorstra 8078e7bccc Disable tests due to removed ExecutionLog 2020-12-20 20:20:36 +01:00
Sipke Schoorstra 96bb88b474 Disable execution log 2020-12-20 20:05:09 +01:00
Sipke Schoorstra 8e7ade1ac4 Synchronize access to scheduler 2020-12-20 20:04:19 +01:00
Sipke Schoorstra 0cf5032aa0 Update YesSql type mapping 2020-12-20 14:38:02 +01:00
Sipke Schoorstra 3cf821e052 Use default primary keys 2020-12-20 14:37:46 +01:00
Sipke Schoorstra 345fbb894a Remove unused types 2020-12-20 14:37:16 +01:00
Sipke Schoorstra a1c042ea61 Handle WorkflowInstanceIdSpecification explicitly 2020-12-20 13:42:21 +01:00
Sipke Schoorstra 5dcb1e6fd2 Fix expression conversion 2020-12-20 13:41:53 +01:00
Sipke Schoorstra 1a57e3eae0 Update yessql migration with missing table 2020-12-20 13:41:22 +01:00
Sipke Schoorstra 8759dc8789 Merge branch 'feature/elsa-2.0' of https://github.com/elsa-workflows/elsa-core into feature/elsa-2.0 2020-12-20 12:12:54 +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 1463e9b3cb Update Fluid.Core package 2020-12-19 20:33:32 +01:00
Sipke Schoorstra b3f726b85b Fix pager buttons 2020-12-19 16:15:01 +01:00
Sipke Schoorstra c047d66942 Update packages 2020-12-19 15:35:11 +01:00