Skip to content

Ability to control flow from programmable transforms #1942

@binarylogic

Description

@binarylogic

Something that would be very powerful would be the ability to dynamically define channels from programmable transforms. This would unblock complex control flow logic. For example:

[transforms.control_flow]
  type = "lua"
  source = """
if ... then
  emit(event, 'lane1')
else
  emit(event, 'lane2')
end

This would produce named outputs, similar to the swimlanes transform that could then be connected downstream:

[sinks.first]
  inputs = ["control_flow.lane1"]

[sinks.second]
  inputs = ["control_flow.lane2"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    have: niceThis feature is nice to have. It is low priority.meta: ideaAnything in the idea phase. Needs further discussion and consensus before work can begin.needs: approvalNeeds review & approval before work can begin.needs: requirementsNeeds a a list of requirements before work can be begintransform: luaAnything `lua` transform relatedtype: enhancementA value-adding code change that enhances its existing functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions