Commit graph

157 commits

Author SHA1 Message Date
steved 3c63108dd1
2 bug fixes: (#633)
376
Self-referential loop in CustomSchemaOptionsExtensionInfo
https://github.com/elsa-workflows/elsa-core/issues/376

331
"Input" is the property of workflowinstance,but it is empty in database
https://github.com/elsa-workflows/elsa-core/issues/331

Co-authored-by: DiGregorio, Stephen <SDiGregorio@allegromicro.com>
2021-02-15 18:06:43 +01:00
Bartlomiej Tadych d5b30b6044
Add Executing Activity event (#586) 2021-01-25 12:16:29 +01:00
Peter T. LaComb Jr 99aeac3263
Issue 498: Allow for and pass innerException (#499) 2020-12-08 21:14:32 +01:00
cvijayak 7ceb3106aa
Added ExceptionConverter in JsonSerializerSettings at DocumentClient (#472) 2020-11-24 20:44:28 +01:00
Sipke Schoorstra 20e24fc572 Update packages 2020-11-23 21:01:30 +01:00
cvijayak 8f6ce4ed7e
Fix : ListByBlockingActivityAsync() in documentDB persistance layer is not retrieving the blocked activities (#471) 2020-11-23 19:22:14 +01:00
Sipke Schoorstra 2934bfce72 Update icons 2020-11-11 21:26:24 +01:00
Sipke Schoorstra 06b9ab8911 Trigger ActivityExecuted event after going back one activity. 2020-11-07 21:58:12 +01:00
Sipke Schoorstra 2deb5d4037
Add GoBackResult (#449) 2020-11-03 12:43:33 +01:00
Sipke Schoorstra ed9fedda84
Update package references (#436) 2020-10-28 10:16:54 +01:00
Sipke Schoorstra d9a3c9ca96
Propagate activity definition properties (#434) 2020-10-27 21:06:05 +01:00
Sipke Schoorstra d5095f7a69
Remove multiple execution scopes (#427) 2020-10-26 15:32:02 +01:00
syntaxonline-rewhitley d0d6e26a43
Add custom type serializer to manage json deserializer from database (#420) 2020-10-23 15:23:32 +02:00
Sviataslau Hankovich cfcbc3d762
Code cleanup (#413) 2020-10-22 15:59:59 +02:00
Sipke Schoorstra 901b7e5291 Merge tag '1.3.1' into develop 2020-10-16 13:39:49 +02:00
Sipke Schoorstra dd823398f5 Fix workflow resumption when activity ids are not explicitly specified 2020-10-16 13:20:26 +02:00
syntaxonline-rewhitley 2ac2aa4fdb
Force json lookup to use lowercase name when value is assigned to both values (#400) 2020-10-11 14:31:23 +02:00
lmartinjr bab3fa7f7b
Since the State property is serialized JSON the getter and setter needs to look for the key lowercased. This allows the property to be set with the name and have the Name property persisted in the datastore (i.e. EF). (#395) 2020-10-05 08:32:08 +02:00
Samuele Furnari 98e2ef1720
Fix for bug #341 and fix designer toolbar alignment (#392)
* fix #341 - Two Name properties

* fix style of designer toolbar (add activity, options, ...)

Co-authored-by: Samuele Alfredo Furnari <SamueleAlfredo.Furnari@nttdata.com>
2020-10-05 08:31:12 +02:00
aburada 3f153c0f13
Add Exception property to WorkflowFault (#283) 2020-05-15 20:04:09 +02:00
Sipke Schoorstra f44d7e12b9
Wrapping AutoMapper (#309)
* Wrapping AutoMapper
2020-05-15 12:08:02 +02:00
Sipke Schoorstra c186a490af Fix AutoMapper issue
Due to a bug with registering AutoMapper profiles, only the first mapping profile would get registered.
Also merged AutoMapper utilities into Elsa.Core.
2020-04-13 12:01:50 +02:00
Sipke Schoorstra f3f5b2d931
Fix missing mapping issues (#279) 2020-04-02 22:11:13 +02:00
Yuhang Ji a9a4f78459
Resolve https://github.com/elsa-workflows/elsa-core/issues/250 (#251) 2020-02-20 10:30:30 +01:00
James Doran 0e9cd54c2e
Fixed stackoverflow when finding ancestors (#247) 2020-02-17 18:06:40 +10:30
Sipke Schoorstra 48be0e8a87
Always add startup runner hosted service (#238) 2020-01-18 11:59:47 +01:00
Sipke Schoorstra 16e91e0de1
Replace TaskExecutingServer with StartupRunnerHostedService (#237)
This solves an issue where the Dashboard site would not be able to run in IIS, due to an IIS filter that expects a IISServer instance, while it was being decorated with a custom type.

Fortunately, as of .NET Core 3, background hosted services now execute before the server starts, which makes them perfect for async initialization.
2020-01-18 11:04:53 +01:00
James Doran 434754e466 Fixed yaml serialisation and updated to YamlDotNet (#236)
* Fixed Yaml serialisation/deserialisation

Copied json serializer settings from JsonTokenFormatter, apart from CamelCasePropertyNamesContractResolver, as the yaml already had the correct case, and this would cause activity state (which has PascalCasing) to be camelCased too

* Updated YamlDotNet.Standard to YamlDotNet

Switched package as YamlDotNet.Standard has been unlisted on Nuget
2020-01-16 08:31:19 +01:00
Sipke Schoorstra e46f59d30e
Update packages (#233) 2020-01-15 22:39:47 +01:00
James Doran 7aa9f0510f
Fixed Serialization for Objects (#220)
Registered ObjectHandler in TypeNameHandlingConverter
Passed through object type in IValueHandler.Serialize to be written as TypeName
2020-01-06 19:32:25 +10:30
Sipke Schoorstra 80ad40824e
Fix broken date/time/nodatime serialization (#214)
Added extensible support for specialized primitive handling such as
DateTime and NodaTime primitives.

This fixes the issue where a Variable is serialized using a primitive's
string representation and losing the target type, which is needed for
reconstructing the type upon deserialization.
2019-12-21 10:05:10 +01:00
Sipke Schoorstra 57a8693c21
Explicit EF identity specification + DateTime serialization issue (#212)
* Explicitly specify identity for Id columns

This fixes an issue where EF Core 2.2 does not set Identity = Yes when
defining the Id columns.

* Fix DateTime serialization issue

This change fixes an issue by taking over the serialization of a DateTime value.
The problem with serializing a DateTime value as-is is that upon deserialization, the JToken type would be set as String instead of Date.
This is because NodaTime disables automatic date time handling for Instant types.
However that causes an issue when trying to serialize and deserialize DateTime values.

This change explicitly tests for DateTime values and handles it appropriately.
A future improvement might be to make this TypeNameHandlingConverter class extensible by implementing a provider-based model,
enabling developers to take control over how certain types are serialized.
2019-12-19 17:07:23 +01:00
James Doran 205487425a
Variable fixes (#211)
* GetVariable<T> now uses Convert.ChangeType

Fixes issue where saving an Int32, serialising and deserialising, then accessing with GetVariable<int>(...) no longer causes type cast exception.
The saved value is a JValue which treats Int32 as Int64. Convert.ChangeType has a better chance of performing conversion without error.
Also returns default of T if the variable isn't found.

* Added SetVariable overload in Variables

To prevent double-wrapping objects in more than 1 Variable object
2019-12-13 17:51:01 +10:30
Sipke Schoorstra 61c9ac48c7 Update packages 2019-12-10 15:46:49 +01:00
Sipke Schoorstra ac3ea9573f Add icons to packages 2019-11-22 17:34:55 +01:00
James Doran e805a74ad7 Moved WithJavaScriptOptions extension method into Elsa.Scripting.JavaScript project (#179) 2019-11-22 08:37:06 +10:30
James Doran 9556b80016 Add script options configuration (#179) 2019-11-21 21:09:58 +10:30
Sipke Schoorstra b545fd2aea
Add Dockerfile and docker-compose (#186)
Fixes #142
2019-11-19 19:25:56 +01:00
Sipke Schoorstra b0a5962f4a Fix variable serialization issues 2019-11-17 22:48:17 +01:00
Sipke Schoorstra 21f770bc48
Refactorings and fixes (#168)
* Variables are now stored including their type name for automatic deserialization into their actual type. This is important for use in expressions.
* **SplitObject** and **ExecuteMethod** now use workflow expressions instead of variable names. This allows for more flexibility.
* Improved **Join** activity to allow proper function within looping constructs.
* Improved Variables performance. Variables are no longer serialized/deserialized upon writing/reading perspectively, only when the workflow instance is persisted.
2019-11-17 20:43:16 +01:00
Andale-online 47e0795b66 Feature variables v2.01 with bugfix (#164)
* Changed Variables.cs to full IDictionary
with ConcurrentDictionary<string, object> backing

* Bugfix for long running flows
2019-11-16 15:30:04 +01:00
Sipke Schoorstra d1f7ce47b7
EF Core Provider rewrite (#165)
* Fixed EF provider

Fixes #144 , #145
2019-11-16 14:06:53 +01:00
Andale-online e3054b46c8 Changed Variables.cs to full IDictionary (#161) 2019-11-15 22:27:23 +01:00
Andale-online 58d7bc654a GetVariable(string name, Type type) (#155)
* GetVariable(string name, Type type)
2019-11-15 10:37:01 +01:00
Peter Davis 13b51f3e7c Message correlation (#158)
* Correlate messages to workflow instances

Looks like it is really important to correlate masstransit messages to workflow instances. I have updated the demo to show this as I ran a few in parallel and several errors were occurring.

* Use concurrent dictionary for memory instance store
2019-11-15 10:29:04 +01:00
James Doran 0dfa8857d8 #137 WorkflowExpressionEvaluator updated to throw WorkflowException if exception while evaluating expressions (#138)
Fixes #137
2019-11-08 11:59:32 +01:00
James Doran 0d6bae822a #135 Finding next activity based on outcome is no longer case-sensitive (#139) 2019-11-08 11:45:21 +01:00
Sipke Schoorstra 94fa8d2281 Merge branch 'master' into develop 2019-11-06 21:11:56 +01:00
Sipke Schoorstra f9af5e71d6
Improve expression evaluation (#133)
* Add test case for object-to-string target type

* Add exception handling
2019-11-06 21:11:16 +01:00
James Doran 7d4d0f919e Fixed bug where multiple activity registrations of the same type would cause duplicate key exception (#128)
* Fixed issue in ActivityResolver where multiple registrations of the same workflow type would cause dup key exception

* Updated Sample12 to remove AddUserTaskActivities() call, as this is now done in AddElsa()
2019-11-05 01:19:20 +01:00