Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
feature: consider branch identifier on choices
Browse files Browse the repository at this point in the history
Fixes #513
  • Loading branch information
Delawen committed Mar 17, 2023
1 parent d892dba commit 0c9968d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public ChoiceFlowStep(final Step step, final KamelPopulator kameletPopulator) {

if (step.getBranches() != null) {
for (Branch b : step.getBranches()) {
if (b.getCondition() != null) {
if (b.getCondition() != null || String.valueOf(b.getIdentifier()).startsWith("when-")
|| choice.getOtherwise() != null) {
choices.add(processChoice(b, kameletPopulator));
} else {
var otherwise = new Otherwise();
Expand Down

0 comments on commit 0c9968d

Please sign in to comment.