Skip to content

RuleEngine.ExecuteAsync() always sets State to Success #31

@manne

Description

@manne

Is the behavior of always succeeding regarding to RuleEngine.State on purpose? See line 114

if (result.Exception != null)
{
logger.WriteError($"Rule failed with {result.Exception}");
State = EngineState.Error;
}
else if (result.ReturnValue != null)
{
logger.WriteInfo($"Rule succeeded with {result.ReturnValue}");
}
else
{
logger.WriteInfo($"Rule succeeded, no return value");
}
State = EngineState.Success;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedBug got fixed or found a solution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions