When working with flows, expressions used in branching, looping, and data mapping must follow a defined syntax. This structure also applies to the generated data map within the model.

Below are the keywords and reference patterns used in flow expressions:

  • Refers to the top-level flow context:

    [Python]
    flow
    
  • Refers to the parent context, equivalent to the top-level flow for nodes within it:

    [Python]
    parent
    
  • Refers to the current node:

    [Python]
    self
    
  • Refers to inputs and outputs of the current flow within flow nodes:

    [Python]
    parent.[input|output].<name>
    parent.[input|output]["<name>"]
    
  • Refers to the current index in a foreach loop, returns null if not in a loop:

    [Python]
    parent._current_index
    
  • Refers to the current item in a foreach loop, returns null if not in a loop:

    [Python]
    parent._current_item
    
  • Refers to inputs and outputs of other nodes within the current flow:

    [Python]
    parent.<nodeName>.[input|output].<name>
    parent["<nodeName>"].[input|output]["<name>"]
    
  • Refers to inputs of the current node:

    [Python]
    self.[input].<name>
    self.[input].["<name>"]