docs: clarify how emitEventStep emits an event in a workflow (#13836)
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user