{"action":"created","issue":{"url":"https://api.github.com/repos/MAECProject/schemas/issues/11","labels_url":"https://api.github.com/repos/MAECProject/schemas/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/MAECProject/schemas/issues/11/comments","events_url":"https://api.github.com/repos/MAECProject/schemas/issues/11/events","html_url":"https://github.com/MAECProject/schemas/issues/11","id":10320073,"number":11,"title":"Investigate Refactoring of Actions","user":{"login":"ikiril01","id":1538202,"avatar_url":"https://avatars.githubusercontent.com/u/1538202?v=3","gravatar_id":"","url":"https://api.github.com/users/ikiril01","html_url":"https://github.com/ikiril01","followers_url":"https://api.github.com/users/ikiril01/followers","following_url":"https://api.github.com/users/ikiril01/following{/other_user}","gists_url":"https://api.github.com/users/ikiril01/gists{/gist_id}","starred_url":"https://api.github.com/users/ikiril01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikiril01/subscriptions","organizations_url":"https://api.github.com/users/ikiril01/orgs","repos_url":"https://api.github.com/users/ikiril01/repos","events_url":"https://api.github.com/users/ikiril01/events{/privacy}","received_events_url":"https://api.github.com/users/ikiril01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ikiril01","id":1538202,"avatar_url":"https://avatars.githubusercontent.com/u/1538202?v=3","gravatar_id":"","url":"https://api.github.com/users/ikiril01","html_url":"https://github.com/ikiril01","followers_url":"https://api.github.com/users/ikiril01/followers","following_url":"https://api.github.com/users/ikiril01/following{/other_user}","gists_url":"https://api.github.com/users/ikiril01/gists{/gist_id}","starred_url":"https://api.github.com/users/ikiril01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikiril01/subscriptions","organizations_url":"https://api.github.com/users/ikiril01/orgs","repos_url":"https://api.github.com/users/ikiril01/repos","events_url":"https://api.github.com/users/ikiril01/events{/privacy}","received_events_url":"https://api.github.com/users/ikiril01/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/MAECProject/schemas/milestones/4","html_url":"https://github.com/MAECProject/schemas/milestones/MAEC%205.0","labels_url":"https://api.github.com/repos/MAECProject/schemas/milestones/4/labels","id":709472,"number":4,"title":"MAEC 5.0","description":"The next major release of MAEC, with backwards-compatibility breaking changes. Actual changes list TBD.","creator":{"login":"ikiril01","id":1538202,"avatar_url":"https://avatars.githubusercontent.com/u/1538202?v=3","gravatar_id":"","url":"https://api.github.com/users/ikiril01","html_url":"https://github.com/ikiril01","followers_url":"https://api.github.com/users/ikiril01/followers","following_url":"https://api.github.com/users/ikiril01/following{/other_user}","gists_url":"https://api.github.com/users/ikiril01/gists{/gist_id}","starred_url":"https://api.github.com/users/ikiril01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikiril01/subscriptions","organizations_url":"https://api.github.com/users/ikiril01/orgs","repos_url":"https://api.github.com/users/ikiril01/repos","events_url":"https://api.github.com/users/ikiril01/events{/privacy}","received_events_url":"https://api.github.com/users/ikiril01/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":6,"state":"open","created_at":"2014-07-03T14:57:48Z","updated_at":"2015-04-21T20:10:57Z","due_on":"2015-08-14T04:00:00Z","closed_at":null},"comments":4,"created_at":"2013-01-25T17:53:33Z","updated_at":"2015-04-23T14:59:32Z","closed_at":null,"body":"We should look at methods and associated schema structures for refactoring the current CybOX ActionType as an abstract type with multiple implementation types. Ideally it would be nice if we could get away from a 1:1 mapping between the existing action names and implementation types, and do something with a bit more abstraction."},"comment":{"url":"https://api.github.com/repos/MAECProject/schemas/issues/comments/95615076","html_url":"https://github.com/MAECProject/schemas/issues/11#issuecomment-95615076","issue_url":"https://api.github.com/repos/MAECProject/schemas/issues/11","id":95615076,"user":{"login":"ikiril01","id":1538202,"avatar_url":"https://avatars.githubusercontent.com/u/1538202?v=3","gravatar_id":"","url":"https://api.github.com/users/ikiril01","html_url":"https://github.com/ikiril01","followers_url":"https://api.github.com/users/ikiril01/followers","following_url":"https://api.github.com/users/ikiril01/following{/other_user}","gists_url":"https://api.github.com/users/ikiril01/gists{/gist_id}","starred_url":"https://api.github.com/users/ikiril01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikiril01/subscriptions","organizations_url":"https://api.github.com/users/ikiril01/orgs","repos_url":"https://api.github.com/users/ikiril01/repos","events_url":"https://api.github.com/users/ikiril01/events{/privacy}","received_events_url":"https://api.github.com/users/ikiril01/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T14:59:32Z","updated_at":"2015-04-23T14:59:32Z","body":"Another facet to consider - it's currently rather painful to find the right Action name given the large set of vocabularies available. Thus, to ease this, and also simplify the way Action names are constructed, it may be useful to do the following:\r\n\r\n* Create a \"superset\" of all Action name enumerations, e.g., AllActionNamesEnum\r\n    * This can be achieved by using an xs:union in the Vocabularies schema\r\n* Define a \"name\" attribute on the ActionType that makes use of this new enumeration\r\n    * For cases where the Action name isn't included in this enumeration, we could add a \"custom_name\" attribute\r\n\r\nWith these changes, an Action would look something like:\r\n\r\n```xml\r\n<Action id=\"action-1\" success=\"true\" name=\"create file\">\r\n  <Associated_Object object_idref=\"object-1\" association_type=\"output\"/>\r\n</Action>\r\n```\r\n\r\nWhile a \"custom\" Action would be:\r\n\r\n```xml\r\n<Action id=\"action-1\" success=\"true\" custom_name=\"custom action name\">\r\n  <Associated_Object object_idref=\"object-1\" association_type=\"output\"/>\r\n</Action>\r\n```"}}