Screen flows with OL Gene
Draft and published
Every save writes a draft, so you can edit and test a flow without changing what callers get. A bar above the editor shows the flow's state: Published, Draft (not published), Modified (unpublished changes), or Held by Gene.
- Publish makes the draft the live version. If the draft changes the flow's inputs or outputs, a dialog lists the added, removed and changed fields; Publish anyway confirms it. A draft that no longer lints is not published.
- Discard draft drops the draft, and the flow goes back to its published version. A flow that was never published is deleted.
Held by Gene
A flow exported to OL Gene is held: it still runs and opens in the editor, but saving, publishing and discarding it are refused until it comes back.
- Cancel export ends the hold and makes the flow editable again; changes made in Gene are not imported.
- Only the user who exported the flow, or an administrator, can cancel it or import it back.
- A hold ends by itself 24 hours after the export by default (
OL_GENE_HOLD_TTL_HOURS). After that, export again. - Export and import run from an agent over MCP (
flowexport_gene/import_gene) or through the Flow API; the console has no Export button. - An import is refused when the workflow has AI, approval or JavaScript nodes, or when the flow changed in OL Next since the export. A refusal keeps the hold, so you can fix the workflow in Gene and import again.
Design a flow in OL Gene
A flow can also start in OL Gene. Build a workflow from the OL Next screen actions (Co-pilot can do it) and import it with flow import_gene under a flow name that does not exist yet. preview: true shows the inputs, outputs and Groovy without writing. The import writes a draft held for Gene; an existing flow is never overwritten.
- In OL Gene, add the OL Next app to the chat before asking Co-pilot to use it.
- Start with
flow{action: "gene_guide"}: it returns the node shapes, a complete example workflow and every refusal. - Open with one
screenaction naming the application, operation and entry program you import into. - Add steps with
expectScreen(required),aidKey,fieldsandcaptures. The first step after open needsfromScreen. - Use
ifnodes on workflow inputs, literals and fields of an earlier step's screen.
See also Flow API and MCP.
Draft and publish screen flows, export a flow to OL Gene and import it back, or design a new flow in Gene.