|
@@ -49,7 +49,7 @@ func (orchestrator *Orchestrator) Run() (interface{}, error) {
|
|
|
}
|
|
|
|
|
|
if err != nil {
|
|
|
- err = SaveOrchestratorState(orchestrator.stateStoreName, orchestrator.sagaName,
|
|
|
+ err = saveOrchestratorState(orchestrator.stateStoreName, orchestrator.sagaName,
|
|
|
orchestrator.name, step.RollbackContextData, index)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
@@ -75,17 +75,17 @@ func (orchestrator *Orchestrator) Rollback(startIndex int) {
|
|
|
fmt.Println("Rollback", "orchestrator.rollbackStep", err)
|
|
|
}
|
|
|
|
|
|
- err = SaveOrchestratorState(orchestrator.stateStoreName, orchestrator.sagaName, orchestrator.name,
|
|
|
+ err = saveOrchestratorState(orchestrator.stateStoreName, orchestrator.sagaName, orchestrator.name,
|
|
|
rollbackStep.RollbackContextData, i-1)
|
|
|
if err != nil {
|
|
|
- fmt.Println("Rollback", "SaveOrchestratorState", err)
|
|
|
+ fmt.Println("Rollback", "saveOrchestratorState", err)
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- err := DeleteOrchestratorState(orchestrator.stateStoreName, orchestrator.sagaName, orchestrator.name)
|
|
|
+ err := deleteOrchestratorState(orchestrator.stateStoreName, orchestrator.sagaName, orchestrator.name)
|
|
|
if err != nil {
|
|
|
- fmt.Println("Rollback", "DeleteOrchestratorState", err)
|
|
|
+ fmt.Println("Rollback", "deleteOrchestratorState", err)
|
|
|
return
|
|
|
}
|
|
|
}
|