Re: [rules-users] How Add all packages to KnowledgeBuilder.add(drl or pkg or xsd,..);
Sorry, here is the post where part of this question is answered: http://drools.46999.n3.nabble.com/Fact-Names-in-a-Model-td3572234.html#a3581479 Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Tue, Dec 13, 2011 at 9:25 AM, Esteban Aliverti < esteban.alive...@gmail.com> wrote: > Part of the solution was mentioned here: > http://drools.46999.n3.nabble.com/Listing-all-packages-present-in-gunvor-repository-td3581480.html > (maybe > the response didn't appear in nabble yet) > > 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 :) ) https://github.com/droolsjbpm/guvnor/pull/26 > 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: > >- specific assets inside a specific package >- specific assets inside multiple packages >- multiple packages (your case) >- a mix of all the options > > 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). > > Best Regards, > > > > Esteban Aliverti > - Developer @ http://www.plugtree.com > - Blog @ http://ilesteban.wordpress.com > > > > On Tue, Dec 13, 2011 at 6:45 AM, srinivasasanda > wrote: > >> Hi All, >> Thanks in Advance to one and all, U have helped me lot , Please can give >> me >> some idea to resolve from this senario.. >> >> we are giving (package created in guvnor) as newUrlResource(url,type) to >> add to kbuilder, ... >> I have some 100 of packages how can i add all the packages to kbuilder... >> >> but by using rest api - >> http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/rest/packages (if i >> give this url in browser) i am able to see all the packages.. can i add >> the >> all packages with out hot coding the each and every package to >> kbuilder.add(url,type); >> >> >> >> KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); >> String >> url=" >> http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/package/sample/LATEST/ >> "; >> kbuilder.add(ResourceFactory.newUrlResource(url), ResourceType.PKG); >> >> -- >> View this message in context: >> http://drools.46999.n3.nabble.com/How-Add-all-packages-to-KnowledgeBuilder-add-drl-or-pkg-or-xsd-tp3581495p3581495.html >> Sent from the Drools: User forum mailing list archive at Nabble.com. >> ___ >> rules-users mailing list >> rules-users@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-users >> > > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] How Add all packages to KnowledgeBuilder.add(drl or pkg or xsd,..);
Part of the solution was mentioned here: http://drools.46999.n3.nabble.com/Listing-all-packages-present-in-gunvor-repository-td3581480.html (maybe the response didn't appear in nabble yet) 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 :) ) https://github.com/droolsjbpm/guvnor/pull/26 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: - specific assets inside a specific package - specific assets inside multiple packages - multiple packages (your case) - a mix of all the options 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). Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Tue, Dec 13, 2011 at 6:45 AM, srinivasasanda wrote: > Hi All, > Thanks in Advance to one and all, U have helped me lot , Please can give me > some idea to resolve from this senario.. > > we are giving (package created in guvnor) as newUrlResource(url,type) to > add to kbuilder, ... > I have some 100 of packages how can i add all the packages to kbuilder... > > but by using rest api - > http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/rest/packages (if i > give this url in browser) i am able to see all the packages.. can i add the > all packages with out hot coding the each and every package to > kbuilder.add(url,type); > > > > KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); > String > url=" > http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/package/sample/LATEST/ > "; > kbuilder.add(ResourceFactory.newUrlResource(url), ResourceType.PKG); > > -- > View this message in context: > http://drools.46999.n3.nabble.com/How-Add-all-packages-to-KnowledgeBuilder-add-drl-or-pkg-or-xsd-tp3581495p3581495.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] How Add all packages to KnowledgeBuilder.add(drl or pkg or xsd,..);
Hi All, Thanks in Advance to one and all, U have helped me lot , Please can give me some idea to resolve from this senario.. we are giving (package created in guvnor) as newUrlResource(url,type) to add to kbuilder, ... I have some 100 of packages how can i add all the packages to kbuilder... but by using rest api - http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/rest/packages (if i give this url in browser) i am able to see all the packages.. can i add the all packages with out hot coding the each and every package to kbuilder.add(url,type); KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); String url="http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/package/sample/LATEST/";; kbuilder.add(ResourceFactory.newUrlResource(url), ResourceType.PKG); -- View this message in context: http://drools.46999.n3.nabble.com/How-Add-all-packages-to-KnowledgeBuilder-add-drl-or-pkg-or-xsd-tp3581495p3581495.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users