Skip to content

Reference: UI configuration entries

The uiConfiguration { } block on a workflow type returns a UiConfiguration — a collection of entries that describe how the workflow's configuration form renders in SimScale Workbench, where the end-user actually configures it. (The SimKit Web UI uses the same UiConfiguration to render a read-only inspection view of the form structure.) The schema description language already covers basic concerns (label, doc, multiLanguageName); this page covers the extra entries beyond those.

A method carries the same block, returning the same UiConfiguration over its own configValueModel. The difference is in what the configuration is used for: a method configuration is presented, not edited — Workbench shows it in the details of an operation run, the SimKit Web UI on the method page. So for a method the presentation entries apply — navigation, list navigation, titles, visibility, plots and custom compound UIs — while the editing entries (sliders, geometry derivations) are accepted but have no effect on a read-only view.

UI entries are indexed by path — a JSON-pointer-shaped string that points at a field in the configuration schema (e.g. /edgeLength, /cellRefinement/level).

The entry catalogue, from framework/schema/src/main/kotlin/.../elements/ui/:

Marks a compound field as a navigable section — gets its own panel in the form, accessible via the navigation pane.

NavigationUiConfigurationEntry(
    path = "/meshing",
    label = MultiLanguageString("Meshing", mapOf(Locale.GERMAN to "Vernetzung")),
    icon = "…",   // optional icon reference
)

Use for top-level workflow sections: meshing, materials, boundary conditions, etc.

Like NavigationUiConfigurationEntry, but for a list-typed field — each list item gets its own navigable sub-panel.

NavigationListUiConfigurationEntry(
    path = "/boundaryConditions",
    label = MultiLanguageString("Boundary conditions"),
    itemLabel = MultiLanguageString("Boundary condition"),
)

Use for sets-of-things at workflow scope: boundary conditions, material assignments, optimization variables.

CompoundFieldTitleUiConfigurationEntry (builtin:title)

Sets a custom title for a compound field's panel — overrides the field's label.

CompoundFieldTitleUiConfigurationEntry(
    path = "/advancedSolver",
    title = MultiLanguageString("Advanced solver settings"),
)

SliderUiConfigurationEntry (builtin:slider)

Renders a numeric field as a slider with explicit bounds and step.

SliderUiConfigurationEntry(
    path = "/iterations",
    minValue = …,    // value-model
    maxValue = …,    // value-model
    step = …,        // value-model
)

min, max, step are value-model expressions, so they can depend on other configuration fields (e.g. a slider's max bounded by another field's value).

VisibilityUiConfigurationEntry (builtin:visibility)

Hide a field unless a condition holds. Common pattern: show "advanced" fields only when an enableAdvanced boolean is true.

VisibilityUiConfigurationEntry(
    path = "/advancedThreshold",
    visible = configValueModel.enableAdvanced,   // BooleanValue
)

The visible predicate is a value-model BooleanValue. The form re-evaluates it as the user changes other fields and shows / hides the target field accordingly.

Plot2DUiConfigurationEntry (builtin:plot2D)

Renders a list-typed configuration as a 2D plot (e.g. a curve defined by a list of points). Carries series definitions, color mappings, axis scales (linear / log).

Plot2DUiConfigurationEntry(
    path = "/curve",
    series = listOf(/* DataSeriesValue */),
    xAxisScale = AxisScale.LINEAR,
    yAxisScale = AxisScale.LOG,
    // …
)

Useful for component developers exposing data-series configurations (performance curves, response functions). Detailed sub-types (DataSeriesValue, ColorValue) are in the source.

GeometryDerivationUiConfigurationEntry (builtin:geometry_derivation)

Offer to populate a point field from the geometry of assigned entities — the "use the center of mass of the selected volume" action classic analysis types provide for origins and rotation centers. The field stays an ordinary, freely editable dimensional vector; the entry only names where a derived value can come from.

configValueModel.rotationOrigin.geometryDerivationUi(
    source = configValueModel.rotatingBodies,          // an entity assignment (single or list)
    derivation = GeometryDerivation.CENTER_OF_MASS,    // always explicit; the only derivation so far
)

The target must be a dimensionalVector field and the source an entity-assignment field. Inside a list element both references carry the element wildcard and resolve to the same element (/zones/*/origin from /zones/*/bodies). The geometric computation happens in the user interface through the CAD services; the workflow platform performs none.

CompoundFieldCustomUiConfigurationEntry (custom)

Escape hatch — a custom UI widget identified by name. The widget implementation lives in Workbench (where the form is editable) and is referenced by id.

CompoundFieldCustomUiConfigurationEntry(
    path = "/customWidget",
    customComponentName = "my-custom-widget",
)

Use sparingly — custom widgets need bespoke UI code, so they're expensive. Prefer one of the built-in entries when possible.

Composing a UiConfiguration

uiConfiguration {
    UiConfiguration(
        listOf(
            NavigationUiConfigurationEntry(path = "/meshing", label = …),
            NavigationListUiConfigurationEntry(path = "/boundaryConditions", label = …),
            VisibilityUiConfigurationEntry(path = "/advanced/threshold", visible = configValueModel.enableAdvanced),
            SliderUiConfigurationEntry(path = "/iterations", minValue = …, maxValue = …, step = …),
        ),
    )
}

Each entry is independent; they're collected as a flat list keyed by path.

What this isn't

  • Not the full UI. This is the configuration form surface only. Workbench and the SimKit Web UI have additional UI for non-form surfaces (workflow-definition graph, run viewer, data viewer) that aren't author-configurable per-component.
  • Not data-type UI. Data types have their own uiSchema { } block for instance rendering — different surface, separate doc.
  • Not list-element pickers. A field whose value is one element picked from another configuration list is an options binding — a schema-associated artifact (sibling of the validation rule set), authored in the definition, not here.
  • Not viewer geometry. Showing configuration values as viewer entities (probe points, spheres, boxes) and editing them back is a viewer entity rule set — a bidirectional value transformation, not a rendering hint. geometryDerivationUi is the one geometry-related entry here because it configures a form action, not a displayed entity.

Cross-references