Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramBpmnDataObject - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramBpmnDataObject

    Represents the behavior of the Bpmn data object.

    Inheritance
    System.Object
    SfDiagramBase
    DiagramBpmnDataObject
    Inherited Members
    SfDiagramBase.UpdateCollection(IList, Boolean)
    SfDiagramBase.RandomString(Int32)
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramBpmnDataObject : SfDiagramBase
    Remarks
    A data object represents information flowing through the process, such as data placed into the process, data resulting from the process, data that needs to be collected, or data that must be stored. To define a DataObject, set the shape to DataObject and the type of property defines whether data is an input or output. Users can create multiple instances of the data object with the collection property of data.
    Examples
    <SfDiagram ID="Diagram" Height="600px" Nodes="@NodeCollection">
    </SfDiagram>
    @code{
     //Initialize the node collection with node
     ObservableCollection<DiagramNode> NodeCollection = new ObservableCollection<DiagramNode>()
     {
       new DiagramNode()
       {
         //Position of the node
         OffsetX = 100,
         OffsetY = 100,
         //Size of the node
         Width = 100,
         Height = 100,
         //Unique Id of the node
         Id = "node1",
         //Sets type to Bpmn and shape to DataObject
         Shape = new DiagramShape()
         {
            Type = Shapes.Bpmn,
            BpmnShape=BpmnShapes.DataObject,
            //Sets collection to true when Dataobject is not a Single instance
            DataObject=new DiagramBpmnDataObject()
            {
              Collection=true,
              Type=BpmnDataObjects.Input
             }
          }
         },
        };
       }

    Constructors

    DiagramBpmnDataObject()

    Represents the behavior of the Bpmn data object.

    Declaration
    public DiagramBpmnDataObject()

    Properties

    Collection

    Specifies whether the data object is a collection or not. By default, it is set to false.

    Declaration
    public bool Collection { get; set; }
    Property Value
    Type Description
    System.Boolean

    Type

    Specifies whether the data is an input or output. By default, it is set to None.

    Declaration
    public BpmnDataObjects Type { get; set; }
    Property Value
    Type Description
    BpmnDataObjects
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved