jbrules docs: minor technical error in RuleBase code example
------------------------------------------------------------
Key: JBRULES-507
URL:
http://jira.jboss.com/jira/browse/JBRULES-507
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Documentation
Affects Versions: 3.0.4
Reporter: Ivelin Ivanov
Assigned To: Mark Proctor
Priority: Minor
minor technical error in a code example:
http://labs.jboss.com/file-access/default/members/jbossrules/freezone/doc...
"
At any time Packages can be added and removed - all changes will be propated to the
existing Working Memories, don't forget to call fireAllRules() for resulting
Activations to fire.
ruleBase.addPackage( pkg ); // Add a package instance
ruleBase.addPackage( "org.com.sample" ); // remove a package, and all its
parts, by it's namespace
ruleBase.removeRule( "org.com.sample", "my rule" ); // remove a
specific rule from a namespace
"
the line
ruleBase.addPackage( "org.com.sample" ); // remove a package, and all its
parts, by it's namespace
was probably meant to read
ruleBase.removePackage( "org.com.sample" ); // remove a package, and all its
parts, by it's namespace
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira