{"action":"opened","issue":{"url":"https://api.github.com/repos/fission/fission-workflows/issues/198","repository_url":"https://api.github.com/repos/fission/fission-workflows","labels_url":"https://api.github.com/repos/fission/fission-workflows/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/fission/fission-workflows/issues/198/comments","events_url":"https://api.github.com/repos/fission/fission-workflows/issues/198/events","html_url":"https://github.com/fission/fission-workflows/issues/198","id":357115343,"node_id":"MDU6SXNzdWUzNTcxMTUzNDM=","number":198,"title":"Compose sub behaviours","user":{"login":"vishal-biyani","id":1167948,"node_id":"MDQ6VXNlcjExNjc5NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/1167948?v=4","gravatar_id":"","url":"https://api.github.com/users/vishal-biyani","html_url":"https://github.com/vishal-biyani","followers_url":"https://api.github.com/users/vishal-biyani/followers","following_url":"https://api.github.com/users/vishal-biyani/following{/other_user}","gists_url":"https://api.github.com/users/vishal-biyani/gists{/gist_id}","starred_url":"https://api.github.com/users/vishal-biyani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishal-biyani/subscriptions","organizations_url":"https://api.github.com/users/vishal-biyani/orgs","repos_url":"https://api.github.com/users/vishal-biyani/repos","events_url":"https://api.github.com/users/vishal-biyani/events{/privacy}","received_events_url":"https://api.github.com/users/vishal-biyani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-05T08:17:02Z","updated_at":"2018-09-05T08:17:02Z","closed_at":null,"author_association":"NONE","body":"Currently compose pre-built in some built in functions like foreach. For example the `$.Tasks.DataValidator.Output` in below workflow is always a list - which is list of individual outputs of DataValidator.\r\n\r\n```\r\nDataValidator:\r\n    run: foreach\r\n    inputs:\r\n      foreach: \"{ output('DataProducer') }\"\r\n      do:\r\n        run: cpvalidator\r\n        inputs:\r\n          body: \"{ task().Inputs._item }\"\r\n    requires:\r\n    - DataProducer\r\n\r\nCarpoolAllocator:\r\n    run: cpallocator\r\n    inputs: \"{ $.Tasks.DataValidator.Output }\"\r\n    requires:\r\n    - DataValidator\r\n```\r\n\r\nIn some cases user may want to have a slightly different compose behaviour. For example instead of creating a list of outputs of DataValidator - you may want the CarpoolAllocator be called individually for each output."}}
{"actor":{"display_login":"vishal-biyani"}}