BPMN DataStore in Blazor Diagram Component

16 Feb 20231 minute to read

DataStore is used to store or access data associated with a business process. To create a dataStore, the node property Shape should be set as BpmnDataStore. The following code example explains how to create a data source.

@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Nodes="@nodes"/>

    // Initialize the node collection with node.
    DiagramObjectCollection<Node> nodes;

    protected override void OnInitialized()
        nodes = new DiagramObjectCollection<Node>();
        Node node = new Node()
            // Position of the node.
            OffsetX = 100,
            OffsetY = 100,
            // Size of the node.
            Width = 100,
            Height = 100,
            // Unique Id of the node.
            ID = "node1",
            // Sets shape to DataStore.
            Shape = new BpmnDataStore()

You can download a complete working sample from GitHub

BPMN Datasource