From parag0892 at gmail.com Fri Aug 1 02:16:03 2014 From: parag0892 at gmail.com (Parag Goyal) Date: Fri, 1 Aug 2014 11:46:03 +0530 Subject: [jbpm-dev] Interested in Contribution Message-ID: Hello , i wanted to contribute in JBPM , so can any one help me in getting started . I have two years of experience in development in java . Thank You -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140801/2b7822a4/attachment.html From salaboy at gmail.com Fri Aug 1 03:02:23 2014 From: salaboy at gmail.com (Salaboy) Date: Fri, 1 Aug 2014 08:02:23 +0100 Subject: [jbpm-dev] Interested in Contribution In-Reply-To: References: Message-ID: Hi in which are are you interested in collaborate? Do you have experience with hibernate/jpa, gwt, teansaction handling, etc? Depending on your background we can give you some suggestions Sent from my iPhone On 1 Aug 2014, at 07:16, Parag Goyal wrote: > Hello , i wanted to contribute in JBPM , so can any one help me in getting started . > I have two years of experience in development in java . > Thank You > _______________________________________________ > jbpm-dev mailing list > jbpm-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/jbpm-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140801/50d67760/attachment-0001.html From parag0892 at gmail.com Fri Aug 1 04:57:27 2014 From: parag0892 at gmail.com (Parag Goyal) Date: Fri, 1 Aug 2014 14:27:27 +0530 Subject: [jbpm-dev] Interested in Contribution In-Reply-To: References: Message-ID: Hello , I was reading the documentation of BPM and the project seems interesting to me . I have developed application of android and also worked on swing , applet and servlet . Any suggestions for me ? Thank You . On Fri, Aug 1, 2014 at 12:32 PM, Salaboy wrote: > Hi in which are are you interested in collaborate? Do you have experience > with hibernate/jpa, gwt, teansaction handling, etc? Depending on your > background we can give you some suggestions > > Sent from my iPhone > > On 1 Aug 2014, at 07:16, Parag Goyal wrote: > > Hello , i wanted to contribute in JBPM , so can any one help me in getting > started . > I have two years of experience in development in java . > Thank You > > _______________________________________________ > jbpm-dev mailing list > jbpm-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/jbpm-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140801/5855453e/attachment.html From salaboy at gmail.com Fri Aug 1 05:02:01 2014 From: salaboy at gmail.com (Mauricio Salatino) Date: Fri, 1 Aug 2014 10:02:01 +0100 Subject: [jbpm-dev] Interested in Contribution In-Reply-To: References: Message-ID: You can start with something simple. Have you look through our web tooling? There is plenty of work to do on that front, and I can introduce you to those tools. Look to the web app provided with the jbpm installer to get familiar with. Get in touch with us when you know the basic of those tools (from the end user perspective). In order to collaborate with an open source project, first you need to be familiar with how to use it, so try it out and let us know how it goes. Regards On Fri, Aug 1, 2014 at 9:57 AM, Parag Goyal wrote: > Hello , I was reading the documentation of BPM and the project seems > interesting to me . > I have developed application of android and also worked on swing , applet > and servlet . > Any suggestions for me ? > Thank You . > > > On Fri, Aug 1, 2014 at 12:32 PM, Salaboy wrote: > >> Hi in which are are you interested in collaborate? Do you have experience >> with hibernate/jpa, gwt, teansaction handling, etc? Depending on your >> background we can give you some suggestions >> >> Sent from my iPhone >> >> On 1 Aug 2014, at 07:16, Parag Goyal wrote: >> >> Hello , i wanted to contribute in JBPM , so can any one help me in >> getting started . >> I have two years of experience in development in java . >> Thank You >> >> _______________________________________________ >> jbpm-dev mailing list >> jbpm-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/jbpm-dev >> >> > -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140801/4d8ff425/attachment.html From parag0892 at gmail.com Sun Aug 3 10:55:40 2014 From: parag0892 at gmail.com (Parag Goyal) Date: Sun, 3 Aug 2014 20:25:40 +0530 Subject: [jbpm-dev] Interested in Contribution In-Reply-To: References: Message-ID: Hello thanks for your suggestions , I have read about web tooling from the book JBPM5 developers guide and understood how this web tooling ease the process of managing your business goals by defining the flow of business. Now what should be my next step to start contribution ? On Fri, Aug 1, 2014 at 2:32 PM, Mauricio Salatino wrote: > You can start with something simple. Have you look through our web > tooling? There is plenty of work to do on that front, and I can introduce > you to those tools. > Look to the web app provided with the jbpm installer to get familiar with. > Get in touch with us when you know the basic of those tools (from the end > user perspective). In order to collaborate with an open source project, > first you need to be familiar with how to use it, so try it out and let us > know how it goes. > > Regards > > > On Fri, Aug 1, 2014 at 9:57 AM, Parag Goyal wrote: > >> Hello , I was reading the documentation of BPM and the project seems >> interesting to me . >> I have developed application of android and also worked on swing , applet >> and servlet . >> Any suggestions for me ? >> Thank You . >> >> >> On Fri, Aug 1, 2014 at 12:32 PM, Salaboy wrote: >> >>> Hi in which are are you interested in collaborate? Do you have >>> experience with hibernate/jpa, gwt, teansaction handling, etc? Depending on >>> your background we can give you some suggestions >>> >>> Sent from my iPhone >>> >>> On 1 Aug 2014, at 07:16, Parag Goyal wrote: >>> >>> Hello , i wanted to contribute in JBPM , so can any one help me in >>> getting started . >>> I have two years of experience in development in java . >>> Thank You >>> >>> _______________________________________________ >>> jbpm-dev mailing list >>> jbpm-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/jbpm-dev >>> >>> >> > > > -- > - MyJourney @ http://salaboy.com > - Co-Founder @ http://www.jugargentina.org > - Co-Founder @ http://www.jbug.com.ar > > - Salatino "Salaboy" Mauricio - > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140803/49f38ea7/attachment.html From salaboy at gmail.com Sun Aug 3 10:57:45 2014 From: salaboy at gmail.com (Mauricio Salatino) Date: Sun, 3 Aug 2014 15:57:45 +0100 Subject: [jbpm-dev] Interested in Contribution In-Reply-To: References: Message-ID: Your next step would be to start using the latest version the jbpm 6 console (also called Kie Workbench), download the latest installer, and try to model a business process and run it in there. You can write a blog post about your experience with a tool, because that's a good way to start learning and reinforce what you are doing with the tool. Regards On Sun, Aug 3, 2014 at 3:55 PM, Parag Goyal wrote: > Hello thanks for your suggestions , I have read about web tooling from the > book JBPM5 developers guide and understood how this web tooling ease the > process of managing your business goals by defining the flow of business. > Now what should be my next step to start contribution ? > > > > On Fri, Aug 1, 2014 at 2:32 PM, Mauricio Salatino > wrote: > >> You can start with something simple. Have you look through our web >> tooling? There is plenty of work to do on that front, and I can introduce >> you to those tools. >> Look to the web app provided with the jbpm installer to get familiar >> with. Get in touch with us when you know the basic of those tools (from the >> end user perspective). In order to collaborate with an open source project, >> first you need to be familiar with how to use it, so try it out and let us >> know how it goes. >> >> Regards >> >> >> On Fri, Aug 1, 2014 at 9:57 AM, Parag Goyal wrote: >> >>> Hello , I was reading the documentation of BPM and the project seems >>> interesting to me . >>> I have developed application of android and also worked on swing , >>> applet and servlet . >>> Any suggestions for me ? >>> Thank You . >>> >>> >>> On Fri, Aug 1, 2014 at 12:32 PM, Salaboy wrote: >>> >>>> Hi in which are are you interested in collaborate? Do you have >>>> experience with hibernate/jpa, gwt, teansaction handling, etc? Depending on >>>> your background we can give you some suggestions >>>> >>>> Sent from my iPhone >>>> >>>> On 1 Aug 2014, at 07:16, Parag Goyal wrote: >>>> >>>> Hello , i wanted to contribute in JBPM , so can any one help me in >>>> getting started . >>>> I have two years of experience in development in java . >>>> Thank You >>>> >>>> _______________________________________________ >>>> jbpm-dev mailing list >>>> jbpm-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/jbpm-dev >>>> >>>> >>> >> >> >> -- >> - MyJourney @ http://salaboy.com >> - Co-Founder @ http://www.jugargentina.org >> - Co-Founder @ http://www.jbug.com.ar >> >> - Salatino "Salaboy" Mauricio - >> > > -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140803/02f9755d/attachment-0001.html From agrawalshiwani30 at gmail.com Tue Aug 5 09:43:22 2014 From: agrawalshiwani30 at gmail.com (Shiwani Agrawal) Date: Tue, 5 Aug 2014 19:13:22 +0530 Subject: [jbpm-dev] Tutorial on Kie Workbench Message-ID: Hello , i want to develop my business model on the kie workbench . I read JBPM developers guide but i didnt get it . Can you provide me link of tutorials for beginners ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140805/1119b3ed/attachment.html From salaboy at gmail.com Tue Aug 5 09:45:16 2014 From: salaboy at gmail.com (Mauricio Salatino) Date: Tue, 5 Aug 2014 15:45:16 +0200 Subject: [jbpm-dev] Tutorial on Kie Workbench In-Reply-To: References: Message-ID: This is a developer list, please use the user forums. And try to elaborate more on the question instead of asking for generic tutorials. Describe what's your problem, are you suck. On Tue, Aug 5, 2014 at 3:43 PM, Shiwani Agrawal wrote: > Hello , i want to develop my business model on the kie workbench . I read > JBPM developers guide but i didnt get it . > Can you provide me link of tutorials for beginners ? > > _______________________________________________ > jbpm-dev mailing list > jbpm-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/jbpm-dev > -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140805/8e6796aa/attachment.html From agrawalshiwani30 at gmail.com Fri Aug 8 13:42:46 2014 From: agrawalshiwani30 at gmail.com (Shiwani Agrawal) Date: Fri, 8 Aug 2014 23:12:46 +0530 Subject: [jbpm-dev] Business rules and decisions Message-ID: I want to define some business rules for my process and want to take some decisions to go on certain path . Please help to get through this problem ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140808/067c7335/attachment.html From liliya.ardogan123 at gmail.com Fri Aug 15 04:48:48 2014 From: liliya.ardogan123 at gmail.com (Liliya ardogan) Date: Fri, 15 Aug 2014 01:48:48 -0700 Subject: [jbpm-dev] Ask for Help Message-ID: Hi Experts, I'm a student, and I'm currently preparing for my end of study project. My project is to propose a new conception by modifying the code source of jBPM. I'm feeling losed because I couldn't find an idee . But, before desperation, I'm asking for your help while you present the leader of jBPM on the world !!!. I have a knowledge about jBPM-6.0.1 . Could you please help me by giving me a proposition or a small idea ?!!. Thank you for any solution. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140815/f604d0a4/attachment.html From salaboy at gmail.com Fri Aug 15 05:25:02 2014 From: salaboy at gmail.com (Mauricio Salatino) Date: Fri, 15 Aug 2014 10:25:02 +0100 Subject: [jbpm-dev] Ask for Help In-Reply-To: References: Message-ID: Hi Liliya, we can help you out with some ideas, but do you have at least an area of interest? I'm currently guiding a couple of students that are contributing with the jbpm project, but they usually came with an idea for an improvement. I would recommend you first get some experience on the project, and that will give you toons of ideas for improvements. Usually I recommend building the jbpm console ng repository and play around with that. Regards On Fri, Aug 15, 2014 at 9:48 AM, Liliya ardogan wrote: > Hi Experts, > > I'm a student, and I'm currently preparing for my end of study project. > My project is to propose a new conception by modifying the code source of > jBPM. > I'm feeling losed because I couldn't find an idee . > But, before desperation, I'm asking for your help while you present the > leader of jBPM on the world !!!. > I have a knowledge about jBPM-6.0.1 . > > Could you please help me by giving me a proposition or a small idea ?!!. > > Thank you for any solution. > > _______________________________________________ > jbpm-dev mailing list > jbpm-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/jbpm-dev > -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140815/0004684d/attachment.html From cvgaviao at gmail.com Fri Aug 15 11:02:25 2014 From: cvgaviao at gmail.com (=?UTF-8?B?Q3Jpc3RpYW5vIEdhdmnDo28=?=) Date: Fri, 15 Aug 2014 12:02:25 -0300 Subject: [jbpm-dev] services registered by OSGi bundle activators of Kie, Drools and Jbpm are still needed ? Message-ID: <53EE2101.6050109@gmail.com> Hi, has a long time that I don't play with Drools and JBPM source code. This week I was walking through them again and saw a lot of new elements, interfaces and new ways to setup things. I saw that some Blueprint specific annotations and classes were created (kie-aries-blueprint). But the existent osgi activators are still registering some services that seems not be appropriated anymore. at least they are different from the set of elements in blueprint namespace (environment, kmodule, kbase and others ) that I saw. For example, in activator of drools-core we have a KnowledgeBaseFactoryServiceImpl being registered. in drools-compiler we have KnowledgeBuilderFactoryServiceImpl being registered. I can't use blueprint, so I need to figure out what is the best setup workflow for OSGi and get the proper services registered. Question, is the kie-aries-blueprint.xsd reflecting the actual state of kie, drools and jbpm core setup workflow, so I can use it as start point? could someone check that and give me a feedback ? many thanks, Cristiano From cvgaviao at gmail.com Sat Aug 16 10:18:57 2014 From: cvgaviao at gmail.com (=?windows-1252?Q?Cristiano_Gavi=E3o?=) Date: Sat, 16 Aug 2014 11:18:57 -0300 Subject: [jbpm-dev] [rules-dev] services registered by OSGi bundle activators of Kie, Drools and Jbpm are still needed ? In-Reply-To: <14C1461E-E5F6-412D-A137-7D63E4E511C8@codehaus.org> References: <53EE2101.6050109@gmail.com> <14C1461E-E5F6-412D-A137-7D63E4E511C8@codehaus.org> Message-ID: <53EF6851.2090401@gmail.com> I agree that should have a consistency. but where should we start from ? are you able to point me to any resource describing a good setup workflow using that new stuffs that I can use as base for my own investigation? The examples that I saw until now are using factories. what I can remember last time I tried 6.x, that factories won't work in osgi, so they are good candidates to be registered by those activators. Cristiano On 15-08-2014 13:22, Mark Proctor wrote: > I think things have evolved organically here. We probably need to do a full review, to ensure consistency. > > I suspect know one would know the answers, without having to dig in the code first. > > Mark > > On 15 Aug 2014, at 16:02, Cristiano Gavi?o wrote: > >> Hi, >> >> has a long time that I don't play with Drools and JBPM source code. This >> week I was walking through them again and saw a lot of new elements, >> interfaces and new ways to setup things. >> >> I saw that some Blueprint specific annotations and classes were created >> (kie-aries-blueprint). >> But the existent osgi activators are still registering some services >> that seems not be appropriated anymore. at least they are different from >> the set of elements in blueprint namespace (environment, kmodule, kbase >> and others ) that I saw. >> >> For example, in activator of drools-core we have a >> KnowledgeBaseFactoryServiceImpl being registered. in drools-compiler we >> have KnowledgeBuilderFactoryServiceImpl being registered. >> >> I can't use blueprint, so I need to figure out what is the best setup >> workflow for OSGi and get the proper services registered. >> >> Question, is the kie-aries-blueprint.xsd reflecting the actual state of >> kie, drools and jbpm core setup workflow, so I can use it as start point? >> >> could someone check that and give me a feedback ? >> >> many thanks, >> >> Cristiano >> _______________________________________________ >> rules-dev mailing list >> rules-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-dev > > _______________________________________________ > rules-dev mailing list > rules-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-dev From kverlaen at redhat.com Mon Aug 18 06:28:37 2014 From: kverlaen at redhat.com (Kris Verlaenen) Date: Mon, 18 Aug 2014 12:28:37 +0200 Subject: [jbpm-dev] services registered by OSGi bundle activators of Kie, Drools and Jbpm are still needed ? In-Reply-To: <53EE2101.6050109@gmail.com> References: <53EE2101.6050109@gmail.com> Message-ID: <53F1D555.2090606@redhat.com> Cristiano, Cristiano Gavi?o schreef op 15/08/2014 17:02: > Hi, > > has a long time that I don't play with Drools and JBPM source code. This > week I was walking through them again and saw a lot of new elements, > interfaces and new ways to setup things. > > I saw that some Blueprint specific annotations and classes were created > (kie-aries-blueprint). > But the existent osgi activators are still registering some services > that seems not be appropriated anymore. at least they are different from > the set of elements in blueprint namespace (environment, kmodule, kbase > and others ) that I saw. > > For example, in activator of drools-core we have a > KnowledgeBaseFactoryServiceImpl being registered. in drools-compiler we > have KnowledgeBuilderFactoryServiceImpl being registered. > > I can't use blueprint, so I need to figure out what is the best setup > workflow for OSGi and get the proper services registered. > > Question, is the kie-aries-blueprint.xsd reflecting the actual state of > kie, drools and jbpm core setup workflow, so I can use it as start point? > > could someone check that and give me a feedback ? It is true that using factories isn't always trivial in OSGi, so the activators you are referring to are used (internally) to do additional registration for OSGi. They should be working and are required when using OSGi. On top of this, some additional "sugar" was created that allows you to more easily define various elements (kbase, env, etc.) so they can be injected more easily. You are free to use these, but this is not required, you could initialize these elements yourself using pure Java as well for example. Afaik, kie-aries-blueprint.xsd should be up-to-date. There are some osgi examples available here: https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-osgi/drools-karaf-itest/src/test/java/org/drools/karaf/itest/KieSpringOnKarafTest.java Kris From cvgaviao at gmail.com Mon Aug 18 12:44:14 2014 From: cvgaviao at gmail.com (=?windows-1252?Q?Cristiano_Gavi=E3o?=) Date: Mon, 18 Aug 2014 13:44:14 -0300 Subject: [jbpm-dev] services registered by OSGi bundle activators of Kie, Drools and Jbpm are still needed ? In-Reply-To: <53F1D555.2090606@redhat.com> References: <53EE2101.6050109@gmail.com> <53F1D555.2090606@redhat.com> Message-ID: <53F22D5E.4090306@gmail.com> Kris and Mark, I passed this morning analyzing the activators... I'm attaching a sheet where I added all Activators being used by Kie, JBPM and Drools. Note that where I marked with red I saw "signs of smell things" and added a comment... below I write the reasons I think that we should to remove completely those activators... On 18-08-2014 07:28, Kris Verlaenen wrote: > Cristiano, > > Cristiano Gavi?o schreef op 15/08/2014 17:02: >> Hi, >> >> has a long time that I don't play with Drools and JBPM source code. This >> week I was walking through them again and saw a lot of new elements, >> interfaces and new ways to setup things. >> >> I saw that some Blueprint specific annotations and classes were created >> (kie-aries-blueprint). >> But the existent osgi activators are still registering some services >> that seems not be appropriated anymore. at least they are different from >> the set of elements in blueprint namespace (environment, kmodule, kbase >> and others ) that I saw. >> >> For example, in activator of drools-core we have a >> KnowledgeBaseFactoryServiceImpl being registered. in drools-compiler we >> have KnowledgeBuilderFactoryServiceImpl being registered. >> >> I can't use blueprint, so I need to figure out what is the best setup >> workflow for OSGi and get the proper services registered. >> >> Question, is the kie-aries-blueprint.xsd reflecting the actual state of >> kie, drools and jbpm core setup workflow, so I can use it as start >> point? >> >> could someone check that and give me a feedback ? > It is true that using factories isn't always trivial in OSGi, well, in reality static factory is not recommended at all in osgi. just because normally it is implemented adding a strong "dependency" between API and one Implementation. and that is against modularity that OSGi preaches. In those scenarios in order to change an implementation almost all the times you will need to change the api also. I saw the addition of ServiceRegistryImpl to concentrate the services without a DI. that would reduced a bit this problem (btw, I saw some factories where it isn't being used yet: org.kie.api.KieServices) but not all... to me the best solution for non-osgi to separate API from Implementor still is JavaSE Service Locator. > so the activators you are referring to are used (internally) to do > additional registration for OSGi. They should be working and are > required when using OSGi. Maybe those activators used to be required and useful (internally) some day. But currently, I don't think they are needed anymore. The reasons I think they should be removed: First, there many services being registered using interfaces from non-API packages; Second, the focus of RedHat seems to be Fusion/ Karaf and they already use blueprint natively. Third, there are a project exclusive for blueprint based setup, so doesn't make any sense to me to use ServiceTracker and register things "by hand in activator" and then complement that using blueprint. Why not just use blueprint ?? Fourth, we can't use one of the most useful features of OSGi, the Configuration Admin service. So, we can't (re)configure the registered services at runtime using simple service properties... Fifth, those activators don't scale ! if I have an environment (multi-tenant) where I need to have more than one version running same time. So, would help much more if those activators were removed, and improve the blueprint project to register all that is needed for it. after that we could create other projects for people wanting to use OSGi Declarative Services and maybe a OSGi CDI just like the Blueprint one.... And I bet we could figure out a much more clever way to synchronize the "internal registry" with the OSGi service registry instead have to call ServiceRegistryImpl.getInstance().registerLocator inside the activator (Drools-Compiler). One possibility is to create an OSGi implementation for ServiceRegistry interface instead use ServiceRegistryImpl in all places. > > On top of this, some additional "sugar" was created that allows you to > more easily define various elements (kbase, env, etc.) so they can be > injected more easily. You are free to use these, but this is not > required, you could initialize these elements yourself using pure Java > as well for example. Afaik, kie-aries-blueprint.xsd should be > up-to-date. > > There are some osgi examples available here: > https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-osgi/drools-karaf-itest/src/test/java/org/drools/karaf/itest/KieSpringOnKarafTest.java > > > Kris On 18-08-2014 07:28, Kris Verlaenen wrote: > Cristiano, > > Cristiano Gavi?o schreef op 15/08/2014 17:02: >> Hi, >> >> has a long time that I don't play with Drools and JBPM source code. This >> week I was walking through them again and saw a lot of new elements, >> interfaces and new ways to setup things. >> >> I saw that some Blueprint specific annotations and classes were created >> (kie-aries-blueprint). >> But the existent osgi activators are still registering some services >> that seems not be appropriated anymore. at least they are different from >> the set of elements in blueprint namespace (environment, kmodule, kbase >> and others ) that I saw. >> >> For example, in activator of drools-core we have a >> KnowledgeBaseFactoryServiceImpl being registered. in drools-compiler we >> have KnowledgeBuilderFactoryServiceImpl being registered. >> >> I can't use blueprint, so I need to figure out what is the best setup >> workflow for OSGi and get the proper services registered. >> >> Question, is the kie-aries-blueprint.xsd reflecting the actual state of >> kie, drools and jbpm core setup workflow, so I can use it as start >> point? >> >> could someone check that and give me a feedback ? > It is true that using factories isn't always trivial in OSGi, so the > activators you are referring to are used (internally) to do additional > registration for OSGi. They should be working and are required when > using OSGi. > > On top of this, some additional "sugar" was created that allows you to > more easily define various elements (kbase, env, etc.) so they can be > injected more easily. You are free to use these, but this is not > required, you could initialize these elements yourself using pure Java > as well for example. Afaik, kie-aries-blueprint.xsd should be > up-to-date. > > There are some osgi examples available here: > https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-osgi/drools-karaf-itest/src/test/java/org/drools/karaf/itest/KieSpringOnKarafTest.java > > > Kris -------------- next part -------------- A non-text attachment was scrubbed... Name: KieDroolsJbpmActivators.ods Type: application/vnd.oasis.opendocument.spreadsheet Size: 38395 bytes Desc: not available Url : http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140818/6fb3f7da/attachment-0001.ods From paul.chaunguyen at externe.bnpparibas.com Mon Aug 18 13:14:50 2014 From: paul.chaunguyen at externe.bnpparibas.com (paul.chaunguyen at externe.bnpparibas.com) Date: Mon, 18 Aug 2014 19:14:50 +0200 Subject: [jbpm-dev] AUTO: Paul CHAU N'GUYEN est absent(e). (returning 01/09/2014) Message-ID: I am out of the office until 01/09/2014. Je suis absent, Je r?pondrai ? votre message d?s mon retour. I am out of the office, I will reply when I come back. Regards, Paul Note: This is an automated response to your message "jbpm-dev Digest, Vol 67, Issue 3" sent on 18/08/2014 18:44:25. This is the only notification you will receive while this person is away. This message and any attachments (the "message") is intended solely for the intended addressees and is confidential. If you receive this message in error,or are not the intended recipient(s), please delete it and any copies from your systems and immediately notify the sender. Any unauthorized view, use that does not comply with its purpose, dissemination or disclosure, either whole or partial, is prohibited. Since the internet cannot guarantee the integrity of this message which may not be reliable, BNP PARIBAS (and its subsidiaries) shall not be liable for the message if modified, changed or falsified. Do not print this message unless it is necessary,consider the environment. ---------------------------------------------------------------------------------------------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur ou s'il ne vous est pas destine, merci de le detruire ainsi que toute copie de votre systeme et d'en avertir immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de ce message qui n'est pas conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite. L'Internet ne permettant pas d'assurer l'integrite de ce message electronique susceptible d'alteration, BNP Paribas (et ses filiales) decline(nt) toute responsabilite au titre de ce message dans l'hypothese ou il aurait ete modifie, deforme ou falsifie. N'imprimez ce message que si necessaire, pensez a l'environnement. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140818/d5d6bbcf/attachment.html From ch007m at gmail.com Wed Aug 20 01:58:12 2014 From: ch007m at gmail.com (Charles Moulliard) Date: Wed, 20 Aug 2014 07:58:12 +0200 Subject: [jbpm-dev] [rules-dev] services registered by OSGi bundle activators of Kie, Drools and Jbpm are still needed ? In-Reply-To: References: <53EE2101.6050109@gmail.com> <53F1D555.2090606@redhat.com> <53F22D5E.4090306@gmail.com> Message-ID: Hi, Before to review the code, it could be interesting to define/describe in a document the services/factories that we need to work with Drools/BPMN, dependencies between the modules/jar (= Packages to be exported/imported) and next we could see how we could improve the design of what has been done for OSGI. Aries Blueprint could be used or Apache DS to inject dependency (less code and dependencies are needed vs Blueprint) but Weld/CDI is also another option since that pax-cdi has been released but I should have a look to verify stability, ... Regards, Charles On Wed, Aug 20, 2014 at 3:05 AM, Mark Proctor wrote: > One point to remember is that OSGI Activators did not work out of the box > for optional runtime plugins. Which is why we had to use custom trackers, > look at how the decision tables stuff is done. We?d need to see if the > blueprints approach can solve this problem. > > We should also move this chat over to the new google groups :) > > Mark > On 18 Aug 2014, at 17:44, Cristiano Gavi?o wrote: > > Kris and Mark, > > I passed this morning analyzing the activators... I'm attaching a sheet > where I added all Activators being used by Kie, JBPM and Drools. Note that > where I marked with red I saw "signs of smell things" and added a comment... > > below I write the reasons I think that we should to remove completely > those activators... > > On 18-08-2014 07:28, Kris Verlaenen wrote: > > Cristiano, > > Cristiano Gavi?o schreef op 15/08/2014 17:02: > > Hi, > > has a long time that I don't play with Drools and JBPM source code. This > week I was walking through them again and saw a lot of new elements, > interfaces and new ways to setup things. > > I saw that some Blueprint specific annotations and classes were created > (kie-aries-blueprint). > But the existent osgi activators are still registering some services > that seems not be appropriated anymore. at least they are different from > the set of elements in blueprint namespace (environment, kmodule, kbase > and others ) that I saw. > > For example, in activator of drools-core we have a > KnowledgeBaseFactoryServiceImpl being registered. in drools-compiler we > have KnowledgeBuilderFactoryServiceImpl being registered. > > I can't use blueprint, so I need to figure out what is the best setup > workflow for OSGi and get the proper services registered. > > Question, is the kie-aries-blueprint.xsd reflecting the actual state of > kie, drools and jbpm core setup workflow, so I can use it as start point? > > could someone check that and give me a feedback ? > > It is true that using factories isn't always trivial in OSGi, > > well, in reality static factory is not recommended at all in osgi. just > because normally it is implemented adding a strong "dependency" between API > and one Implementation. and that is against modularity that OSGi preaches. > In those scenarios in order to change an implementation almost all the > times you will need to change the api also. > > I saw the addition of ServiceRegistryImpl to concentrate the services > without a DI. that would reduced a bit this problem (btw, I saw some > factories where it isn't being used yet: org.kie.api.KieServices) but not > all... to me the best solution for non-osgi to separate API from > Implementor still is JavaSE Service Locator. > > so the activators you are referring to are used (internally) to do > additional registration for OSGi. They should be working and are required > when using OSGi. > > Maybe those activators used to be required and useful (internally) some > day. But currently, I don't think they are needed anymore. > > The reasons I think they should be removed: > > First, there many services being registered using interfaces from non-API > packages; > > Second, the focus of RedHat seems to be Fusion/ Karaf and they already use > blueprint natively. > > Third, there are a project exclusive for blueprint based setup, so doesn't > make any sense to me to use ServiceTracker and register things "by hand in > activator" and then complement that using blueprint. Why not just use > blueprint ?? > > Fourth, we can't use one of the most useful features of OSGi, the > Configuration Admin service. So, we can't (re)configure the registered > services at runtime using simple service properties... > > Fifth, those activators don't scale ! if I have an environment > (multi-tenant) where I need to have more than one version running same time. > > So, would help much more if those activators were removed, and improve the > blueprint project to register all that is needed for it. after that we > could create other projects for people wanting to use OSGi Declarative > Services and maybe a OSGi CDI just like the Blueprint one.... > > And I bet we could figure out a much more clever way to synchronize the > "internal registry" with the OSGi service registry instead have to call > ServiceRegistryImpl.getInstance().registerLocator inside the activator > (Drools-Compiler). One possibility is to create an OSGi implementation for > ServiceRegistry interface instead use ServiceRegistryImpl in all places. > > > > > On top of this, some additional "sugar" was created that allows you to > more easily define various elements (kbase, env, etc.) so they can be > injected more easily. You are free to use these, but this is not required, > you could initialize these elements yourself using pure Java as well for > example. Afaik, kie-aries-blueprint.xsd should be up-to-date. > > There are some osgi examples available here: > > https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-osgi/drools-karaf-itest/src/test/java/org/drools/karaf/itest/KieSpringOnKarafTest.java > > > Kris > > > On 18-08-2014 07:28, Kris Verlaenen wrote: > > Cristiano, > > Cristiano Gavi?o schreef op 15/08/2014 17:02: > > Hi, > > has a long time that I don't play with Drools and JBPM source code. This > week I was walking through them again and saw a lot of new elements, > interfaces and new ways to setup things. > > I saw that some Blueprint specific annotations and classes were created > (kie-aries-blueprint). > But the existent osgi activators are still registering some services > that seems not be appropriated anymore. at least they are different from > the set of elements in blueprint namespace (environment, kmodule, kbase > and others ) that I saw. > > For example, in activator of drools-core we have a > KnowledgeBaseFactoryServiceImpl being registered. in drools-compiler we > have KnowledgeBuilderFactoryServiceImpl being registered. > > I can't use blueprint, so I need to figure out what is the best setup > workflow for OSGi and get the proper services registered. > > Question, is the kie-aries-blueprint.xsd reflecting the actual state of > kie, drools and jbpm core setup workflow, so I can use it as start point? > > could someone check that and give me a feedback ? > > It is true that using factories isn't always trivial in OSGi, so the > activators you are referring to are used (internally) to do additional > registration for OSGi. They should be working and are required when using > OSGi. > > On top of this, some additional "sugar" was created that allows you to > more easily define various elements (kbase, env, etc.) so they can be > injected more easily. You are free to use these, but this is not required, > you could initialize these elements yourself using pure Java as well for > example. Afaik, kie-aries-blueprint.xsd should be up-to-date. > > There are some osgi examples available here: > > https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-osgi/drools-karaf-itest/src/test/java/org/drools/karaf/itest/KieSpringOnKarafTest.java > > > Kris > > > > _______________________________________________ > > rules-dev mailing list > rules-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-dev > > > > _______________________________________________ > rules-dev mailing list > rules-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-dev > -- Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbpm-dev/attachments/20140820/de4cc765/attachment.html