When deserialization dails due to the target type not being deserializable, return a JsonObject instead. This enable e.g. ActivityExecutionLogRecord to store JSON information for ActivityState, which does not need to be reconstructed into the original type. An improvement could be considered to store activity execution log record activity state in a non-polymorphic structure in the first place.
* Initial implementation of workflow inbox, submission and delivery
* Implement persistence providers
* Update EF Core migrations
* Rename Services to Stores in Dapper module
* Use default serializer for primitive arrays
* Update MongoDB provider to map BookmarkId to be primary key
* Implement MongoDB provider for activity execution logs
* Use EF Core by default
* Fix private JSON constructor logic
* Implemented MongoDb
* Use main entity models in mongodb
* Fixed object serialization issue
* Fixed issues caused by duplicate collection names
* Optimized count query
* Fixed the issues after merge
* Revert "Fixed the issues after merge"
This reverts commit 5568af60cfc107b8ee68fd4c89fbb02946f8a6a3.
* Use expression helper to solve mongodb query issue
* Handle null values during deserialization
* Moved MongoDb project to persistence folder
* Did some refactor and added type serializer for variable fix
* Modularize mongodb indices creation
* Fixed the build
* Implement variable serializer
* Update SQLite migrations
---------
Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
* Update activity names and descriptions
* Rename JS functions
* Make endpoint class internal
* Pre-create workflow instance ID when dispatching workflows
* Incremental work on context activity
* Add extensions to get and set context params
* Update polymorphic converter to handle objects serialized to primitives
* Add convenience factory methods for SetWorkflowContextParameter activity
* Add API endpoint to list available provider types
* Implement workflow context provider selection property panel
* Update context provider picker to be based on selected providers
* Make SendEmail support different types of input for To, Cc and Bcc fields
* Fix EF Core WorkflowDefinitionStore to use polymorphic serialization for metadata
* Add JS support for getting workflow contexts
* Add Installed Features endpoint
* Update polymorphic object converter to skip start array
* Update activity execution middleware to handle background execution
* Fix sample program to include activity middleware for contexts
* Comments and cleanup
* Incremental work on WorkflowStateSerializer
* Update Flow HTTP Request activity to default to Done outcome
* Fix reference handling
* Fix polymorphic object converter
* Add comments
* Add support for registering type alias during DI setup via options
* Fix trigger and bookmark payload persistence
* Update sample model
* Add support for custom dictionary types
* Split general serializer options provider into focused serializer services
* Formatting
* Update migrations
* Implemented Id property for variable for memory reference
* Removed debugger
* Fixed the issue with memory block reference of variable
* Fixed infinite recursive calling issue
* Handle variables with ID already containing
* Update JS variable getters based on declared variables
* Prevent Export from including composite roots
* Update JS evaluator with support for reading and writing variables in scope
* Fix polymorphic converter with support for arrays
---------
Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
* Incremental work
* Enable control over when to include full compositie root
* Cleanup
* Update WorkflowDefinitionActivity
* Implement input as variables
* Delete unused class
* Remove less common types
* Rename ExpandoObject to JSON
* Implement variable scoping
* Remove parent/child relationship from MemoryRegister
* Add support for sending input to "trigger event" endpoint
* Add support for configuring input storage driver
* Remove unused namespace imports
* Auto-register activity types when running a workflow
* Fix missing variables from containers
* Incremental fixes
* Fix base assignment of async delegate block reference
* Reuse existing memory blocks
* Remove PlaybackStarted child activity
The PlaybackStarted property is unnecessary, since the PlayAudio activity already completes right after playback has started.
* Add GetCallStatus API method
* Prevent variables on composite activities to be overwritten during deserialization
* Remove unnecessary variable declarations
Activity variables will be declared automatically during activity invocation.
* Add XML comments
* Remove unused references arg
* Streamline variable identity assignment
* Fix composite early exit completion
* Move identity assignment to workflow definition service
* Stash
* Incremental work on persistent variables
* Move variable management to central service
* Implement variable cleanup upon composite activity completion