THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
For now the DSL is intentionally simple because it is focused on most common tasks/behavior (for more complex and less common tasks you can use the dispatcher/delegator); here is a summary of what you have:
- calling services:
Code Block Map runService(String serviceName, Map inputMap)
- retrieving data TODO: expand to support conditions; TODO: for more complex queries use the entity builder (work in progress); TODO: properly manage EntityListIterator for larger sets of data
Code Block GenericValue findOne(String entityName, Map inputMap)
Code Block List findList(String entityName, Map inputMap)
- modifying data:
and then call the methods on the GenericValue object (remove/store etc...)Code Block GenericValue makeValue(String entityName)
- logging (they all accept a GString i.e. $notation):
Code Block logInfo(String message)
Code Block logWarning(String message)
Code Block logError(String message)
- returning from the service or event (the methods simply return a Map for services or a string for events but you still have to use the "return" keyword to return the map back; when used by events the error method adds also the error message, if specified, to the request object):
Code Block Map success(String message)
Code Block Map failure(String message)
Code Block Map error(String message)