You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "michael-willingham (via GitHub)" <gi...@apache.org> on 2025/10/14 19:42:59 UTC

[I] SonataFlow editor / diagrammer can't handle eventTimeout [incubator-kie-tools]

michael-willingham opened a new issue, #3310:
URL: https://github.com/apache/incubator-kie-tools/issues/3310

   The sonataflow editor seems to break when any eventTimeout is specified in a workflow file. The editor window goes completely blank, even though the workflow can run just fine.
   
   I've replicated this issue in the VS Code extension, Serverless Logic Web tools / kubesmarts, and the Sonataflow management console - suggesting there is a bug in some base package. This happens for both yaml and json files. Other timeouts, such as `workflowExecTimeout`, `stateExecTimeout`, and `actionExecTimeout` do not seem to break the window.
   
   To replicate, simply try any of the serverless workflow examples that have an `eventTimeout`, such as the `switch_state_timeouts` example:
   ```
   {
     "id": "switch_state_timeouts",
     "version": "1.0",
     "name": "Switch State Timeouts Example",
     "description": "Simple process to show the switch state timeout working",
     "start": "PrintStartMessage",
     "events": [
       {
         "name": "visaApprovedEvent",
         "source": "",
         "type": "visa_approved_event_type"
       },
       {
         "name": "visaDeniedEvent",
         "source": "",
         "type": "visa_denied_event_type"
       }
     ],
     "functions": [
       {
         "name": "systemOut",
         "type": "custom",
         "operation": "sysout"
       }
     ],
     "states": [
       {
         "name": "PrintStartMessage",
         "type": "operation",
         "actions": [
           {
             "name": "printSystemOut",
             "functionRef": {
               "refName": "systemOut",
               "arguments": {
                 "message": "${\"switch-state-timeouts: \" + $WORKFLOW.instanceId + \" has started.\"}"
               }
             }
           }
         ],
         "transition": "ChooseOnEvent"
       },
       {
         "name": "ChooseOnEvent",
         "type": "switch",
         "eventConditions": [
           {
             "eventRef": "visaApprovedEvent",
             "transition": "ApprovedVisa"
           },
           {
             "eventRef": "visaDeniedEvent",
             "transition": "DeniedVisa"
           }
         ],
         "defaultCondition": {
           "transition": "HandleNoVisaDecision"
         },
         "timeouts": {
           "eventTimeout": "PT30S"
         }
       },
       {
         "name": "ApprovedVisa",
         "type": "inject",
         "data": {
           "exitMessage": "Your visa was approved."
         },
         "transition": "PrintExitMessage"
       },
       {
         "name": "DeniedVisa",
         "type": "inject",
         "data": {
           "exitMessage": "Your visa was denied."
         },
         "transition": "PrintExitMessage"
       },
       {
         "name": "HandleNoVisaDecision",
         "type": "inject",
         "data": {
           "exitMessage": "No decision was made. The switch state did not receive any event, and the timeout has overdue."
         },
         "transition": "PrintExitMessage"
       },
       {
         "name": "PrintExitMessage",
         "type": "operation",
         "actions": [
           {
             "name": "printSystemOut",
             "functionRef": {
               "refName": "systemOut",
               "arguments": {
                 "message": "${\"switch-state-timeouts: \" + $WORKFLOW.instanceId + \" has finalized. \" + .exitMessage}"
               }
             }
           }
         ],
         "end": true
       }
     ]
   }
   ```


-- 
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: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] SonataFlow editor / diagrammer can't handle eventTimeout [incubator-kie-tools]

Posted by "tiagobento (via GitHub)" <gi...@apache.org>.
tiagobento closed issue #3310: SonataFlow editor / diagrammer can't handle eventTimeout
URL: https://github.com/apache/incubator-kie-tools/issues/3310


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] SonataFlow editor / diagrammer can't handle eventTimeout [incubator-kie-tools]

Posted by "fantonangeli (via GitHub)" <gi...@apache.org>.
fantonangeli commented on issue #3310:
URL: https://github.com/apache/incubator-kie-tools/issues/3310#issuecomment-3407221860

   @ricardozanini it seems the part related to timeouts causes the issue:
   ```
         "timeouts": {
           "eventTimeout": "PT30S"
         }
   ```
   removing it the diagram is rendered. 
   Workflow timeouts are marked as partially implemented in our [docs](https://sonataflow.org/serverlessworkflow/latest/core/cncf-serverless-workflow-specification-support.html). 
   We are also adding efforts to replace the diagram with the new implementation.


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] SonataFlow editor / diagrammer can't handle eventTimeout [incubator-kie-tools]

Posted by "tiagobento (via GitHub)" <gi...@apache.org>.
tiagobento commented on issue #3310:
URL: https://github.com/apache/incubator-kie-tools/issues/3310#issuecomment-4920043180

   Closing due to https://github.com/apache/incubator-kie-tools/pull/3540


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] SonataFlow editor / diagrammer can't handle eventTimeout [incubator-kie-tools]

Posted by "ricardozanini (via GitHub)" <gi...@apache.org>.
ricardozanini commented on issue #3310:
URL: https://github.com/apache/incubator-kie-tools/issues/3310#issuecomment-3422865695

   @fjtirado IIRC, we have timeouts already implemented, correct? We must update the docs in this case.


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org