# Calling activity from Workflow Inbound Interceptor

**URL:** <https://community.temporal.io/t/calling-activity-from-workflow-inbound-interceptor/17689>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [June 16, 2025, 1:36pm UTC](https://community.temporal.io/t/calling-activity-from-workflow-inbound-interceptor/17689 "2025-06-16T13:36:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ondrej\_Benda](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ondrej_benda/32/7399_2.png) [@Ondrej\_Benda](https://community.temporal.io/u/Ondrej_Benda)\
**Post date:** [June 16, 2025, 1:36pm UTC](https://community.temporal.io/t/calling-activity-from-workflow-inbound-interceptor/17689/1 "2025-06-16T13:36:40Z")

</div>

I want to call an activity from custom MyWorkflowInboundCallsInterceptor after workflow completes.  
I have also custom WorkflowOutboundCallsInterceptor for this workflow.

When I call activity from inside workflow my custom WorkflowOutboundCallsInterceptor executeActivity is called.  
But when I call activity from MyWorkflowInboundCallsInterceptor the WorkflowOutboundCallsInterceptor is not called.

Could you please help me understand why there is the difference and how to achieve that WorkflowOutboundCallsInterceptor will be called too when calling activity from MyWorkflowInboundCallsInterceptor?

---

<div class="post-metadata">

**Author:** ![Ondrej\_Benda](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ondrej_benda/32/7399_2.png) [@Ondrej\_Benda](https://community.temporal.io/u/Ondrej_Benda)\
**Post date:** [June 17, 2025, 6:19am UTC](https://community.temporal.io/t/calling-activity-from-workflow-inbound-interceptor/17689/2 "2025-06-17T06:19:08Z")

</div>

I figured it out.  
Problem was that I was creating the activity stub as interceptor class atribute variable.  
When I created the stub inside the WorkflowInboundCallsInterceptor#execute method the activity was executed same way as from inside the workflow including outbound interceptor.
