Part of the solution was mentioned here:
http://drools.46999.n3.nabble.com/Listing-all-packages-present-in-gunvor-...
(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,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @
http://www.plugtree.com
- Blog @
http://ilesteban.wordpress.com
On Tue, Dec 13, 2011 at 6:45 AM, srinivasasanda <srinivasasanda(a)gmail.com>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.G...
";
kbuilder.add(ResourceFactory.newUrlResource(url), ResourceType.PKG);
--
View this message in context:
http://drools.46999.n3.nabble.com/How-Add-all-packages-to-KnowledgeBuilde...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users