Description
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
- Workflows: feat(workflow): Add support for default workflow handler and default signal handler #1038
- Signals: feat(workflow): Add support for default workflow handler and default signal handler #1038
- Queries: (feat): add support for default query handler #1639
- Updates: not implemented yet
- Activities: not implemented yet