[ https://issues.apache.org/jira/browse/OFBIZ-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711534#action_12711534 ]
Scott Gray commented on OFBIZ-1968: ----------------------------------- Part of a presentation I saw today covered DSLs with Groovy. I think we could possibly do some cool stuff for with operator overloading and method/property interception Something like: {code} product = "Product".findOne(['productId', productId]) serviceResult = "getWorkEffortsByPeriod".runSync(context) entityExp = EntityExpression.prepare { "fixedAssetId" == fixedAssetId "currentStatusId" == currentStatusId "fromDate" >= nowTimestamp } {code} or something like that anyway > Enrich Groovy integration with Ofbiz framework > ---------------------------------------------- > > Key: OFBIZ-1968 > URL: https://issues.apache.org/jira/browse/OFBIZ-1968 > Project: OFBiz > Issue Type: Improvement > Components: framework > Reporter: Anil K Patel > Priority: Minor > > Enrich Groovy integration with Ofbiz framework in order to bring goodies of > Minilang to Groovy scripts. Start with simple things like use > findByPrimaryKey in groovy scripts without having to prefix it with delegator > and then automatically find values for primary key fields from environment if > they are not explicitly passed in the call. Later other similar goodies of > minilang can be added. > Use Groovy to add DSL where possible. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.