grysz.com
grails – Marcin Gryszko
https://grysz.com/category/grails
Business Problem Solver using 0s and 1s aka Software Developer. Activiti and database transactions. In my current project we use Activiti as a business process orchestrator. Recently we ran into problems with database transactions. We had webservice calls to an external in one of process steps (service task). We wanted to have everything committed before the call, just in case the webservice fails. Ideally, every process step should be executed in a separate transaction. In our Grails application Activiti.
grysz.com
groovy – Marcin Gryszko
https://grysz.com/category/groovy
Business Problem Solver using 0s and 1s aka Software Developer. Custom collections in Groovy. Groovy allows to create custom collections the easy way. Moreover, a custom collection can support the Groovy collection API (all the additional methods that Groovy adds to. The implementation is simple. Your custom collection is a decorator over the original collection. You provide a constructor accepting the collection you are wrapping. All method calls are delegated to the original collection with. Grails is,...
grysz.com
ddd – Marcin Gryszko
https://grysz.com/category/ddd
Business Problem Solver using 0s and 1s aka Software Developer. Reasons to wrap a primitive type as a value object. One of common code smells is Primitive Obsession. Using primitive objects to represent domain ideas. We refactor this smell by introducing Value Objects. A Value Object represents a domain concept whose identity is made up of all its parts. For example, an instance. Cannot be distinguished from another instance. Refers to the same human being, even if I change my first or last name. Describ...
grysz.com
Quest for (persistable) Groovy immutability – Marcin Gryszko
https://grysz.com/2014/04/22/quest-for-persistable-groovy-immutability
Business Problem Solver using 0s and 1s aka Software Developer. Quest for (persistable) Groovy immutability. This is my first post about how to implement DDD concepts with Groovy and deliver them with Grails. My goal is to have real. Domain logic, without any (or as few as possible) dependencies on surrounding frameworks. Create an immutable Value Object class. Value Objects, a building block of DDD. Should be implemented as immutable. Which options do we have in Groovy? Annotate your VO with. Declare al...
github.com
GitHub - andresteingress/gcontracts: GContracts: Programming by Contract for Groovy
https://github.com/andresteingress/gcontracts
GContracts: Programming by Contract for Groovy. Use Git or checkout with SVN using the web URL. Cannot retrieve the latest commit at this time. Failed to load latest commit information. Mar 15, 2013. Mar 15, 2013. Gradle wrapper 1.3. Feb 12, 2013. GContracts - Design by Contract for Groovy http:/ gcontracts.org. If you want to fork, or send pull requests, check out http:/ help.github.com/. If you experience any issues, feel free to post a ticket at https:/ github.com/andresteingress/gcontracts/issues.