wmedvede opened a new issue, #3388:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3388

   ### Description
   
   Improve the validation message to clarify that month based timeout durations 
like P2M are not supported, and show that an equivalent value, for example, 
PT30D can be used instead.
   
   Why?
   
   Because right now, when users configures a value like P2M the validation 
error produced is like the one below, and it's not direct to understand that 
this case is not supported.
   
   
   [ERROR]         [error]: Build step 
org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor#generateSources 
threw an exception: org.kie.kogito.codegen.process.ProcessCodegenException: 
Processes with errors are Invalid process: 
'/home/kogito/serverless-workflow-project/src/main/resources/m2k.sw.yml'. Found 
error: java.lang.IllegalArgumentException: An invalid "eventTimeout": "P2M" 
configuration was provided for the state 
"WaitForSaveTransformationCompletionEvent" in the serverless workflow: 
"Move2Kube 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
   
   
   
   
   ### Implementation ideas
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to