{"action":"created","issue":{"url":"https://api.github.com/repos/pytransitions/transitions/issues/264","repository_url":"https://api.github.com/repos/pytransitions/transitions","labels_url":"https://api.github.com/repos/pytransitions/transitions/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/pytransitions/transitions/issues/264/comments","events_url":"https://api.github.com/repos/pytransitions/transitions/issues/264/events","html_url":"https://github.com/pytransitions/transitions/issues/264","id":271238510,"number":264,"title":"Graph callbacks as actions","user":{"login":"bengartner","id":204328,"avatar_url":"https://avatars3.githubusercontent.com/u/204328?v=4","gravatar_id":"","url":"https://api.github.com/users/bengartner","html_url":"https://github.com/bengartner","followers_url":"https://api.github.com/users/bengartner/followers","following_url":"https://api.github.com/users/bengartner/following{/other_user}","gists_url":"https://api.github.com/users/bengartner/gists{/gist_id}","starred_url":"https://api.github.com/users/bengartner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bengartner/subscriptions","organizations_url":"https://api.github.com/users/bengartner/orgs","repos_url":"https://api.github.com/users/bengartner/repos","events_url":"https://api.github.com/users/bengartner/events{/privacy}","received_events_url":"https://api.github.com/users/bengartner/received_events","type":"User","site_admin":false},"labels":[{"id":137204905,"url":"https://api.github.com/repos/pytransitions/transitions/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":635194344,"url":"https://api.github.com/repos/pytransitions/transitions/labels/feedback%20wanted","name":"feedback wanted","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-05T00:46:00Z","updated_at":"2017-11-05T17:39:07Z","closed_at":null,"author_association":"NONE","body":"Would like to see enter, exit labeled as entry and exit in a node. Would also like to see after/before actions with a / notation. Not sure how to best represent prepare actions as they don't seem to fit into standard UML notation per my understanding.\r\n\r\nI can but this in a PR if it's likely to go in, if not I'll just add in my project."},"comment":{"url":"https://api.github.com/repos/pytransitions/transitions/issues/comments/341990758","html_url":"https://github.com/pytransitions/transitions/issues/264#issuecomment-341990758","issue_url":"https://api.github.com/repos/pytransitions/transitions/issues/264","id":341990758,"user":{"login":"bengartner","id":204328,"avatar_url":"https://avatars3.githubusercontent.com/u/204328?v=4","gravatar_id":"","url":"https://api.github.com/users/bengartner","html_url":"https://github.com/bengartner","followers_url":"https://api.github.com/users/bengartner/followers","following_url":"https://api.github.com/users/bengartner/following{/other_user}","gists_url":"https://api.github.com/users/bengartner/gists{/gist_id}","starred_url":"https://api.github.com/users/bengartner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bengartner/subscriptions","organizations_url":"https://api.github.com/users/bengartner/orgs","repos_url":"https://api.github.com/users/bengartner/repos","events_url":"https://api.github.com/users/bengartner/events{/privacy}","received_events_url":"https://api.github.com/users/bengartner/received_events","type":"User","site_admin":false},"created_at":"2017-11-05T17:39:07Z","updated_at":"2017-11-05T17:39:07Z","author_association":"NONE","body":"Okay - I think I can put it in without changing default behavior or adding too much code. Just wanted to check if there was already discussion I'd missed. I'll fork for now and put up a PR after waiting for some feedback.\r\n\r\nHere's an [example of the slash notation] (https://upload.wikimedia.org/wikipedia/en/thumb/2/2e/UML_state_machine_Fig7.png/660px-UML_state_machine_Fig7.png) from wikipedia's [UML state machine](https://en.wikipedia.org/wiki/UML_state_machine).\r\n\r\nThere's already code for optionally displaying transition conditions in []s so it should be easy enough to add to the transitions. Nodes use a default for the label so I'll have to add an analogous function there.\r\n\r\nOr I could do something that's a little more flexible in terms of how labels are generated, IE an internal function that can generically map graphing attributes, but it seems premature for that. Not sure how much flexibility is actually needed - or what people want other than standard UML stuff.\r\n\r\nUML seems to treat all transition actions the same, so I can incorporate any advice on how transitions treats them - I tend to avoid using more than one action on the same transition."}}
{"actor":{"display_login":"bengartner"}}