{"action":"opened","issue":{"url":"https://api.github.com/repos/gregoryyoung/m-r/issues/15","labels_url":"https://api.github.com/repos/gregoryyoung/m-r/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/gregoryyoung/m-r/issues/15/comments","events_url":"https://api.github.com/repos/gregoryyoung/m-r/issues/15/events","html_url":"https://github.com/gregoryyoung/m-r/issues/15","id":120259775,"number":15,"title":"How to implement business rules?","user":{"login":"MZybura","id":11583758,"avatar_url":"https://avatars.githubusercontent.com/u/11583758?v=3","gravatar_id":"","url":"https://api.github.com/users/MZybura","html_url":"https://github.com/MZybura","followers_url":"https://api.github.com/users/MZybura/followers","following_url":"https://api.github.com/users/MZybura/following{/other_user}","gists_url":"https://api.github.com/users/MZybura/gists{/gist_id}","starred_url":"https://api.github.com/users/MZybura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MZybura/subscriptions","organizations_url":"https://api.github.com/users/MZybura/orgs","repos_url":"https://api.github.com/users/MZybura/repos","events_url":"https://api.github.com/users/MZybura/events{/privacy}","received_events_url":"https://api.github.com/users/MZybura/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T20:14:27Z","updated_at":"2015-12-03T20:14:27Z","closed_at":null,"body":"I'm wondering how to implement business rule depends on entity current state. For example: \"You can change the name of the InventoryItem only if new name is longer\".\r\n\r\n "}}