Skip to content

Instantly share code, notes, and snippets.

@vasichkin
Created October 21, 2013 17:00
Show Gist options
  • Save vasichkin/7087205 to your computer and use it in GitHub Desktop.
Save vasichkin/7087205 to your computer and use it in GitHub Desktop.
New Hierapp
# Simple hierarchical application
# Here we accept parameter, pass it through genesis component and return back
application:
interfaces:
child_in:
app_input: bind(child_app#input.in)
child_out:
app_output: bind(child_app#result.out)
child_output: bind(child_app#result.own)
bindings:
- [child_app, genesis]
configuration:
child_in.app_input: "Dummy"
components:
genesis:
type: reference.Service
interfaces:
executor:
execute-workflow: receive-command(object request => object status => object status)
execute-command: send-command(string interface, string command, map<string, object> arguments => map<string, object> response)
child_app:
type: workflow.Instance
interfaces:
input:
in: configuration(string)
result:
out: publish-signal(string)
own: publish-signal(string)
configuration:
configuration.triggers: {}
configuration.workflows:
launch:
steps: []
return:
out:
value: ${in}
own:
value: "Greetings from child1"
destroy:
steps: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment