Commit graph

256 commits

Author SHA1 Message Date
Peter Davis bbfbba53ce Fix issue with property expressions throwing invalid cast exceptions (#173)
Expression was returning the JValue of the property and was unable to convert to a string.
2019-11-18 08:07:33 +01:00
Peter Davis dad6c254f5 Add a function to allow creating GUID values from JS expressions (#172) 2019-11-18 08:04:48 +01:00
Peter Davis 28763c8b2f Fix issue with receive MassTransit message input variable use (#171) 2019-11-18 08:03:35 +01:00
Peter Davis cdb2c655f6 Fix issue with last result not returning underlying variable value (#170) 2019-11-18 08:02:33 +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
Peter Davis a7a192cb53 Fix response message workflow instance correlation (#163)
* Add correlation id to workflow  response message

* Return message not correlating because of mismatching string formats
2019-11-16 08:29:05 +01:00
Andale-online e3054b46c8 Changed Variables.cs to full IDictionary (#161) 2019-11-15 22:27:23 +01:00
Andale-online 11d73ddeea Reflection/SplitObject/Bugfix (#162) 2019-11-15 21:52:57 +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
Peter Davis 23183583c6 Add ability to specify MassTransit message endpoint URI (#157)
If you wanted to message a particular service, then you will need to know the queue URI for that service to send the message to.
2019-11-15 10:27:56 +01:00
Peter Davis 4b20841ea7 MassTransit Fixes (#148)
* Fix issue #134 where consumer could not be created

* Fix issue where message was null in ReceiveMassTransitMessage

input variables are case sensitive

* Add simple test script to execute the workflow

* Add message type as input from consumer

* Allow passwords to be specified in amqp URI
2019-11-15 10:19:20 +01:00
Andale-online cccf5c831d Added else to switch (#149)
Closes #136
2019-11-14 10:06:02 +01:00
Sipke Schoorstra 3ea596cdba
Merge pull request #146 from Andale-biz/Feature_Reflection_Activities 2019-11-12 23:13:41 +01:00
Stephan Baltzer 2f9b6cae5d Elsa.Activities.Reflection 2019-11-12 18:47:44 +01:00
Sipke Schoorstra a6329d1bd5 Minor cleanup 2019-11-09 13:57:00 +01:00
Sipke Schoorstra f51985e470 Add StackOverflow badge to README 2019-11-09 13:56:48 +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 7e9bd1b4b1 Add Gitter Chat badge to README 2019-11-06 21:36:38 +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
James Doran 6e352ebed3 Fixed issue where named activities couldn't be used with Then() (#129) 2019-11-05 01:18:02 +01:00
Sipke Schoorstra dbb063eeb8
Add min height to table views (#127)
Fixes #122
2019-11-04 17:31:24 +01:00
Sipke Schoorstra 7568863477
Add CreatedAt column (#126)
Fixes #125
2019-11-04 17:00:35 +01:00
Sipke Schoorstra a3c9af1d47
Fix version query issue (#121) 2019-11-03 17:19:00 +01:00
Sipke Schoorstra ab514ede04 Fix a serialization/casting issue in WorkflowExecutionContext.SetLastResult 2019-11-03 17:05:16 +01:00
Sipke Schoorstra 3fd0cb5270
Refactor Variable serialization to convert to JValue (#120)
This removes the confusion where a specific object will retain its type when serialized, which is not the case.
2019-11-03 14:33:34 +01:00
Sipke Schoorstra 75839a0ddb Fix DI bug in SignalRequestHandler 2019-11-01 14:16:59 +01:00
Sipke Schoorstra 57f116c239
Fix object disposed bug (#116)
* Refactor buggy SignalRequestHandler

For some reason, the following code is problematic:

await DecryptToken()
                .BindAsync(GetWorkflowInstanceAsync)
                .BindAsync(CheckIfExecutingAsync)
                .MapAsync(ResumeWorkflowAsync);

Basically, any lambda in the BindAsync and MapAsync could execute even after the containing method returned

* Implement better message handler registration without adding multiple IMediator services

* Abstracted Mediator service registration methods.
* Add Liquid support for JObject.
2019-10-31 21:31:18 +01:00
Sipke Schoorstra 48777d8eb3 Remove overload 2019-10-29 14:08:42 +01:00
Sipke Schoorstra ff1b203139 Update README and Sample16/Startup 2019-10-28 18:50:18 +01:00
Sipke Schoorstra e162391c30 Update package descriptions and renamed some activities 2019-10-27 17:31:50 +01:00
Sipke Schoorstra 38a4901896 Update project details 2019-10-27 16:21:48 +01:00
Sipke Schoorstra bacb25a286 Update project details 2019-10-27 16:18:16 +01:00
Sipke Schoorstra 807a7477a3 Update README 2019-10-27 16:14:39 +01:00
Sipke Schoorstra 943398bcb2 Fix merge issues 2019-10-27 16:08:18 +01:00
Sipke Schoorstra bc04b00196 Merge branch 'develop'
# Conflicts:
#	Samples.sln
#	src/activities/Elsa.Activities.Timers/Elsa.Activities.Timers.csproj
#	src/core/Elsa.Abstractions/Services/IActivityBuilder.cs
#	src/core/Elsa.Core/Elsa.Core.csproj
#	src/core/Elsa.Core/WorkflowBuilders/ActivityBuilder.cs
#	src/samples/Sample17/Activities/CreatePerson.cs
#	src/samples/Sample17/CreatePersonWorkflow.cs
#	src/samples/Sample17/Program.cs
#	src/samples/Sample17/Sample17.csproj
2019-10-27 16:05:55 +01:00
Sipke Schoorstra 14f1a06fe5 Update README 2019-10-27 16:02:21 +01:00
Sipke Schoorstra d5d16325f4 Update README 2019-10-27 16:01:37 +01:00
Sipke Schoorstra cd82577511 Add Roadmap to README 2019-10-27 15:54:41 +01:00
Sipke Schoorstra aef8741d84
Add Liquid expressions (#111)
* Reorganize projects

* Implement Liquid expression evaluator

* Refactor activity references to use `Name`
2019-10-27 15:38:37 +01:00
Sipke Schoorstra cb25239fd1
Add While activity (#110)
* Implement While activity

* Variable scope bug fixes

* Merge designer attributes with activity definition

* Update package references
2019-10-26 12:46:20 +02:00
Sipke Schoorstra 06412c0cc0
Add support for custom title and description (#109) 2019-10-25 18:39:54 +02:00
Sipke Schoorstra 99ee3cacce Downgrade dependencies 2019-10-25 17:55:39 +02:00
Sipke Schoorstra d7fc571cdd
RC3 (#108)
* Add activity output example

* Update Sample17

* Extend SMTP options (#107)

* Remove unused imports

* Update Elsa.Scrutor package reference
2019-10-24 23:36:07 +02:00