I am working with a data app which needs to send data, have something calculated, and sent back into the data from a secondary compute engine. The computation is long in duration - several seconds - long enough to make it not-user-friendly in the data app.
I am investigating 2 things:
- is there a ready-to-use asynchronous calculation metanode / component already out there?
- can a KNIME data app web-page be partially loaded while the compute happens externally, and when the data gets sent back, KNIME displays the data in table form (either immediately or after the click of a ‘Refresh’ type button)?
I like the idea of building user-friendly data apps
I will share your ideas / requests regarding partially loaded data app web-pages with our developers. For now this is not possible.
For the meantime I have an idea for a workaround though
You can put the call workflow node outside of the component in parallel to your component. Once the call workflow node is done you can write the resulting file into a temp folder.
Inside of the component you can check whether the file exists already and control with a switch e.g. an Empty Table Switch node, whether or not to execute the nodes that depend on the data from the call workflow.
All nodes and views that don’t depend on the data from the Call Workflow can be executed already and your user can start inspecting them. With a click on the Refresh Button Widget node the User can check whether the new data is already available.
Could this be a workaround for your data app?