Flow
Shows quantities moving through steps in a process.
When to use
- Show where incoming work is completed, redirected or held up.
Examples
Connect two steps
Loading the example
<k:Flow height="200" unit="orders" live="false" label="Order flow">
<k:nodes>
<k:FlowNode key="received" label="Received" value="18"/>
<k:FlowNode key="packed" label="Packed" column="1" value="18"/>
</k:nodes>
<k:links><k:FlowLink source="received" target="packed" value="18"/></k:links>
</k:Flow>Inspect a bottleneck
Loading the example
<k:Flow height="280" unit="orders" label="Dispatch flow" select=".onSelect">
<k:nodes>
<k:FlowNode key="packed" label="Packed" value="30"/>
<k:FlowNode key="sent" label="Dispatched" column="1" value="24"/>
<k:FlowNode key="waiting" label="Waiting" column="1" value="6" state="wait" note="Carrier pending"/>
</k:nodes>
<k:links>
<k:FlowLink source="packed" target="sent" value="24"/>
<k:FlowLink source="packed" target="waiting" value="6"/>
</k:links>
</k:Flow>sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.DispatchFlow", {
onSelect(event) {
const flow = event.getSource();
const node = flow.getNodes().find((node) => node.getKey() === event.getParameter("key"));
Toast.show(node ? node.getLabel() : "Selection cleared");
}
}));API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
height | int | 340 | Height in pixels |
unit | string | Unit of measure | |
selectedKey | string | Key of the selected step | |
live | boolean | true | Whether to animate the particles |
label | string | Accessible name |
Aggregations
| Name | Type | Description |
|---|---|---|
nodes | FlowNode[] | Process steps |
links | FlowLink[] | Connections between steps |
Events
| Name | Type | Description |
|---|---|---|
select | key: string | A step was selected. An empty key clears selection |
FlowNode
A step in a process flow.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
key | string | Step key | |
label | string | Label | |
note | string | Secondary note | |
column | int | 0 | Column index from the left |
value | float | 0 | Quantity at the step |
state | string | none | none, wait or danger |
FlowLink
A quantity flowing between two process steps.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
source | string | Source step key | |
target | string | Destination step key | |
value | float | 0 | Quantity |