Package io.dapr.workflows.saga
Interface SagaContext
- All Known Implementing Classes:
DaprSagaContextImpl
public interface SagaContext
Saga context.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCompensate all registered activities.voidregisterCompensation(String activityClassName, Object activityInput) Register a compensation activity.
-
Method Details
-
registerCompensation
Register a compensation activity.- Parameters:
activityClassName- name of the activity classactivityInput- input of the activity to be compensated
-
compensate
void compensate()Compensate all registered activities.
-