Refactor of simple-workflow model + Using jackson for JSON-serialization