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

增加获取全属性名方法getFullOutVarNames以及测试用例 #351

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

raysonfang
Copy link

No description provided.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


fanglei seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@DQinYuan
Copy link
Collaborator

getOutVarNames 方法的核心区别在哪里?

@raysonfang
Copy link
Author

比如有这样一个规则: 学生.年龄 > 18 , 那通过 getOutVarNames 则只能取到 【学生】这个, 而不能直接取到 【学生.年龄】

而在实际使用过程中,一般会在规则执行后,想直接获取【学生.年龄】进行后续处理。 而不是获取到学生,并不能直接定位到属性字段上。

要说核心区别:就是在于可以直接取到对象变量属性

@raysonfang
Copy link
Author

这里有个issues 和这个一样的需求 getOutVarNames 只能获取最外层属性,如何获取完整属性

@yangyukun0623
Copy link

这个方法如果获取多个变量就会有问题,i=j应该改成i=j-1

@raysonfang
Copy link
Author

这个方法如果获取多个变量就会有问题,i=j应该改成i=j-1

具体的案例有没呢

@yangyukun0623
Copy link

image
这是一个简单的测试

@raysonfang
Copy link
Author

image 这是一个简单的测试

ok,确实是。多谢。

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

Successfully merging this pull request may close these issues.

4 participants