# newExternalWorkflowStub not working "Called from non workflow or workflow callback thread"

**URL:** <https://community.temporal.io/t/newexternalworkflowstub-not-working-called-from-non-workflow-or-workflow-callback-thread/17078>\
**Category:** Community Support\
**Created:** [April 8, 2025, 5:34am UTC](https://community.temporal.io/t/newexternalworkflowstub-not-working-called-from-non-workflow-or-workflow-callback-thread/17078 "2025-04-08T05:34:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anshu\_tyagi](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/anshu_tyagi/32/7111_2.png) [@anshu\_tyagi](https://community.temporal.io/u/anshu_tyagi)\
**Post date:** [April 8, 2025, 5:34am UTC](https://community.temporal.io/t/newexternalworkflowstub-not-working-called-from-non-workflow-or-workflow-callback-thread/17078/1 "2025-04-08T05:34:20Z")

</div>

I want to send signal to another workflow, once I receive a success webhook.

var failureMonitorWorkflow = Workflow.newExternalWorkflowStub(FailureMonitorWorkflow.class, workflowId);  
failureMonitorWorkflow.markSuccess(orderNumber);

This is giving me error Called from non workflow or workflow callback thread

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [April 8, 2025, 4:13pm UTC](https://community.temporal.io/t/newexternalworkflowstub-not-working-called-from-non-workflow-or-workflow-callback-thread/17078/2 "2025-04-08T16:13:47Z")

</div>

Static methods of Workflow class can be called from the workflow code only.

Use workflow [client](https://github.com/temporalio/samples-java/blob/7e00384d75bcd6640e3eac1dcc763e0327836d36/core/src/main/java/io/temporal/samples/hello/HelloSignal.java#L172) to send signal from all other code.
