Skip to content

[Feature Request] Support dynamic workflows, activities, signals, queries, and updates #1015

Closed
@cretz

Description

@cretz

Is your feature request related to a problem? Please describe.

Need opt-in catch-alls for workflows, activities, signals, queries, and updates.

Describe the solution you'd like

Should be able to register only one workflow as "dynamic" and it is given the name as a string as the first arg, then args as an array as the second arg. In other SDKs we give the second arg as still-serialized payloads because they need the type to deserialize, but since JS doesn't, can already be deserialized.

Need to do the same for activity.

For signal handler, should allow user to register only one catch-all that not only drains all unhandled-yet-buffered when registered, but then gets each unhandled signal after that. The function should get the signal name and the args.

Need to do the same for query and update.

Seems an early proposal on this is already at #973. Incorporate as needed.

Checklist

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions