open-truss / open-truss

MIT License
3 stars 1 forks source link

Support ability to pass in variables into workflows #170

Closed hktouw closed 6 days ago

hktouw commented 1 month ago

Currently there is no way to pass in data into a workflow. Data in the workflow needs to be hardcoded into the workflow config or fetched by data provider components. We'll want to come up with an elegant way to do this. Perhaps we can expose a new parameter in RenderConfig called signals that the caller can supply. We then make the signals available to components in the engine.

/cc @open-truss/engineers for your thoughts on this /cc @kmcq @pourash-b as you things you are working on may need this functionality

kmcq commented 1 month ago

@hktouw yes! This will really help.

A RenderConfig param makes sense to me 👍 I was also thinking that it could be cool to have a config annotation that populates a signal from a query param. That would just be a helper around your idea though probably so let's do yours first.