You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now workflows are in two states: registered (immutable) and unregistered (mutable).
The distinction itself is hidden in the type system making it very easy for a user to mistake an API meant for unregistered workflows for one they can use on a registered workflow.
Adding a WorkflowBuilder or something that acts as a mutable workflow would allow us to use the type system to enforce correct behavior.
This is probably best completed with the PR above, further work could be done to make a proper workflow builder api (something like Workflow::builder().with_activity blah blah blah) but the bulk of the issue is primarily around the the activity configuration in practice.
Activity
emesare commentedon Aug 11, 2025
This is probably best completed with the PR above, further work could be done to make a proper workflow builder api (something like
Workflow::builder().with_activityblah blah blah) but the bulk of the issue is primarily around the the activity configuration in practice.[-]rust: Workflow builder api[/-][+]Improve workflow API ergonomics in Rust API[/+]bdash commentedon Aug 12, 2025
#7254 now also adds a
WorkflowBuildertype and moves all ofWorkflows methods over to it. You end up with something like: