* Add log persistence configuration and strategy evaluation Introduced `LogPersistenceConfiguration` to support dynamic strategy and expression-based log persistence evaluations. Updated `Default default values. * Add LogPersistenceConfiguration and enum support Introduced LogPersistenceConfiguration class and LogPersistenceEvaluationMode enum in both Elsa.Api.Client and Elsa.Workflows.Runtime. Updated JavaScript services to handle enums correctly and register LogPersistenceMode. * Rename log persistence key for consistency Updated the log persistence key from `LogPersistenceStrategyKey` to `LogPersistenceConfigKey` to maintain consistency across the codebase. This change ensures that property access aligns with the updated naming conventions used in the application's configuration. * Reuse JSON serializer options * Update log persistence config structure in comments This commit revises the JSON example in code comments to reflect the updated structure of the log persistence configuration. The changes include updated evaluation modes and strategy types for default, inputs, and outputs sections. These modifications aim to enhance clarity and provide accurate documentation of the expected configuration format.
10 lines
274 B
C#
10 lines
274 B
C#
using Elsa.Expressions.Models;
|
|
|
|
namespace Elsa.Workflows.Runtime;
|
|
|
|
public class LogPersistenceConfiguration
|
|
{
|
|
public LogPersistenceEvaluationMode EvaluationMode { get; set; }
|
|
public string? StrategyType { get; set; }
|
|
public Expression? Expression { get; set; }
|
|
} |