id: pack_example
outputs:
result: ${ $("input") }
steps:
- name: step 1
id: step1
setup:
- act: on_created
then:
- act: set
# set step custom data
inputs:
my_data: null
- act: on_completed
then:
- act: msg
key: msg1
inputs:
# got the my_data value and send with the msg
my_data: ${ $("my_data") }
acts:
- act: pack
# use package in pack act
key: pack1
inputs:
# set the inputs variable from global 'input'
a: ${ $("input") }
- name: step 2
# use package in step
uses: pack2