Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jdromeiro opened this issue Dec 6, 2023 · 0 comments
Labels
enhancement New feature or request medium priority Medium priority issue

Comments

@jdromeiro
Copy link
Contributor

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

@jdromeiro jdromeiro added the enhancement New feature or request label Dec 6, 2023
@luispfgarces luispfgarces added the medium priority Medium priority issue label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium priority Medium priority issue
Projects
None yet
Development

No branches or pull requests

2 participants