Re: Clojure service engine proposal for inclusion
Hello, Thanks for this detail email and your works. I'm not opposed to load closure in OFBiz code base for same reason that you exposed. For success the inclusion, I suggest to rename the namespace to org.apache.ofbiz, add test one framework/service/testdef and an example "hello world" service. Thanks Eugen ! Nicolas On 04/07/2021 14:59, Eugen Stan wrote: > Hello, > > I've implemented a clojure engine for OFBiz and I would like to > contribute this to OFBiz repo. > > It was simpler than I thought. > > NOTE: Right now the code is bundled with the ofbiz-repl-plugin in > https://github.com/netdava/ofbiz-clojure-repl . > Code is a draft and will be cleaned up for inclusion. > > == Why? > > * Allow OFBiz to use clojure libraries and ecosystem > * Allow Clojure developers to work with OFBiz in a friendlier way > * Does not increase OFBiz complexity > * Clojure is also dynamic like Groovy > * Enables powerful OFBiz administration and development via Clojure > Repl (work in progress, I have working babshka scripts that I can use > to manage OFBiz and call services remotely via REPL) > > == The code > > Code is based off of java engine: > https://github.com/netdava/ofbiz-clojure-repl/blob/main/src/main/java/com/netdava/ofbiz/clojure/ClojureEngine.java > > > Service it is defined the usual way: > https://github.com/netdava/ofbiz-clojure-repl/blob/main/servicedef/services.xml > > > A sample service looks like this > https://github.com/netdava/ofbiz-clojure-repl/blob/main/src/main/resources/com/netdava/ofbiz/clojure/sample.clj > > Copy pasting code snippets from above links: > > name="com.netdava.ofbiz.clojure.sample/clojure-test-service" > engine="clojure" > location="com.netdava.ofbiz.clojure.sample" > invoke="clojure-test-service" export="true" > max-retry="3" use-transaction="false"> > > Clojure repl service. Get service stats. > > > > > > (ns com.netdava.ofbiz.clojure.sample > (:gen-class) > (:import org.apache.ofbiz.service.DispatchContext)) > > (defn clojure-test-service [^DispatchContext dctx ^java.util.Map ctx] > (println "test " dctx " " ctx) > {"status" {"msg" "Hello OFBiz from clojure"}}) > > The service prints contexts and returns a clojure map with "status" > key and a map as a value (that implements java.util.Map). > > > To test out the code, clone ofbiz-clojure-repl into plugins/ > and apply two changes: clojars maven repo and the service engine > definition. > > https://github.com/ieugen/ofbiz-framework/commit/d50254ed57358544c8765a2647ec4bbdd3baf6a5 > > https://github.com/ieugen/ofbiz-framework/commit/e58ad5ed9d102210a1f1363e8337cef486cf999e > > > > Regards,
Re: New Helveticus theme as default
The new theme looks good, the only thing that bothers me is the light blue text on white background - which is not very readable, esp. in high resolution (1080p). See here a screen capture: https://i.postimg.cc/HxcFKLt1/Captur-de-ecran-de-la-2021-07-07-08-41-31.png . I tried it on laptop 14" screen and also on a DELL desktop monitor. I think the issue is with the color contrast (light blue + white background) + small text on the accounting app main page. -- Eugen Stan +40720 898 747 / netdava.com
Re: Using the Java Trunk API to implement 3rd Party Java Apps
Hi Mat, i created a flutter mobile app with a REST interface to ofbiz which gives you plenty of examples how to do this. please check : the ofbiz plugin: https://github.com/growerp/growerp-ofbiz the flutter app: https://github.com/growerp/growerp the ofbiz plugin is a bit behind the moqui plugin but is fully functional with the flutter version last December. Regards, Hans On 7/6/21 10:12 PM, matt domanowski wrote: I am new to OFBiz but fairly familiar with ERPs in general. We are trying to make API calls into OFBiz using the Java classes. For example, something simple such as searching products from a stand alone Java app importing the OFBiz classes is proving very difficult. (See below example) .. ResultSortOrder resultSortOrder=new ProductSearch.SortKeywordRelevancy(); List productSearchList=new ArrayList(); productSearchList.add(new ProductSearch.CategoryConstraint("*", true, true)); ProductSearch.searchProducts(productSearchList,resultSortOrder,delegator,visitId); .. Does anyone have examples on how to do this. There does not seem to be any examples online. We would prefer to use the Java classes directly as they are documented. The web services seem less developed and there also seems to be very little documentation on those.
New Helveticus theme as default
Hi, You have maybe noticed, and even tried, the new Helveticus theme: https://cwiki.apache.org/confluence/display/OFBIZ/Visual+Themes+Gallery https://cwiki.apache.org/confluence/display/OFBIZ/Visual+Themes+Gallery?preview=/6553828/184615466/themeHelveticus.png I suggest to make this new theme the default in trunk. Apart the novelty and some improvements, I see another advantage: more tests! Without objections I'll do so in a week Thanks Jacques
Re: Using the Java Trunk API to implement 3rd Party Java Apps
Hi Matt, Your message has been moderated, else it would not have reached this Mailing List. Please subscribe to the user ML for such questions and then use your email client. See why here http://ofbiz.apache.org/mailing-lists.html. You will get a better support, people can answer you on the ML. The wider the audience the better the answers you might get. Also it's more work for moderators who have to accept your messages as long as you have not subscribed. I'll personally no longer accept them (other moderators still could). Thanks This said, maybe this would be interesting: https://demo-trunk.ofbiz.apache.org/webtools/control/ServiceList?sel_service_name=solrProductsSearch ? HTH Jacques Le 06/07/2021 à 17:12, matt domanowski a écrit : I am new to OFBiz but fairly familiar with ERPs in general. We are trying to make API calls into OFBiz using the Java classes. For example, something simple such as searching products from a stand alone Java app importing the OFBiz classes is proving very difficult. (See below example) .. ResultSortOrder resultSortOrder=new ProductSearch.SortKeywordRelevancy(); List productSearchList=new ArrayList(); productSearchList.add(new ProductSearch.CategoryConstraint("*", true, true)); ProductSearch.searchProducts(productSearchList,resultSortOrder,delegator,visitId); .. Does anyone have examples on how to do this. There does not seem to be any examples online. We would prefer to use the Java classes directly as they are documented. The web services seem less developed and there also seems to be very little documentation on those.
Using the Java Trunk API to implement 3rd Party Java Apps
I am new to OFBiz but fairly familiar with ERPs in general. We are trying to make API calls into OFBiz using the Java classes. For example, something simple such as searching products from a stand alone Java app importing the OFBiz classes is proving very difficult. (See below example) .. ResultSortOrder resultSortOrder=new ProductSearch.SortKeywordRelevancy(); List productSearchList=new ArrayList(); productSearchList.add(new ProductSearch.CategoryConstraint("*", true, true)); ProductSearch.searchProducts(productSearchList,resultSortOrder,delegator,visitId); .. Does anyone have examples on how to do this. There does not seem to be any examples online. We would prefer to use the Java classes directly as they are documented. The web services seem less developed and there also seems to be very little documentation on those.