Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to workflow/activity instance created by Temporal from workflow/activity context where applicable #572

Open
4 of 9 tasks
cretz opened this issue Jan 7, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@cretz
Copy link
Member

cretz commented Jan 7, 2025

Describe the solution you'd like

For instances created by Temporal, they should be accessible from the context. Users want to access the actual class instance of a workflow from, say, an interceptor. This needs to be made available from the workflow context as the "instance". Note this is not applicable to Go and TypeScript. And for Java, PHP, Ruby, and .NET (DI only), the activity instance should be made available from the activity context (since they create the instance and control its lifetime).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants