name: node_cycle_with_activate
inputs:
  text:
    type: string
outputs:
  result:
    type: string
    reference: ${second_node}
nodes:
- name: first_node
  type: python
  source:
    type: code
    path: test.py
  inputs:
    text: ${inputs.text}
  activate:
    when: ${second_node.output}
    is: true
  aggregation: true
- name: second_node
  type: python
  source:
    type: code
    path: test.py
  inputs:
    text: ${first_node}
  aggregation: true
