Skip to content

Instantly share code, notes, and snippets.

@chemikadze
Forked from vasichkin/parent_simple.yml
Last active December 23, 2015 05:08
Show Gist options
  • Save chemikadze/6584585 to your computer and use it in GitHub Desktop.
Save chemikadze/6584585 to your computer and use it in GitHub Desktop.
# Simple hierarchical application
# Here we accept parameter, pass it through genesis component and return back
application:
interfaces:
input:
in: bind(child_app#input.in)
result:
out: bind(child_app#result.out)
configuration:
child_in.app_input: "This passessed to child.yml's input.app_input"
bindings:
- [child_app, genesis]
components:
genesis:
type: reference.Service
interfaces:
executor:
execute-workflow: receive-command(object request => object status => object status)
child_app:
type: workflow.Instance
interfaces:
input:
in: configuration(string)
result:
out: publish-signal(string)
configuration:
configuration.triggers: {}
configuration.workflows:
launch:
steps: []
return:
out:
value: ${in}
destroy:
steps: []
# Parent manifest for hierarchical app
# It should show line received from child
# Also show line from passed to input
# 5237179de4b0bba030e45acf
application:
configuration:
parent_in.child_input: "Hello from parent to child"
interfaces:
parent_in:
child_input: bind(child#input.in)
parent_out:
raw_child_out: bind(child#result.out)
# bindings:
# - [parent.app, child]
components:
child:
type: reference.Submodule
configuration:
# Put here appid of child.yml
__locator.application-id: "5237179de4b0bba030e45acf"
interfaces:
input:
in: configuration(string)
result:
out: publish-signal(string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment