Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/pn 11705 #92

Open
wants to merge 3 commits into
base: feature/TECH-BINGQ3.3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public StateMachineService(DynamoDbEnhancedClient dynamoDbEnhancedClient,
}

private static final String SEPARATORE = "#";
private static final String START_STATUS = "_start_";
private static final String ANY_STATUS = "_any_";
private static final String END_STATUS = "_end_";
private static final String S_LOG_DEF = "Validate - processId = %s, clientId = %s, currStatus = %s, nextStatus = %s";
Expand Down Expand Up @@ -102,7 +103,7 @@ public Response queryTable(String processId, String currStatus, String clientId,
log.debug("Valid transition: " + sLog);
boAllowed = true;
break;
} else if (rec.getTargetStatus().contains(ANY_STATUS)) {
} else if (rec.getTargetStatus().contains(ANY_STATUS) && !currStatus.equals(START_STATUS)) {
log.debug("to any transition: " + sLog);
boAllowed = true;
break;
Expand Down