docs: clarify how emitEventStep emits an event in a workflow (#13836)

This commit is contained in:
Shahed Nasser
2025-10-23 16:30:25 +03:00
committed by GitHub
parent 90966633bb
commit 4ab185c685
81 changed files with 479 additions and 3 deletions
@@ -38,7 +38,7 @@ Some examples of service events:
## Emit Event in a Workflow
To emit a workflow event, use the `emitEventStep` helper step provided in the `@medusajs/medusa/core-flows` package.
To emit a workflow event, use the `emitEventStep` helper step provided in the `@medusajs/medusa/core-flows` package. It allows you to emit an event from within a workflow, and it only emits the event after the workflow has finished successfully.
For example: