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

Custom Plugin #982

Open
priyamansys opened this issue Aug 15, 2023 · 0 comments
Open

Custom Plugin #982

priyamansys opened this issue Aug 15, 2023 · 0 comments

Comments

@priyamansys
Copy link

priyamansys commented Aug 15, 2023

Hi, I have created a custom plugin just like "not-group" plugin.
image

From the UI, I am able to uncheck and check the plugin. But, while passing the json data if I specify my plugin as True/False, it is not reflected back in the UI. Also when I try to get the rules after marking my plugin as "checked", I do not see its value in the generated rules. Is there something that I am missing?

    var obj = {
                "condition": "OR",
                "rules": [
                    {
                        "value": 1,
                        "id": "OfEntityTypeQuery",
                        "operator": "equal"
                    },
                    {
                        "condition": "AND",
                        "rules": [
                            {
                                "builder_rule_1_value_0_id_btn.MinCorner.X": 0,
                                "builder_rule_1_value_0_id_btn.MinCorner.Y": 1,
                                "builder_rule_1_value_0_id_btn.MinCorner.Z": 2,
                                "builder_rule_1_value_0_id_btn.MaxCorner.X": 3,
                                "builder_rule_1_value_0_id_btn.MaxCorner.Y": 4,
                                "builder_rule_1_value_0_id_btn.MaxCorner.Z": 5,
                                "id": "WithinQuery",
                                "operator": "BBox",
                                "builder_rule_1_value_0_id_btn.Tolerance": 0.00001
                            },
                            {
                                "condition": "AND",
                                "rules": [
                                    {
                                        "builder_rule_2_value_0_id_btn.MinCorner.X": 3,
                                        "builder_rule_2_value_0_id_btn.MinCorner.Y": 4,
                                        "builder_rule_2_value_0_id_btn.MinCorner.Z": 5,
                                        "builder_rule_2_value_0_id_btn.MaxCorner.X": 6,
                                        "builder_rule_2_value_0_id_btn.MaxCorner.Y": 7,
                                        "builder_rule_2_value_0_id_btn.MaxCorner.Z": 8,
                                        "id": "WithinQuery",
                                        "operator": "BBox",
                                        "builder_rule_2_value_0_id_btn.Tolerance": 0.00001
                                    },
                                    {
                                        "builder_rule_3_value_0_id_btn.Value": 0.02,
                                        "id": "SizeIsQuery",
                                        "operator": "equal",
                                        "builder_rule_3_value_0_id_btn.Dimension": 3,
                                        "builder_rule_3_value_0_id_btn.Tolerance": 0.0001
                                    }
                                ],
                                "parentBodyVerifies": true,
                                "not":true
                            }
                        ],"not": true
                    }
                ]
            };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant