Skip to content

Edge transforms only work with no explicit inputs #5

@joshowens-basis

Description

@joshowens-basis

I have a simple blueprint with three nodes, where the last node takes in the output of the first node, like so:

const blueprint: WorkflowBlueprint = {
  id: 'simple-workflow',
  nodes: [
    { id: 'start', uses: 'start-node' },
    { id: 'middle', uses: 'middle-node' },
    { id: 'end', uses: 'end-node', inputs: 'start' }
  ],
  edges: [
    { source: 'start', target: 'middle' },
    { source: 'middle', target: 'end' }
  ]
};

I'd like to transform the input to only capture a deeply nested value in the input using an edge transform:

const blueprint: WorkflowBlueprint = {
  id: 'simple-workflow',
  nodes: [
    { id: 'start', uses: 'start-node' },
    { id: 'middle', uses: 'middle-node' },
    { id: 'end', uses: 'end-node', inputs: 'start' }
  ],
  edges: [
    { source: 'start', target: 'middle' },
    { source: 'middle', target: 'end', transform: 'input.deeply.nested.value' }
  ]
};

However, the transform is getting ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions