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 for conditions and consequences as string in input rules json #5

Conversation

ramanaveli2i
Copy link
Contributor

Hi Mithun,

I have added eval function to convert the string to function.

Please review the changes.

@munimkazia
Copy link
Collaborator

@ramanaveli2i There is one issue. The current implementation also allows an array of functions to be specified as the condition and/or the consequence. I believe this fix can break it. I think the checking needs to be more complete (check if array of functions, or array of strings. If not array, check if function or string).

@ramanaveli2i
Copy link
Contributor Author

Oh ok got it and get back to you soon.

mithunsatheesh added a commit that referenced this pull request Aug 23, 2013
feature for inputing condition and consequence Functions as string to rules json
@mithunsatheesh mithunsatheesh merged commit 9ffa056 into mithunsatheesh:master Aug 23, 2013
@mithunsatheesh
Copy link
Owner

@ramanaveli2i : merged! thanks for the contribution.

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.

3 participants