Skip to content

Commit

Permalink
kie-kogito-runtimes-3388: Improve serverless workflows timeouts durat…
Browse files Browse the repository at this point in the history
…ion validation message
  • Loading branch information
wmedvede committed Mar 9, 2024
1 parent 0ff99d1 commit 78fe708
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
public class TimeoutsConfigResolver {

private static final String NON_NEGATIVE_DURATION_MUST_BE_PROVIDED =
"When configured, it must be set with a greater than zero ISO 8601 time duration. For example PT30S. Or a valid expression, for example $CONST.myDuration, where 'myDuration' is defined in the constant section of the workflow";
"When configured, it must be set with a greater than zero ISO 8601 time duration. For example PT30S." +
" Or a valid expression, for example $CONST.myDuration, where 'myDuration' is defined in the constant section of the workflow." +
" Note: month based durations like P2M (period of two months) are not valid since the month duration might vary." +
" In that case you can use PT60D instead.";

private static final String INVALID_EVENT_TIMEOUT_FOR_STATE_ERROR = "An invalid \"eventTimeout\": \"%s\" configuration was provided for the state \"%s\" in the serverless workflow: \"%s\"." +
NON_NEGATIVE_DURATION_MUST_BE_PROVIDED;
Expand Down

0 comments on commit 78fe708

Please sign in to comment.