-
1. Re: Drools guvnor repository or bpm file directories?
tsurdilovic Oct 20, 2011 6:30 PM (in response to paulcoronel)For production or development I would go with storying process assets in the Guvnor JCR repository. The repository can be stored in a RDBMS (Oracle, MySQL, etc) which provides good backup capabilities. The JCR repo also allows you to version your process assets, have discussion comments, etc which is a plus. What Guvnor lacks now is a good way to "promote" your process assets from lets say development to production environments but there are some workarounds you can do now to make it bearable. Either way to me this is better than having production assets stored on some file system
Hope this helps.
-
2. Re: Drools guvnor repository or bpm file directories?
paulcoronel Oct 20, 2011 7:10 PM (in response to tsurdilovic)Thank you for your answer; in the case, If I choose to have production assets stored on some file system, what method would you recommend to get guvnor resources and transfer it to production. I see two alternatives: use REST API Guvnor or The Knowledge Agent?
-
3. Re: Drools guvnor repository or bpm file directories?
tsurdilovic Oct 21, 2011 10:48 AM (in response to paulcoronel)You would store and edit your assets in Guvnor, then build your package which exposes the .pkg file via http. At this point you can do whatever you want, retrieve the pkg file(s) from guvnor via simple http and place them wherever you might need. Your client applications can use KnowlegeAgent to periodically pull the "latest" pkg from either Guvnor or a location on your file system.
Hope this helps.
-
4. Re: Drools guvnor repository or bpm file directories?
paulcoronel Oct 21, 2011 12:01 PM (in response to tsurdilovic)Now, as I can make a "build" of a package from my own java application without accessing the guvnor. With this already could have all integrated into my java application (I integrated Oryx Designer and Guvnor in my own java application).
Of course guvnor is deployed.
Thanks in advance
-
5. Re: Drools guvnor repository or bpm file directories?
tsurdilovic Oct 21, 2011 12:04 PM (in response to paulcoronel)Paul, sorry I don't understand your last question, can you please elaborate?
Thanks.
-
6. Re: Drools guvnor repository or bpm file directories?
paulcoronel Oct 21, 2011 12:25 PM (in response to tsurdilovic)My question, is there any way to build and compile a package (that contains bpm assets) defined in guvnor, from my own java application?.
(is there support to compile/build guvnor packages through an API?)
Thank you
-
7. Re: Drools guvnor repository or bpm file directories?
tsurdilovic Oct 21, 2011 12:34 PM (in response to paulcoronel)Hi Paul, drools-ant module has a DroolsCompilerAntTask (https://github.com/droolsjbpm/droolsjbpm-tools/blob/master/drools-ant/src/main/java/org/drools/contrib/DroolsCompilerAntTask.java)..maybe this could help?
Thanks.
-
8. Re: Drools guvnor repository or bpm file directories?
paulcoronel Oct 21, 2011 12:56 PM (in response to tsurdilovic)can i use Guvnor REST interface?
for instance:
Regards
-
9. Re: Drools guvnor repository or bpm file directories?
tsurdilovic Oct 21, 2011 12:59 PM (in response to paulcoronel)IIRC that is the old Guvnor rest api which might get deprecated in the future releases. The new Guvnor REST api docs are here: http://docs.jboss.org/drools/release/5.3.0.Final/drools-guvnor-docs/html_single/index.html#d0e2267. I know you can use it to get a pkg file from Guvnor, however not sure if there is a command for compiling a package. Will check with the guy who wrote that stuff and get back to you.
Hope this helps.
-
10. Re: Drools guvnor repository or bpm file directories?
paulcoronel Oct 21, 2011 2:10 PM (in response to tsurdilovic)Thank you