Craig Fowler
a7f8926698
WIP #761 - Experimental commit (no exception)
...
This is an experimental commit. It does stop the exception from
occurring, but it doesn't really fix the problem because now the
output is always empty-object.
It does prove that the exception was occurring because of the
usage of JsonConvert to serialize/deserialize the result.
The change made in this commit probably can't go into prod
but it is useful because it llustrates a part of the problem.
2021-04-01 20:25:09 +02:00
Sipke Schoorstra
aff01d104a
Rename Outcomes property that was hiding Outcomes member from base class
2021-03-23 14:51:53 +01:00
Sipke Schoorstra
63aef00415
Fix type cast issue when evaluating JS expressions with no specialized type
2021-03-19 12:21:04 +01:00
Sipke Schoorstra
0c15c94ea7
Telnyx Activities ( #768 )
...
* Fix liquid syntax for accessing activity output
* Initial scaffolding of Telnyx module + API changes
* Make Telnyx Notification activity blocking
* Implement Telnyx correlation
* Post workflow suspension tasks improvements
* Add Telnyx activities
* Add HangupCall and TransferCall activities
* Call activity improvements
2021-03-17 13:07:14 +01:00
Sipke Schoorstra
94d71c54f3
JavaScript engine type conversion improvements
2021-03-11 22:51:29 +01:00
Sipke Schoorstra
422203ac36
Change syntax to get activity output using JS
2021-03-11 22:50:18 +01:00
Sipke Schoorstra
0442e1e699
Refactor options provider with DI support
2021-03-10 20:23:21 +01:00
Sipke Schoorstra
5e665c9119
Add JS functions to get and set variables
2021-03-06 14:33:42 +01:00
Sipke Schoorstra
d7d7bd4a7e
Add RunJavaScript activity
2021-03-06 13:41:52 +01:00
Sipke Schoorstra
6eadac5736
Improve javascript engine
2021-03-04 17:45:59 +01:00
Sipke Schoorstra
9e31439802
Fix JavaScriptExpressionHandler string conversion
2021-03-04 17:45:59 +01:00
Sipke Schoorstra
a14f7cc267
Expressions editor ( #695 )
...
* A functioning monaco editor
* Incremental work on intellisense
* Add Workflow Context Options settings to designer
* Rudimentary work on variables
2021-03-02 09:00:51 +01:00
Sipke Schoorstra
2f29dc379c
Upgrade to .NET Standard 2.1
2021-01-31 18:44:57 +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
d41039b567
Rename extensions namespace
2020-12-18 11:35:29 +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
959dd8615b
Make available TransientState to JS and Liquid script contexts
2020-12-01 11:22:14 +01:00
Sipke Schoorstra
20e24fc572
Update packages
2020-11-23 21:01:30 +01:00
Sipke Schoorstra
def637b4ca
Update packages
2020-11-12 22:02:51 +01:00
Sipke Schoorstra
d31ef98bb1
Update to .NET 5 and update icon
2020-11-11 21:32:12 +01:00
Sipke Schoorstra
2934bfce72
Update icons
2020-11-11 21:26:24 +01:00
Sipke Schoorstra
3700bb2323
Update package projects
2020-10-29 09:30:43 +01:00
Sviataslau Hankovich
6551b61ead
Simplify Options, get rid of OptionsBuilder ( #431 )
...
* Minor cleanup
* Fix namespaces
* Simplify options
2020-10-27 12:32:53 +01:00
Sipke Schoorstra
16611e2a74
Undo my fix in favor of fix from Peter T. LaComb Jr
2020-10-25 21:54:15 +01:00
Sipke Schoorstra
a4c0c57d12
Initialize target type in case of array value and target type wasn't specified
2020-10-25 21:50:40 +01:00
Sviataslau Hankovich
afa99fa279
Minor cleanup ( #421 )
2020-10-25 21:37:15 +01:00
Sviataslau Hankovich
cfcbc3d762
Code cleanup ( #413 )
2020-10-22 15:59:59 +02:00
Peter T. LaComb Jr
8fb36ef6cf
Issue 415: Null target type throws for array expressions ( #416 )
2020-10-22 09:55:46 +02:00
Sipke Schoorstra
0c47a781d5
Update package descriptions and names
2020-10-18 17:42:34 +02:00
Sipke Schoorstra
f8662c5426
Implement workflow materializer
2020-10-17 16:45:20 +02:00
Sipke Schoorstra
7a7d032e9e
Remove unused namespaces
2020-10-11 14:33:56 +02:00
Sipke Schoorstra
7e45845a47
Introduce Workflow Instance Manager and Workflow Definition Manager
2020-10-11 14:33:18 +02:00
Sipke Schoorstra
1a85fc5f26
Implement in-memory provider
2020-10-10 21:10:09 +02:00
Sipke Schoorstra
e1f5b6a8a5
Implement YesSql
2020-10-10 17:13:52 +02:00
Sipke Schoorstra
899f12e35f
Cleanup and apply new field naming convention
2020-10-09 19:52:54 +02:00
Sipke Schoorstra
f44d7e12b9
Wrapping AutoMapper ( #309 )
...
* Wrapping AutoMapper
2020-05-15 12:08:02 +02:00
Sipke Schoorstra
c542a5a531
Merge branch 'develop' into feature/elsa-2.0
...
# Conflicts:
# src/activities/Elsa.Activities.ControlFlow/Activities/ForEach.cs
# src/core/Elsa.Abstractions/Extensions/WorkflowExtensions.cs
# src/core/Elsa.Abstractions/Models/WorkflowInstance.cs
# src/core/Elsa.Core/Expressions/LiteralEvaluator.cs
# src/dashboard/Elsa.Dashboard/Extensions/DashboardServiceCollectionExtensions.cs
# src/dashboard/Elsa.Dashboard/Theme/argon-dashboard/package-lock.json
# src/dashboard/Elsa.Dashboard/Theme/argon-dashboard/package.json
# src/persistence/Elsa.Persistence.DocumentDb/Extensions/ServiceConfigurationExtensions.cs
# src/persistence/Elsa.Persistence.EntityFrameworkCore/Extensions/EFCoreServiceCollectionExtensions.cs
# src/persistence/Elsa.Persistence.EntityFrameworkCore/Migrations/MySql/MySqlContextModelSnapshot.cs
# src/providers/Elsa.Persistence.EntityFrameworkCore/Migrations/MySql/20200402200706_Update01.Designer.cs
# src/providers/Elsa.Persistence.EntityFrameworkCore/Migrations/MySql/20200402200706_Update01.cs
# src/providers/Elsa.Persistence.EntityFrameworkCore/Migrations/PostgreSql/20200402200555_Update01.Designer.cs
# src/providers/Elsa.Persistence.EntityFrameworkCore/Migrations/PostgreSql/20200402200555_Update01.cs
# src/providers/Elsa.Persistence.EntityFrameworkCore/Migrations/SqlServer/20200402200549_Update01.Designer.cs
# src/providers/Elsa.Persistence.EntityFrameworkCore/Migrations/SqlServer/20200402200549_Update01.cs
# src/providers/Elsa.Persistence.EntityFrameworkCore/Migrations/Sqlite/20200402200519_Update01.Designer.cs
# src/providers/Elsa.Persistence.EntityFrameworkCore/Migrations/Sqlite/20200402200519_Update01.cs
# src/providers/Elsa.Persistence.EntityFrameworkCore/Migrations/Sqlite/SqliteContextModelSnapshot.cs
# src/samples/Sample24/Program.cs
# src/scripting/Elsa.Scripting.JavaScript/Services/JavaScriptHandler.cs
2020-04-17 20:34:39 +02:00
Sipke Schoorstra
8ec43230a7
Improve JS value converter to support object target type
2020-02-20 21:24:34 +01:00
Sipke Schoorstra
60bfb4e7b2
Added Graphql ( #246 )
...
* Added GraphQL using Hot Chocolate
2020-02-15 20:32:16 +01:00
Sipke Schoorstra
aefe630f42
Merge branch 'develop' into feature/elsa-2.0
...
# Conflicts:
# Samples.sln
# src/core/Elsa.Abstractions/Elsa.Abstractions.csproj
# src/core/Elsa.Core/Elsa.Core.csproj
# src/persistence/Elsa.Persistence.EntityFrameworkCore/Extensions/EFCoreServiceCollectionExtensions.cs
# src/providers/Elsa.Persistence.EntityFrameworkCore/Elsa.Persistence.EntityFrameworkCore.csproj
# src/providers/Elsa.Persistence.YesSql/DbContexts/DesignTimeDbContextFactoryBase.cs
# src/providers/Elsa.Persistence.YesSql/DbContexts/MySqlContext.cs
# src/providers/Elsa.Persistence.YesSql/DbContexts/MySqlContextFactory.cs
# src/providers/Elsa.Persistence.YesSql/Elsa.Persistence.YesSql.csproj
# src/providers/Elsa.Persistence.YesSql/Migrations/MySql/20200113102615_InitialCreate.Designer.cs
# src/providers/Elsa.Persistence.YesSql/Migrations/MySql/20200113102615_InitialCreate.cs
# src/providers/Elsa.Persistence.YesSql/Migrations/MySql/MySqlContextModelSnapshot.cs
# src/samples/Elsa.Samples.Timers/Elsa.Samples.Timers.csproj
# src/samples/Sample05/Program.cs
# src/samples/Sample08/Sample08.csproj
# src/samples/Sample08/Startup.cs
# src/samples/Sample14/Program.cs
# src/samples/Sample14/Sample14.csproj
# src/samples/Sample16/Sample16.csproj
# src/samples/Sample18/Program.cs
# src/samples/Sample18/Sample18.csproj
# src/samples/Sample19/Sample19.csproj
# src/samples/Sample19/Startup.cs
# src/samples/Sample21/Sample21.csproj
# src/samples/Sample21/Startup.cs
# src/samples/Sample22/Program.cs
# src/samples/Sample22/Sample22.csproj
# src/samples/Sample23/Program.cs
# src/samples/Sample23/Sample23.csproj
2020-01-16 21:23:45 +01:00
Sipke Schoorstra
7b94637386
Code-first improvements ( #223 )
...
* Refactor workflow model and scheduler
* Improve workflow builder API
2020-01-12 20:15:57 +01:00
Sipke Schoorstra
1338dc0a95
Container Activities ( #218 )
...
* Add support for child activities.
* Add type map feature.
* Update While, For and ForEach activities
2019-12-28 10:56:12 +01:00
Sipke Schoorstra
8092d166a5
Add native .NET code support + activity input/output ( #216 )
...
* Add code activity
* Refactor Workflow State to use Variables
* Update InstantEvent and SetVariable
* Update samples
* Add activity input/output
2019-12-23 21:43:11 +01:00
Sipke Schoorstra
853abf4e62
Merge branch 'develop' into feature/elsa-2.0
...
# Conflicts:
# Samples.sln
# Samples.sln.DotSettings
# src/samples/Sample04/Program.cs
2019-12-17 21:50:53 +01:00
Sipke Schoorstra
34a3872693
Remove LastResult, refactor activity output
2019-11-24 15:25:16 +01:00
James Doran
7356bf10c8
Moved JavaScript DI extension method namespace ( #179 ) ( #196 )
2019-11-23 08:21:20 +01:00
Sipke Schoorstra
baef007e2b
Incremental work on GraphQL
2019-11-22 23:07:31 +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
Peter Davis
e05192086e
Scheduled MassTransit message delivery ( #175 )
...
Creating a sample workflow with scheduled message delivery
* Add MassTransit quartz job factory
* Add cancel schedule message activity
* Correlate MassTransit messages to workflow based on message properties
* Add cart expired and submitted workflow steps
* Add message schedule options configuration
* Code cleanup
* Update launch settings
* Cleanup send and publish activities
* Add scheduled time expression property
2019-11-21 08:14:01 +01:00
James Doran
6714308558
JavaScriptExpresionEvaluator now takes into account the target type when performing conversion ( #185 )
2019-11-19 08:42:28 +01:00
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
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
Sipke Schoorstra
d1f7ce47b7
EF Core Provider rewrite ( #165 )
...
* Fixed EF provider
Fixes #144 , #145
2019-11-16 14:06:53 +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
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
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
e162391c30
Update package descriptions and renamed some activities
2019-10-27 17:31:50 +01:00
Sipke Schoorstra
bacb25a286
Update project details
2019-10-27 16:18:16 +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