-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
DSL Constraints Don't Work With OOPath #5961
Comments
Can you please provide a complete reproducer for this issue? It seems that we already have at least one test demonstrating how this works. |
This is a problem specific when using the constrained fact functionality where the DSL line starts with a dash and is suppose to append the DSL to the preceding pattern condition. As shown in the documentation here it works with the pattern |
Hi @piacenti , I noticed that you meant OOPath for RuleUnit. It's not supported yet. What @mariofusco mentioned was a test for OOPath in traditional syntax. I filed a document PR to remove the confusing section "Domain Specific Languages" from "Rule Language Reference" chapter: #6066 I also filed an issue to support the feature: #6065 I hope it clarifies the current situation. |
If I try a simple
I get this error
No pattern was found to add the constraint to: - type is "ABC"
it also doesn't matter if I add
[]
to the end of the OOPathIt seems that this functionality only works with legacy non OOPath approach
Expected behavior:
replace
with
/a/b/c/d/object[type == "ABC"]
The text was updated successfully, but these errors were encountered: