Helping method to call services instead of dispatcher.runSync(serviceName, inputMap) . Also possible: run service: serviceName, with: inputMap method name: 'makeValue', type: 'java.util.Map', params: [entityName: 'String']
Helping method to make a GenericValue instead of delegator.makeValue(entityName) . Creates an empty GenericValue of the specific entity. Helping method to find one GenericValue in the database. Used instead of delegator.findOne(entityName, inputMap) Helping method to find many GenericValue in the database. Used instead of delegator.findList(entityName, inputMap, null, null, null, false) method name: 'select', type: 'org.apache.ofbiz.entity.util.EntityQuery', params: [entity: 'java.util.Set']
Helping method used instead of EntityQuery.use(delegator).select(...) method name: 'select', type: 'org.apache.ofbiz.entity.util.EntityQuery', params: [entity: 'String...']
As above. method name: 'from', type: 'org.apache.ofbiz.entity.util.EntityQuery', params: [entity: 'java.lang.Object']
Helping method used instead of EntityQuery.use(delegator).from(...) method name: 'success', type: 'def', params: [message: 'String']
Helping method used instead of ServiceUtil.returnSuccess(message) method name: 'failure', type: 'java.util.Map', params: [message: 'String']
Helping method used instead of ServiceUtil.returnFailure(message) method name: 'error', type: 'def', params: [message: 'String']
Helping method used instead of ServiceUtil.returnError(message) method name: 'logInfo', type: 'void', params: [message: 'String']
Helping method used instead of Debug.logInfo(message, fileName) method name: 'logWarning', type: 'void', params: [message: 'String']
Helping method used instead of Debug.logWarning(message, fileName) method name: 'logError', type: 'void', params: [message: 'String']
Helping method used instead of Debug.logError(message, fileName) method name: 'logVerbose', type: 'void', params: [message: 'String']
Helping method used instead of Debug.logVerbose(message, fileName)
The actual definition of the methods can be found in /framework/service/src/main/java/org/apache/ofbiz/service/engine/GroovyBaseScript.groovy , the variables dctx , dispatcher and delegator are set in the file GroovyEngine.java which can be found in the same location. |