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

"exists" doesn't work from DSL. #109

Closed
haydermabood opened this Issue Apr 5, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@haydermabood

haydermabood commented Apr 5, 2014

The following code causes the following error:

"Uncaught Error: Invalid class exists for rule something"
......................................................................................................

<script type="text/nools" id="room"> define Fire { } rule something { when { exists(f: Fire) ; } then { console.log('Raise the alarm'); } } </script> <script type="text/javascript"> (function () { var source = document.getElementById("room").innerHTML; var flow = nools.compile(source, {name: "room"}); var Fire = flow.getDefined("Fire"); var fir1 = new Fire(); var session = flow.getSession(); session.assert(fir1); session .match() .then(function() { session1.dispose(); }); }()); </script>
@CarloAl

This comment has been minimized.

CarloAl commented Apr 13, 2014

Having the same problem...any luck resolving it?

@doug-martin

This comment has been minimized.

Contributor

doug-martin commented Apr 13, 2014

I will hopefully have time this week to look at this issue.

doug-martin added a commit to doug-martin/nools that referenced this issue May 18, 2014

v0.3.0
* Added new `===` and `!==` operators [noolsjs#110](noolsjs#110)
* Fix for issue [noolsjs#109](noolsjs#109)
* Updated Readme
    * Updated agenda groups examples for [noolsjs#105](noolsjs#105)

@doug-martin doug-martin referenced this issue May 18, 2014

Merged

v0.3.0 #114

doug-martin added a commit to doug-martin/nools that referenced this issue May 18, 2014

v0.3.0
* Added new `===` and `!==` operators noolsjs#110
* Fix for issue noolsjs#109
* Updated Readme
    * Updated agenda groups examples for noolsjs#105
    * Changed class names not to match property names in readme noolsjs#99

doug-martin added a commit to doug-martin/nools that referenced this issue May 18, 2014

v0.3.0
* Added new `===` and `!==` operators noolsjs#110
* Fix for issue noolsjs#109
* Updated Readme
    * Updated agenda groups examples for noolsjs#105
    * Changed class names not to match property names in readme noolsjs#99
@doug-martin

This comment has been minimized.

Contributor

doug-martin commented May 18, 2014

This is fixed in v0.3.0

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