{"action":"created","issue":{"url":"https://api.github.com/repos/noflo/noflo/issues/370","repository_url":"https://api.github.com/repos/noflo/noflo","labels_url":"https://api.github.com/repos/noflo/noflo/issues/370/labels{/name}","comments_url":"https://api.github.com/repos/noflo/noflo/issues/370/comments","events_url":"https://api.github.com/repos/noflo/noflo/issues/370/events","html_url":"https://github.com/noflo/noflo/issues/370","id":131064122,"number":370,"title":"Network/component start/stop notification","user":{"login":"trustmaster","id":778655,"avatar_url":"https://avatars.githubusercontent.com/u/778655?v=3","gravatar_id":"","url":"https://api.github.com/users/trustmaster","html_url":"https://github.com/trustmaster","followers_url":"https://api.github.com/users/trustmaster/followers","following_url":"https://api.github.com/users/trustmaster/following{/other_user}","gists_url":"https://api.github.com/users/trustmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/trustmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trustmaster/subscriptions","organizations_url":"https://api.github.com/users/trustmaster/orgs","repos_url":"https://api.github.com/users/trustmaster/repos","events_url":"https://api.github.com/users/trustmaster/events{/privacy}","received_events_url":"https://api.github.com/users/trustmaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/noflo/noflo/milestones/1","html_url":"https://github.com/noflo/noflo/milestones/NoFlo%201.0","labels_url":"https://api.github.com/repos/noflo/noflo/milestones/1/labels","id":1570480,"number":1,"title":"NoFlo 1.0","description":"","creator":{"login":"bergie","id":3346,"avatar_url":"https://avatars.githubusercontent.com/u/3346?v=3","gravatar_id":"","url":"https://api.github.com/users/bergie","html_url":"https://github.com/bergie","followers_url":"https://api.github.com/users/bergie/followers","following_url":"https://api.github.com/users/bergie/following{/other_user}","gists_url":"https://api.github.com/users/bergie/gists{/gist_id}","starred_url":"https://api.github.com/users/bergie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergie/subscriptions","organizations_url":"https://api.github.com/users/bergie/orgs","repos_url":"https://api.github.com/users/bergie/repos","events_url":"https://api.github.com/users/bergie/events{/privacy}","received_events_url":"https://api.github.com/users/bergie/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2016-02-08T14:36:33Z","updated_at":"2016-02-08T14:37:40Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-02-03T15:48:50Z","updated_at":"2016-02-08T14:38:11Z","closed_at":null,"body":"A network should notify the runtime when it has finished processing with `stop` event as well as when it has started with `start` event. A network is considered as stopped when the in-flight process counter is `0`. Pending operations and broken components may prevent it from stopping correctly.\r\n\r\nThere are 2 common types of components in NoFlo:\r\n\r\n - Regular components which activate, get input, do something, send output and deactivate\r\n - Generator components which listen for external events, activate themselves, send output and keep listening for external events\r\n\r\nFor regular components the convention of notifying the network is the following:\r\n\r\n - The runtime sends `activate` event to the network right before calling the `process` function.\r\n - The `process` function is responsible for notifying the runtime and network of its status either by\r\n   - Calling `send` or `resolve` callback with a map of output ports and the result values\r\n   - Calling `done` callback if its output behavior is not so trivial\r\n - Upon receiving such a call, the runtime sends `deactivate` to the network\r\n\r\nGenerator components: WIP\r\n"},"comment":{"url":"https://api.github.com/repos/noflo/noflo/issues/comments/181399566","html_url":"https://github.com/noflo/noflo/issues/370#issuecomment-181399566","issue_url":"https://api.github.com/repos/noflo/noflo/issues/370","id":181399566,"user":{"login":"bergie","id":3346,"avatar_url":"https://avatars.githubusercontent.com/u/3346?v=3","gravatar_id":"","url":"https://api.github.com/users/bergie","html_url":"https://github.com/bergie","followers_url":"https://api.github.com/users/bergie/followers","following_url":"https://api.github.com/users/bergie/following{/other_user}","gists_url":"https://api.github.com/users/bergie/gists{/gist_id}","starred_url":"https://api.github.com/users/bergie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergie/subscriptions","organizations_url":"https://api.github.com/users/bergie/orgs","repos_url":"https://api.github.com/users/bergie/repos","events_url":"https://api.github.com/users/bergie/events{/privacy}","received_events_url":"https://api.github.com/users/bergie/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T14:38:11Z","updated_at":"2016-02-08T14:38:11Z","body":"Needs to address #221 and #261"}}