{"action":"created","issue":{"url":"https://api.github.com/repos/DoclerLabs/hexMachina/issues/264","repository_url":"https://api.github.com/repos/DoclerLabs/hexMachina","labels_url":"https://api.github.com/repos/DoclerLabs/hexMachina/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/DoclerLabs/hexMachina/issues/264/comments","events_url":"https://api.github.com/repos/DoclerLabs/hexMachina/issues/264/events","html_url":"https://github.com/DoclerLabs/hexMachina/issues/264","id":298635782,"number":264,"title":"Support passing function as param to flow, then executing it","user":{"login":"gene-pavlovsky","id":2841193,"avatar_url":"https://avatars0.githubusercontent.com/u/2841193?v=4","gravatar_id":"","url":"https://api.github.com/users/gene-pavlovsky","html_url":"https://github.com/gene-pavlovsky","followers_url":"https://api.github.com/users/gene-pavlovsky/followers","following_url":"https://api.github.com/users/gene-pavlovsky/following{/other_user}","gists_url":"https://api.github.com/users/gene-pavlovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/gene-pavlovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gene-pavlovsky/subscriptions","organizations_url":"https://api.github.com/users/gene-pavlovsky/orgs","repos_url":"https://api.github.com/users/gene-pavlovsky/repos","events_url":"https://api.github.com/users/gene-pavlovsky/events{/privacy}","received_events_url":"https://api.github.com/users/gene-pavlovsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-20T15:26:50Z","updated_at":"2018-02-21T09:09:21Z","closed_at":null,"author_association":"NONE","body":"I've added a function param to my flow file (it's intended as a callback).\r\nI then try to call it in flow.\r\nIt throws an exception:\r\n```\r\nC:\\foo\\.haxelib\\hexioc/0,34,0/src/hex/compiler/parser/flow/ObjectParser.hx:123: ERROR : Unknown expression\r\nC:\\foo\\.haxelib\\hexioc/0,34,0/src/hex/compiler/parser/flow/ObjectParser.hx:124: DEBUG : #pos(src/memberapplet/configuration/InitialContext.flow:5: characters 724-784)\r\nC:\\foo\\.haxelib\\hexioc/0,34,0/src/hex/compiler/parser/flow/ObjectParser.hx:125: func(memberAppletExternalInterfaceService.externalInterface)\r\nC:\\foo\\.haxelib\\hexioc/0,34,0/src/hex/compiler/parser/flow/ObjectParser.hx:126: DEBUG : ECall({ expr => EConst(CIdent(func)), pos => #pos(src/memberapplet/configuration/InitialContext.flow:5: characters 724-728) },[{ expr => EField({ expr => EConst(CIdent(memberAppletExternalInterfaceService)), pos => #pos(src/memberapplet/configuration/InitialContext.flow:5: characters 729-765) },externalInterface), pos => #pos(src/memberapplet/configuration/InitialContext.flow:5: characters 729-783) }])\r\nsrc/memberapplet/configuration/InitialContext.flow:5: characters 724-784 : Invalid expression\r\n```\r\n\r\nAs a workaround I pass that function to an initialization controller, which then calls it."},"comment":{"url":"https://api.github.com/repos/DoclerLabs/hexMachina/issues/comments/367258906","html_url":"https://github.com/DoclerLabs/hexMachina/issues/264#issuecomment-367258906","issue_url":"https://api.github.com/repos/DoclerLabs/hexMachina/issues/264","id":367258906,"user":{"login":"FrancisBourre","id":14309646,"avatar_url":"https://avatars1.githubusercontent.com/u/14309646?v=4","gravatar_id":"","url":"https://api.github.com/users/FrancisBourre","html_url":"https://github.com/FrancisBourre","followers_url":"https://api.github.com/users/FrancisBourre/followers","following_url":"https://api.github.com/users/FrancisBourre/following{/other_user}","gists_url":"https://api.github.com/users/FrancisBourre/gists{/gist_id}","starred_url":"https://api.github.com/users/FrancisBourre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrancisBourre/subscriptions","organizations_url":"https://api.github.com/users/FrancisBourre/orgs","repos_url":"https://api.github.com/users/FrancisBourre/repos","events_url":"https://api.github.com/users/FrancisBourre/events{/privacy}","received_events_url":"https://api.github.com/users/FrancisBourre/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T09:09:21Z","updated_at":"2018-02-21T09:09:21Z","author_association":"COLLABORATOR","body":"Thanks for the report. Can I see the original call (from the DSL) please?"}}
{"actor":{"display_login":"FrancisBourre"}}