Package org.knime.core.webui.node.dialog.defaultdialog
package org.knime.core.webui.node.dialog.defaultdialog
This package offers a default implementation of a Node Dialog as described in
org.knime.core.webui.node.dialog. It utilizes JsonForms to represent the
dialog and its components. The text representation of the settings is a JSON with three parts:
- Data holding the state of the NodeSettings.
- A Schema specifying the data.
- A UISchema specifying the UI.
DefaultNodeSettings on how to define
the dialog via a declarative API.
Known limitations
- Updates between settings are not possible if the target setting is nested within an array layout setting and as a source it is only possible to trigger an update by every change of an array layout, not individual changes of specific nested settings.
- Dependency chains are not possible, i.e. if setting A gets updated by setting B and setting B gets updated by setting C, an update of setting C does not influence A. In order to circumvent this, it is currently necessary to have a direct dependency from A to C, too.
- The order in which updates due to dependencies between settings are resolved is non-deterministic.
- It is not possible at the moment to have the same combination of settings name and containing class for two
separate
Credentials. I.e. for a single dialog it is not possible to reuse a common class containing credentials twice. The same holds for multiple dialogs and in particular it will not work to open a dialog which contains credentials twice at the same time currently. (TODO: UIEXT-1375 resolve this limitation)
- Author:
- Paul Bärnreuther
- See Also:
-
ClassDescriptionThe converter used in the
FlowVariableDataServiceImplof theDefaultNodeDialog.Default node dialog implementation where all the dialog widgets are defined through aDefaultNodeSettings-implementation.Marker interface for implementations that define aDefaultNodeDialog.A context that holds any available information that might be relevant for creating a new instance ofDefaultNodeSettings.Serializes POJOs into strings using the same object mapper as is used forDefaultNodeSettings-implementations.ANodeSettingsServicedecorator that can be used to enable saving and loading flow variables ofNodeDialogusing theDefaultNodeDialog.getPage()page.A utility class for validating viewDefaultNodeSettingsinstances overwritten by flow variables.