Skip to content

Commit

Permalink
try only TaskFailedException
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf committed Jan 25, 2024
1 parent 0531b60 commit 6791f69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void onboardingsOrchestrator(

Optional<OnboardingStatus> optNextStatus = workflowExecutor.execute(ctx, onboarding);
optNextStatus.ifPresent(onboardingStatus -> service.updateOnboardingStatus(onboardingId, onboardingStatus));
} catch (Exception ex) {
} catch (TaskFailedException ex) {
functionContext.getLogger().warning("Error during workflowExecutor execute, msg: " + ex.getMessage());
service.updateOnboardingStatusAndInstanceId(onboardingId, OnboardingStatus.FAILED, ctx.getInstanceId());
}
Expand Down

0 comments on commit 6791f69

Please sign in to comment.