StepExecutionContext

The step's context.

workflowIdstring
The ID of the workflow.
attemptnumber
The attempt number of the step.
idempotencyKeystring
The idempoency key of the step.
stepNamestring
The name of the step.
action"invoke" | "compensate"
The action of the step.
The container used to access resources, such as services, in the step.
metadataTransactionMetadata
Metadata passed in the input.
contextContext
A context used to share resources, such as transaction manager, between the application and the module.
parentStepIdempotencyKeystringOptional
The idempoency key of the parent step.
eventGroupIdstringOptional
A string indicating the ID of the group to aggregate the events to be emitted at a later point.
transactionIdstringOptional
A string indicating the ID of the current transaction.
Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break