{"action":"opened","issue":{"url":"https://api.github.com/repos/EasyBatch/easybatch-framework/issues/178","repository_url":"https://api.github.com/repos/EasyBatch/easybatch-framework","labels_url":"https://api.github.com/repos/EasyBatch/easybatch-framework/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/EasyBatch/easybatch-framework/issues/178/comments","events_url":"https://api.github.com/repos/EasyBatch/easybatch-framework/issues/178/events","html_url":"https://github.com/EasyBatch/easybatch-framework/issues/178","id":136962212,"number":178,"title":"Improve the ContentBasedRecordDispatcherBuilder using the step builder pattern","user":{"login":"benas","id":1210553,"avatar_url":"https://avatars.githubusercontent.com/u/1210553?v=3","gravatar_id":"","url":"https://api.github.com/users/benas","html_url":"https://github.com/benas","followers_url":"https://api.github.com/users/benas/followers","following_url":"https://api.github.com/users/benas/following{/other_user}","gists_url":"https://api.github.com/users/benas/gists{/gist_id}","starred_url":"https://api.github.com/users/benas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benas/subscriptions","organizations_url":"https://api.github.com/users/benas/orgs","repos_url":"https://api.github.com/users/benas/repos","events_url":"https://api.github.com/users/benas/events{/privacy}","received_events_url":"https://api.github.com/users/benas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EasyBatch/easybatch-framework/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"benas","id":1210553,"avatar_url":"https://avatars.githubusercontent.com/u/1210553?v=3","gravatar_id":"","url":"https://api.github.com/users/benas","html_url":"https://github.com/benas","followers_url":"https://api.github.com/users/benas/followers","following_url":"https://api.github.com/users/benas/following{/other_user}","gists_url":"https://api.github.com/users/benas/gists{/gist_id}","starred_url":"https://api.github.com/users/benas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benas/subscriptions","organizations_url":"https://api.github.com/users/benas/orgs","repos_url":"https://api.github.com/users/benas/repos","events_url":"https://api.github.com/users/benas/events{/privacy}","received_events_url":"https://api.github.com/users/benas/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/EasyBatch/easybatch-framework/milestones/5","html_url":"https://github.com/EasyBatch/easybatch-framework/milestones/4.1.0","labels_url":"https://api.github.com/repos/EasyBatch/easybatch-framework/milestones/5/labels","id":1398991,"number":5,"title":"4.1.0","description":"","creator":{"login":"benas","id":1210553,"avatar_url":"https://avatars.githubusercontent.com/u/1210553?v=3","gravatar_id":"","url":"https://api.github.com/users/benas","html_url":"https://github.com/benas","followers_url":"https://api.github.com/users/benas/followers","following_url":"https://api.github.com/users/benas/following{/other_user}","gists_url":"https://api.github.com/users/benas/gists{/gist_id}","starred_url":"https://api.github.com/users/benas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benas/subscriptions","organizations_url":"https://api.github.com/users/benas/orgs","repos_url":"https://api.github.com/users/benas/repos","events_url":"https://api.github.com/users/benas/events{/privacy}","received_events_url":"https://api.github.com/users/benas/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":3,"state":"open","created_at":"2015-11-07T05:09:06Z","updated_at":"2016-02-27T20:12:34Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-02-27T20:12:34Z","updated_at":"2016-02-27T20:12:34Z","closed_at":null,"body":"As of version 4.0, the `ContentBasedRecordDispatcher` expects the user to call methods in the right order or else it throws an exception with the following message:\r\n\r\n```\r\nYou should specify a predicate before mapping a queue. Please ensure that you call when() -> dispatchTo() -> otherwise()  methods in that order\r\n```\r\n\r\nThis can be improved to guide the user through the construction of a `ContentBasedDispatcher` using the step builder pattern: http://rdafbn.blogspot.be/2012/07/step-builder-pattern_28.html"}}