elsa-core/src/modules/Elsa.Workflows.Core/Services
Sipke Schoorstra e09f096ef9
Adds activity execution metadata support (#6699)
* Add logging to DefaultActivityExecutionMapper constructor

Introduced an ILogger dependency to DefaultActivityExecutionMapper and added a debug log statement in GetPersistableDictionary. This aids in tracking log persistence mode for improved debugging and state visibility.

* Simplify activity execution log mapping logic.

Replaced asynchronous mapping with synchronous mapping to simplify the logic flow. This change reduces task overhead and improves code clarity while maintaining functionality.

* Update activity execution mapping and comment out unused method

Replaced direct dictionary usage with a cloned dictionary to ensure data integrity in `DefaultActivityExecutionMapper`. Commented out an unused method in `ActivityExecutionExtensions` to suppress its execution for now.

* Add logging to ActivityExecutionLogStore for property tracking

Integrate ILogger to track and log details of activity execution records, specifically focusing on properties and their serialization. This enhancement improves debugging and provides better insights into the execution flow.

* Introduce Metadata field for activity execution handling

Replaces the use of Properties with Metadata across activity execution models and services for storing lightweight, persistent data. Updated serialization, database schema, and relevant APIs to support this change while ensuring backward compatibility. Adjusted logging and extension methods for Metadata integration.

* Reset V3.5 Runtime Migrations

* Add EF Core migrations for MySQL and SQL Server schema updates

Introduced migrations to support schema changes for MySQL and SQL Server. Changes include new columns for bookmarks and activity execution records, updates to existing columns, and creation of additional indexes. These updates aim to enhance database structure and query performance.

* Add support for metadata in workflow execution context

Introduce a `Metadata` property to `ActivityExecutionContextState` to enhance workflow state management. Updated `WorkflowStateExtractor` to handle metadata merging and preservation. Added an alias for `RetryAttemptRecordList` in `ExpressionOptions` for improved type handling.

* Remove logger dependency from DefaultActivityExecutionMapper

Eliminated the ILogger dependency and related logging calls from DefaultActivityExecutionMapper to simplify the class. This reduces unnecessary coupling and streamlines the activity execution mapping process.
2025-05-30 15:37:57 +02:00
..
ActivityDescriber.cs Add IResilienceStrategy Abstraction with Category Matching and Expression-Based Configuration (#6637) 2025-05-12 10:09:04 +02:00
ActivityFactory.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
ActivityInvoker.cs Refactor activity context management and state handling. 2025-01-28 20:24:53 +01:00
ActivityLoggerStateGenerator.cs Refactor to use target-typed object creation 2025-01-09 10:27:55 +01:00
ActivityRegistry.cs #6400 Add ClearProvider again to ActivityRegistry 2025-03-14 09:49:52 +01:00
ActivityRegistryLookupService.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
ActivitySchedulerFactory.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
ActivityVisitor.cs Refactor workflow context and execution handling. 2025-01-20 17:44:31 +01:00
DefaultActivityStateFilterManager.cs Implement Activity State Filtering and JavaScript Integration (#5993) 2024-10-02 09:11:35 +02:00
DefaultIncidentStrategyResolver.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
DefaultWorkflowInstanceVariableReader.cs Updated to allow string tags 2024-12-11 16:45:23 +02:00
DefaultWorkflowInstanceVariableWriter.cs Add services and API endpoints to read and write workflow instance variables (#6107) 2024-11-09 17:42:08 +01:00
Delegates.cs Add Bookmark Queue and Restore Background Activity Execution (#5758) 2024-07-15 22:37:14 +02:00
GuidIdentityGenerator.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
Hasher.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
IdentityGraphService.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
MemoryStorageDriver.cs Updated to allow string tags 2024-12-11 16:45:23 +02:00
NoopCommitStateHandler.cs Refactor commit state handling with a strategy-based approach 2025-01-30 11:59:47 +01:00
PropertyDefaultValueResolver.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
PropertyOptionsResolver.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
PropertyUIHandlerResolver.cs Refactor UI handler hierarchy and remove sample workflows. 2025-05-26 20:06:39 +02:00
QueueBasedActivityScheduler.cs Refactor workflow context and execution handling. 2025-01-20 17:44:31 +01:00
RandomLongIdentityGenerator.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
ShortGuidIdentityGenerator.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
StackBasedActivityScheduler.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
StandardInStreamProvider.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
StandardOutStreamProvider.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
StimulusHasher.cs Support for Writing Custom Trigger Activities Using Existing Trigger Infrastructure (#6527) 2025-03-21 23:16:56 +01:00
StorageDriverManager.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
VariableMapper.cs Refactor variable mapping and improve type alias handling 2025-01-15 10:50:34 +01:00
VariablePersistenceManager.cs Enhanced Delete of variable persistence manager to allow drivers filtering with tags (#6558) (#6559) 2025-04-04 11:52:58 +02:00
WorkflowGraphBuilder.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
WorkflowLoggerStateGenerator.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
WorkflowRunner.cs Add support for activity output testing (#6529) 2025-03-31 18:10:59 +02:00
WorkflowStateExtractor.cs Adds activity execution metadata support (#6699) 2025-05-30 15:37:57 +02:00