Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Version.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<RadMajor>1</RadMajor>
<RadMinor>1</RadMinor>
<RadPatch>1</RadPatch>
<RadBuild>1385</RadBuild>
<PackageVersionShort>1.1.1</PackageVersionShort>
<PackageVersionFull>1.1.1+1385.220515020318.release.39f4e48</PackageVersionFull>
<GitCommit>39f4e48</GitCommit>
<GitBranch>release</GitBranch>
<RadBuild>1394</RadBuild>
<PackageVersionShort>1.1.1-dev.1394.221214120330</PackageVersionShort>
<PackageVersionFull>1.1.1-dev.1394.221214120330+72.dynamic-expresso-options.9c849a7-dirty</PackageVersionFull>
<GitCommit>9c849a7-dirty</GitCommit>
<GitBranch>dynamic-expresso-options</GitBranch>
</PropertyGroup>
</Project>
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [1.2.0] - 2022-12-14 ##

### Added ###
DmnExecutionContextOptions now supports external configurations to initialize dynamic expresso interpreter options.

## [1.1.1] - 2022-05-15 ##

### Fixed ###
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public virtual object EvalExpression(string expression, Type outputType, string
throw Logger.Fatal<ArgumentException>($"{nameof(expression)} is null or empty");
if (outputType == null) throw Logger.Fatal<ArgumentNullException>($"{nameof(outputType)} is null");

var interpreter = new Interpreter();
var interpreter = new Interpreter(Options.InterpreterOptions);
ConfigureInterpreter(interpreter);

var parameters = new List<Parameter>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace net.adamec.lib.common.dmn.engine.engine.execution.context
using DynamicExpresso;

namespace net.adamec.lib.common.dmn.engine.engine.execution.context
{
/// <summary>
/// Execution configuration options
Expand All @@ -25,5 +27,10 @@ public class DmnExecutionContextOptions : IDmnExecutionContextOptions
/// Scope of the parsed expression cache (Cache parsed expressions for definition cross contexts by default)
/// </summary>
public ParsedExpressionCacheScopeEnum ParsedExpressionCacheScope { get; set; } = ParsedExpressionCacheScopeEnum.Definition;

/// <summary>
/// Scope of the dynamic expresso interpreter (InterpreterOptions.Default option by default)
/// </summary>
public InterpreterOptions InterpreterOptions { get; set; } = InterpreterOptions.Default;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace net.adamec.lib.common.dmn.engine.engine.execution.context
using DynamicExpresso;

namespace net.adamec.lib.common.dmn.engine.engine.execution.context
{
/// <summary>
/// Execution configuration options
Expand All @@ -24,5 +26,9 @@ public interface IDmnExecutionContextOptions
/// Scope of the parsed expression cache (Cache parsed expressions for definition cross contexts by default)
/// </summary>
ParsedExpressionCacheScopeEnum ParsedExpressionCacheScope { get; }
/// <summary>
/// Scope of the dynamic expresso interpreter (InterpreterOptions.Default option by default)
/// </summary>
InterpreterOptions InterpreterOptions { get; }
}
}