Sorry, here is the post where part of this question is answered: <a href="http://drools.46999.n3.nabble.com/Fact-Names-in-a-Model-td3572234.html#a3581479">http://drools.46999.n3.nabble.com/Fact-Names-in-a-Model-td3572234.html#a3581479</a><br clear="all">
<br>Best Regards,<br><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 9:25 AM, Esteban Aliverti <span dir="ltr"><<a href="mailto:esteban.aliverti@gmail.com">esteban.aliverti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Part of the solution was mentioned here: <a href="http://drools.46999.n3.nabble.com/Listing-all-packages-present-in-gunvor-repository-td3581480.html" target="_blank">http://drools.46999.n3.nabble.com/Listing-all-packages-present-in-gunvor-repository-td3581480.html</a> (maybe the response didn't appear in nabble yet)<div>
<br></div><div>If you don't want to maintain your change-sets in your applications, then you need to wait until this pull-request is applied (It must be accepted first :) ) <a href="https://github.com/droolsjbpm/guvnor/pull/26" target="_blank">https://github.com/droolsjbpm/guvnor/pull/26</a> </div>
<div>Right now, Guvnor only publishes 1 change-set per package. In some situation, like yours, this is not enough. Sometimes you need to have a change-set pointing to:</div><div><ul><li>specific assets inside a specific package</li>
<li>specific assets inside multiple packages</li><li>multiple packages (your case)</li><li>a mix of all the options</li></ul><div>This is what the mentioned pull-request does. It adds a new change-set editor in Guvnor that allows users to create their own change-sets. Change-sets then can be accessed from your applications using HTTP (like any other asset through REST).</div>
<div><br></div><div>Best Regards,</div><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<span class="HOEnZb"><font color="#888888"><br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>
- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a></font></span><div><div class="h5"><br>
<br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 6:45 AM, srinivasasanda <span dir="ltr"><<a href="mailto:srinivasasanda@gmail.com" target="_blank">srinivasasanda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
Thanks in Advance to one and all, U have helped me lot , Please can give me<br>
some idea to resolve from this senario..<br>
<br>
we are giving (package created in guvnor) as newUrlResource(url,type) to<br>
add to kbuilder, ...<br>
I have some 100 of packages how can i add all the packages to kbuilder...<br>
<br>
but by using rest api -<br>
<a href="http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/rest/packages" target="_blank">http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/rest/packages</a> (if i<br>
give this url in browser) i am able to see all the packages.. can i add the<br>
all packages with out hot coding the each and every package to<br>
kbuilder.add(url,type);<br>
<br>
<br>
<br>
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();<br>
String<br>
url="<a href="http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/package/sample/LATEST/" target="_blank">http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/package/sample/LATEST/</a>";<br>
kbuilder.add(ResourceFactory.newUrlResource(url), ResourceType.PKG);<br>
<span><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-Add-all-packages-to-KnowledgeBuilder-add-drl-or-pkg-or-xsd-tp3581495p3581495.html" target="_blank">http://drools.46999.n3.nabble.com/How-Add-all-packages-to-KnowledgeBuilder-add-drl-or-pkg-or-xsd-tp3581495p3581495.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></span></blockquote></div><br></div></div></div></div>
</blockquote></div><br>