flow.next

Continue to the next step in the flow. The next component is mainly used
in action fields to control flow execution:

steps:
  - if: (@ user.age > 18 )
    then: next
    else: end

  - say: You're a young adult

You can also optionally define flow scope data as part of the next
component.

steps:
  - if: (@ user.age > 18 )
    then:
        next:
          foo: bar
    else: end

  - say: "Flow scope data: (@ flow.foo )"

Element details

type: meya.flow.component.next
class: NextComponent
path: /meya/flow/component/next.py
signature: next

Fields

fielddescription               requiredsignaturedefaulttype
specOverride the original spec for this element.nullSpec
contextSend context data with this component's event.{}
dict
sensitiveMark this component's event as sensitive. This will encrypt the event if the Sensitive Data integration has been enabled.falsebool
triggersActivate these dynamic triggers when the component runs. Check the component triggers guide for more info.[]list
nextnulldict

Usage reference

Basic

triggers:
  - keyword: meya.flow.component.next
steps:
  - next:
      foo: bar

Full

triggers:
  - keyword: meya.flow.component.next
steps:
  - spec:
      type: STRING
      data:
        STRING: ANY
      timeout: 123
      trigger_when: ANY
    context:
      STRING: ANY
    sensitive: false
    triggers:
      - type: STRING
        data:
          STRING: ANY
        timeout: 123
        trigger_when: ANY
    next:
      foo: bar