Lowers a declarative Flow definition to raw Control Program IR.
Boatstack still canonicalizes, validates, resolves trusted bindings, and fingerprints the result. Calling this function does not execute the Flow.
const flow = defineFlow({ id: "example", version: "1", facets: [facet("status", "enum", ["open", "done"])], operators: [], transitions: [], targets: [marked("done", fact("status", ["done"]))], entries: [entry({ id: "run", target: "done" })],}); Copy
const flow = defineFlow({ id: "example", version: "1", facets: [facet("status", "enum", ["open", "done"])], operators: [], transitions: [], targets: [marked("done", fact("status", ["done"]))], entries: [entry({ id: "run", target: "done" })],});
Lowers a declarative Flow definition to raw Control Program IR.
Boatstack still canonicalizes, validates, resolves trusted bindings, and fingerprints the result. Calling this function does not execute the Flow.