Skip to content

Commit

Permalink
Add revertFlowAction when reroute is not required.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-beliakov committed Jan 3, 2024
1 parent de4eed8 commit 1c591a4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ public Factory(@NonNull FlowRerouteHubCarrier carrier, @NonNull Config config,
.on(Event.NEXT)
.perform(new InstallNonIngressRulesAction(persistenceManager, resourcesManager));
builder.transition().from(State.RESOURCE_ALLOCATION_COMPLETED).to(State.NOTIFY_FLOW_MONITOR)
.on(Event.REROUTE_IS_NOT_REQUIRED);
.on(Event.REROUTE_IS_NOT_REQUIRED)
.perform(new RevertFlowStatusAction(persistenceManager));
builder.transition().from(State.RESOURCE_ALLOCATION_COMPLETED).to(State.NOTIFY_FLOW_MONITOR_WITH_ERROR)
.on(Event.REROUTE_IS_SKIPPED_ERROR)
.perform(new RevertFlowStatusAction(persistenceManager));
Expand Down

0 comments on commit 1c591a4

Please sign in to comment.