[rules-users] Call of a function in the definition of a rule template
Hi every one, I defined a function in Guvnor and I want to call it to define a rule template. But I do not know how. Have you any ideas? Thank you in advance ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] make the Guvnor interface into French
hi Michael Anstis, Can you tell me in detail how to make the interface in French, it is urgent and I have not understood your answer. Thanks in advance. 2012/2/12 Michael Anstis michael.ans...@gmail.com Translations are always welcome :) If you can ensure translations are up to date (there have been many more additions to master) I can push the file for you. Thanks, Mike sent on the move On 12 Feb 2012 20:59, Vincent LEGENDRE vincent.legen...@eurodecision.com wrote: Yes, there is me ! I even have a fresh newly updated french file (for 5.3.0.Final version), as the one in actual guvnor date from my last translation for 5.1 (parts are french, parts are english, which does not look very good). I was thinking of updating the former JIRA with the new file ? Should I create a new JIRA ? Can I simply post here and you make the git push ? Do I really need to fork the git repo for that ? -- *De: *Michael Anstis michael.ans...@gmail.com *À: *Rules Users List rules-users@lists.jboss.org *Envoyé: *Dimanche 12 Février 2012 17:34:15 *Objet: *Re: [rules-users] make the Guvnor interface into French Guvnor comes with a fr_FR locale translation. Provided your PC locale settings are fr_FR and you are using the WAR provided in the Guvnor distribution you should see French already. Alternatively, you can override your PC's locale by providing the locale in the URL; e.g. http://www.example.org/myapp.html?locale=fr_FR I know of one community user who has been using fr_FR for sometime. On 12 February 2012 15:08, Mauricio Salatino sala...@gmail.com wrote: You should provide a translated to french properties file and the compile it against that language. Some of the guvnor guys should point you to where that localization properties file is inside the drools guvnor source code. Cheers 2012/2/12 freelance developpement developpement.freela...@gmail.com: Hi every one, For simplicity I must make the interface Guvnor for administration of business rules, in French and not English under Internet Explorer or Firefox. Have you ant idea? thanx in advance ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ 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 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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Call of a function in the definition of a rule template
I have not understood your answer, what I meant was ,for example i had a program function that returns me the max and I want to make it available to one who will create the business rule .It goes like that when access to the creation of a new rule template and not technical (he knows not to programming) it will use this function already defined in the create new Function. please do you know how to make this call? thanks in advance 2012/2/13 Wolfgang Laun wolfgang.l...@gmail.com It is not so easy to create rules programmatically (if that's what you mean). You could use the experimental (unstable) fluent API (see 2.2.2.6. Rule API in the Drools Introduction and General User Guide), but this is a rather inconvenient way of accumulating strings to create a package. I'd rather create a String and feed the DRL compiler with it, but YMMV. -W 2012/2/13 freelance developpement developpement.freela...@gmail.com Hi every one, I defined a function in Guvnor and I want to call it to define a rule template. But I do not know how. Have you any ideas? Thank you in advance ___ 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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Call of a function in the definition of a rule template
No it's not a method defined in a java class, but it is a function defined in Guvnor using the Create new function. I want to call this function when I am trying to define a rule template. 2012/2/13 Wolfgang Laun wolfgang.l...@gmail.com 2012/2/13 freelance developpement developpement.freela...@gmail.com I have not understood your answer, what I meant was ,for example i had a program function Do you mean a public static method in some Java Class? You should be able to define an import function, even in Guvnor. -W utiliser une fonction dans une rule n'est pas appeler une fonction pour d´efiner une rule that returns me the max and I want to make it available to one who will create the business rule .It goes like that when access to the creation of a new rule template and not technical (he knows not to programming) it will use this function already defined in the create new Function. please do you know how to make this call? thanks in advance 2012/2/13 Wolfgang Laun wolfgang.l...@gmail.com It is not so easy to create rules programmatically (if that's what you mean). You could use the experimental (unstable) fluent API (see 2.2.2.6. Rule API in the Drools Introduction and General User Guide), but this is a rather inconvenient way of accumulating strings to create a package. I'd rather create a String and feed the DRL compiler with it, but YMMV. -W 2012/2/13 freelance developpement developpement.freela...@gmail.com Hi every one, I defined a function in Guvnor and I want to call it to define a rule template. But I do not know how. Have you any ideas? Thank you in advance ___ 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 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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] make the Guvnor interface into French
thanks for your response. But how can i know if my browser's locale is fr_FR ? thanks in advance 2012/2/13 Michael Anstis michael.ans...@gmail.com If your browser's locale is fr_FR and you are using the Guvnor WAR from here http://www.jboss.org/drools/downloads you should already see the French version. If your browser locale is not fr_FR you can still access the French UI by appending ?locale=fr_FR to your URL. Your browser's locale should be inherited from your PC's settings. 2012/2/13 freelance developpement developpement.freela...@gmail.com hi Michael Anstis, Can you tell me in detail how to make the interface in French, it is urgent and I have not understood your answer. Thanks in advance. 2012/2/12 Michael Anstis michael.ans...@gmail.com Translations are always welcome :) If you can ensure translations are up to date (there have been many more additions to master) I can push the file for you. Thanks, Mike sent on the move On 12 Feb 2012 20:59, Vincent LEGENDRE vincent.legen...@eurodecision.com wrote: Yes, there is me ! I even have a fresh newly updated french file (for 5.3.0.Final version), as the one in actual guvnor date from my last translation for 5.1 (parts are french, parts are english, which does not look very good). I was thinking of updating the former JIRA with the new file ? Should I create a new JIRA ? Can I simply post here and you make the git push ? Do I really need to fork the git repo for that ? -- *De: *Michael Anstis michael.ans...@gmail.com *À: *Rules Users List rules-users@lists.jboss.org *Envoyé: *Dimanche 12 Février 2012 17:34:15 *Objet: *Re: [rules-users] make the Guvnor interface into French Guvnor comes with a fr_FR locale translation. Provided your PC locale settings are fr_FR and you are using the WAR provided in the Guvnor distribution you should see French already. Alternatively, you can override your PC's locale by providing the locale in the URL; e.g. http://www.example.org/myapp.html?locale=fr_FR I know of one community user who has been using fr_FR for sometime. On 12 February 2012 15:08, Mauricio Salatino sala...@gmail.com wrote: You should provide a translated to french properties file and the compile it against that language. Some of the guvnor guys should point you to where that localization properties file is inside the drools guvnor source code. Cheers 2012/2/12 freelance developpement developpement.freela...@gmail.com: Hi every one, For simplicity I must make the interface Guvnor for administration of business rules, in French and not English under Internet Explorer or Firefox. Have you ant idea? thanx in advance ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ 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 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 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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Call of a function in the definition of a rule template
thanks for your help Michael Anstis can you give me an example of calling a function in fragment drl? the link does not contain enough detail thanks in advance 2012/2/13 Michael Anstis michael.ans...@gmail.com DSL's don't support Template keys though... https://issues.jboss.org/browse/GUVNOR-1799 But, if you don't need that, then +1 - DSLs can hide the function call. 2012/2/13 Esteban Aliverti esteban.alive...@gmail.com If you are dealing with non-technical people, maybe you could also use a DSL sentence to hide the function call. Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2012/2/13 Michael Anstis michael.ans...@gmail.com Your best bet would be to use a free-form DRL fragment in the Template UI and call the function as you would using DRL. Alternatively, feel free to look at https://issues.jboss.org/browse/GUVNOR-1435 and submit a pull request :) 2012/2/13 freelance developpement developpement.freela...@gmail.com No it's not a method defined in a java class, but it is a function defined in Guvnor using the Create new function. I want to call this function when I am trying to define a rule template. 2012/2/13 Wolfgang Laun wolfgang.l...@gmail.com 2012/2/13 freelance developpement developpement.freela...@gmail.com I have not understood your answer, what I meant was ,for example i had a program function Do you mean a public static method in some Java Class? You should be able to define an import function, even in Guvnor. -W utiliser une fonction dans une rule n'est pas appeler une fonction pour d´efiner une rule that returns me the max and I want to make it available to one who will create the business rule .It goes like that when access to the creation of a new rule template and not technical (he knows not to programming) it will use this function already defined in the create new Function. please do you know how to make this call? thanks in advance 2012/2/13 Wolfgang Laun wolfgang.l...@gmail.com It is not so easy to create rules programmatically (if that's what you mean). You could use the experimental (unstable) fluent API (see 2.2.2.6. Rule API in the Drools Introduction and General User Guide), but this is a rather inconvenient way of accumulating strings to create a package. I'd rather create a String and feed the DRL compiler with it, but YMMV. -W 2012/2/13 freelance developpement developpement.freela...@gmail.com Hi every one, I defined a function in Guvnor and I want to call it to define a rule template. But I do not know how. Have you any ideas? Thank you in advance ___ 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 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 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 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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users