Skip to content

[Feature Request]: We want to be able to use Arrays of enum values as condition nodes #155

@jdromeiro

Description

@jdromeiro

Is your request related to a problem you have?

Yes, I was trying to set a rule condition with an array of enum values, but apparently that's not possible:

 .WithCondition(c => c
                        .And(a => a
                            .Value(ConditionTypeCode.EntityType, Operators.Equal, (int)EntityType.User)
                            .Value(ConditionTypeCode.JournalType, Operators.In, new JournalType[] { JournalType.Sale, JournalType.SaleCancelled } )

Describe the solution you'd like

Solution may be to change the class ValueConditionNodeBuilder.cs to allow more types than the one present there in the Build() method.

Are you able to help bring it to life and contribute with a Pull Request?

No

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions