You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "fantonangeli (via GitHub)" <gi...@apache.org> on 2024/10/09 16:16:36 UTC
[I] [SonataFlow] Empty WF Instance page if variables is null [incubator-kie-tools]
fantonangeli opened a new issue, #2654:
URL: https://github.com/apache/incubator-kie-tools/issues/2654
When the UI receives a WF Instance with `"variables": null,` the WF Instance page is empty.
**Steps to replicate:**
https://github.com/dmarrazzo/swf-simple-order
1. start callback_state_timeouts
2. instance page > workflow instance
3. the page is empty
4. wait 30 seconds (timeout goes off)
5. now the workflow instance is completed
6. the detailed page works as expected!
**Debug information:**
The working DI answer is:
```
{
"data": {
"ProcessInstances": [
{
"id": "531ca071-8c28-46ae-b93a-7e95c6883bbc",
"processId": "callback_state_timeouts",
"processName": "Callback State Timeouts Example",
"businessKey": null,
"parentProcessInstanceId": null,
"parentProcessInstance": null,
"roles": [],
"variables": {
"workflowdata": {
"exitMessage": "The callback event has not arrived, and the timeout has overdue."
}
},
"state": "ACTIVE",
"start": "2024-10-09T15:42:17.621Z",
"lastUpdate": "2024-10-09T15:42:17.621Z",
"end": null,
...
```
The one with which give the empty page has this property:
` "variables": null,`
Just a value like this would work for the UI:
` "variables": {},`
In fact, if I run the callback_state_timeouts workflow with simple data like this, the UI works:
`{"a":"b"}`
--
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] Empty WF Instance page if variables is null [incubator-kie-tools]
Posted by "fjtirado (via GitHub)" <gi...@apache.org>.
fjtirado closed issue #2654: [SonataFlow] Empty WF Instance page if variables is null
URL: https://github.com/apache/incubator-kie-tools/issues/2654
--
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