[ https://issues.apache.org/jira/browse/OFBIZ-13133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886397#comment-17886397 ]
ASF subversion and git services commented on OFBIZ-13133: --------------------------------------------------------- Commit 8f5412a6f205a9d685b050d798b11f1431d0e615 in ofbiz-framework's branch refs/heads/release24.09 from Charles [ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=8f5412a6f2 ] Improved: Allow GroovyDSL in FlexibleStringExpander (OFBIZ-13133) (#833) Improved: Allow GroovyDSL in FlexibleStringExpander (OFBIZ-13133) (#833) * With this, you can call easily groovy dsl in Scriptlet : ``` ${groovy: from('Party').where(partyId:'admin').queryOne()} ${groovy: label('PartyUiLabels', 'PartyPartyNotFound')} ``` * add example on manufacturing screen to replace method getMessage() by label() one to demonstrate improvement * javadoc correction (missing @param name) > Allow to use GroovyDsl in FlexibleStringExpander > ------------------------------------------------ > > Key: OFBIZ-13133 > URL: https://issues.apache.org/jira/browse/OFBIZ-13133 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS > Affects Versions: Upcoming Branch > Reporter: Charles STELTZLEN > Assignee: Nicolas Malin > Priority: Minor > Fix For: Upcoming Branch > > Attachments: exemple_of_usage.png > > > It will allow to call a GroovyDSL method (label, from, run service ...) > directly instead of calling the Java class in flexible string expander. > > The standard syntax like the first line can be replaced by the second one > (from MrpScreens.xml line 64): > <set field="eventMessage" value="${groovy: > org.apache.ofbiz.base.util.UtilProperties.getMessage('ManufacturingUiLabels', > 'ManufacturingMrpRunScheduledSuccessfully', locale)}"/> > > <set field="eventMessage" value="${groovy: > label('ManufacturingUiLabels','ManufacturingMrpRunScheduledSuccessfully')}"/> -- This message was sent by Atlassian Jira (v8.20.10#820010)