Skip to content

Workflow generator needs to include triggers #1089

Open

Description

@josephjclark

Hit a bit of a problem

The workflow generator produces nice workflows for us, with nodes and edges.

But they're trigger-agnostic. They don't know what a trigger is, and don't add one.

In lightning state, triggers have special rules. They must exist. A step must have a source_trigger_id.

In order to test the same workflow in CLI and Lightning, we need to add proper trigger support to the workflow generator.

I'm not even sure how we'll do that really. Aside from the syntactic problem, nothing in the kit stack really gives any special provenance to triggers. How will the statefile generator look at a workflow and know to convert a node into a trigger?

Activity

  1. josephjclark commented on Oct 24, 2025

    @josephjclark
    CollaboratorAuthor

    Ah but there is hope - the serializer will infer the presense of triggers from particular properties (the type key being the big one.

    So if we just give a node a type property, it'll be treated as trigger right?

    That's cool if true, but I'd like to explore some syntactic sugar for this in the generator. Maybe a node called "cron" or "webook", with no parent, should be converted into a trigger.

  2. moved this from New Issues to DevX Backlog in Coreon Nov 7, 2025
  3. moved this from DevX Backlog to Product Backlog in Coreon Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status
      Product Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions