Jint Set value to javascript variable #868
Unanswered
HakanKaraoglu
asked this question in
Q&A
Replies: 1 comment
-
The main project README contains some samples of .NET interop and there's also a big set of tests in InteropTests.cs. You should be able to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a method like the one below and it works like a rule engine. Is it possible to give the object itself as a js class?
As a solution, I found all the properties of the RuleFeed object by going around and setting the fields one by one, but I guess it was not a very good solution. This is actually the part where I am troubled. There is reflection here and I guess this causes a performance. What i want to do is just run the incoming rule statement
In short, I do this, I change all the properties of the object to lowercase, the rule is created like this because then I throw it to values on the engine side and then run the rule set.
Sample data set:
Sample rule set: text.contains ('test1') && keywords.hasId (27117) && sentiment == 1
Beta Was this translation helpful? Give feedback.
All reactions