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

field

description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

required

signature

default

type

spec

Override the original spec for this element.

null

Spec

context

Send context data with this component's event.

{}

dict

sensitive

Mark this component's event as sensitive. This will encrypt the event if the Sensitive Data integration has been enabled.

false

bool

triggers

Activate these dynamic triggers when the component runs. Check the component triggers guide for more info.

[]

list

next

null

dict

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