Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved: Add groovydsl method : failure to return a map (OFBIZ-13195) (
#867) With groovy dsl we have possibility to return in one line when failure appears but we can only sent a failure message like this : **** return failure('bad state') **** If we need to return information on out we need to realize it like : **** Map result = failure('bad state') result.statusId = 'BAD_STATUS' return result **** Like success() we improved it to do in one line: **** return failure('bad state', [statusId: 'BAD_STATUS']) **** By the way we align success function to refactoring them with default value so remove two unnecessary
- Loading branch information