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

Change rules dynamically #132

Open
rahpuser opened this issue Nov 21, 2014 · 2 comments
Open

Change rules dynamically #132

rahpuser opened this issue Nov 21, 2014 · 2 comments

Comments

@rahpuser
Copy link

Hello (great lib btw), as the title says.. I'm interested in know if is there a way to change the rules that belongs for a flow dynamically. Right now I need to remove the flow and create it again, I just take a glance over code and I found this:

deleteFlow: function (name) {
if(instanceOf(name, FlowContainer)) {
name = name.name;
}
delete flows[name];
return FlowContainer;
}

so my questions:

** The code above means that there is any kind of synchronization between a 'processing rules process' and a 'deletion of a flow process', right? so there are some mysterious errors that could give when evaluating the rules and deleting a flow.

** Are create/delete/modify rules supported with in nools?
** Are you planning to add this feature in a nearly future ?

Thanks.

@doug-martin
Copy link
Contributor

@rahpuser this is is actually an interesting thought, but Im not sure how this would occur without rebuilding the current fact tree from the point of change, in which case it might be more efficient to create a new flow and start the session over again. Let me think about this some more, but it wont be anytime in the immediate future.

However I am open to pull requests if you feel up to it!

-Doug

@rahpuser
Copy link
Author

@doug-martin I was just wondering how nools will behave in that circunstance. So far as you say I will rebuild the session.

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants