You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Deepak Dixit (Jira)" <ji...@apache.org> on 2025/06/03 06:46:00 UTC

[jira] [Comment Edited] (OFBIZ-9350) Deprecate Mini Lang

    [ https://issues.apache.org/jira/browse/OFBIZ-9350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17955819#comment-17955819 ] 

Deepak Dixit edited comment on OFBIZ-9350 at 6/3/25 6:45 AM:
-------------------------------------------------------------

We can introduce a tool to convert Mining code to Groovy DSL, which will help users to migrate their legacy or custom logic to the Groovy-based scripting format. This approach leverages FreeMarker template node utilities to facilitate the conversion.

*Reference:*
 * [OFBizMigrate Repository|https://github.com/jonesde/OFBizMigrate/tree/master]

 * [SimpleMethodMigrate Template|https://github.com/jonesde/OFBizMigrate/blob/master/template/SimpleMethodMigrate.ftl]

 

I am working on it, will share update as soon as I have something to share. 

 


was (Author: deepak.dixit):
We can introduce a tool to convert Mining code to Groovy DSL, which will help users migrate their legacy or custom logic to the Groovy-based scripting format. This approach leverages FreeMarker template node utilities to facilitate the conversion.

*Reference:*
 * [OFBizMigrate Repository|https://github.com/jonesde/OFBizMigrate/tree/master]

 * [SimpleMethodMigrate Template|https://github.com/jonesde/OFBizMigrate/blob/master/template/SimpleMethodMigrate.ftl]

 

I am working on it, will share update as soon as I have something to share. 

 

> Deprecate Mini Lang
> -------------------
>
>                 Key: OFBIZ-9350
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9350
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL APPLICATIONS, ALL COMPONENTS, ALL PLUGINS
>    Affects Versions: Trunk, Upcoming Branch
>            Reporter: Michael Brohl
>            Assignee: Nicolas Malin
>            Priority: Minor
>              Labels: documentation, refactoring
>
> According to the proposal thread in [1] we decided to deprecate mini lang.
> This issue tracks the next steps proposed in the aformentioned thread, namely:
> 1. create a Wiki page for the documentation and description of the migration process and how mini lang will be replaced.
> 2. prominently state in the Wiki that minilang will be deprecated, e.g. in [2]
> 3. put deprecation tags in the corresponding code
> 4. kindly ask contributors with open patches written in mini lang to replace them by Groovy code [3]
> 5. start an initiative to replace existing mini lang code with Groovy code where applicable. This needs some more planning and discussion which parts we'll like to replace with Groovy code and which parts will better be replaced by some kind of DSL. A good starting point can be [4][5][6].
> [1] [https://lists.apache.org/thread.html/253b41060a295b8ab68bc78763cc129fc74b712cf776f8716022097f@%3Cdev.ofbiz.apache.org%3E]
>  [2] [https://cwiki.apache.org/confluence/display/OFBADMIN/Mini+Language+-+minilang+-+simple-method+-+Reference]
>  [3] does anyone know a way to batch comment Jira issues like it is possible in Redmine?
>  [4] [https://cwiki.apache.org/confluence/display/OFBIZ/Groovy+DSL+for+OFBiz+business+logic]
>  [5] [https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide]
>  [6] [https://cwiki.apache.org/confluence/display/OFBIZ/Coding+Conventions]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)