-
-
Save chemikadze/6584585 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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