menu

ASP.NET MVC

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BPMNNode

    Show / Hide Table of Contents

    Class BPMNNode

    BPMN shapes are used to represent the internal business procedure in a graphical notation and allows you to communicate the procedures in a standard manner.

    Inheritance
    System.Object
    EJTagHelper
    NodeBase
    Node
    BPMNNode
    Inherited Members
    Node.FillColor
    Node.BorderColor
    Node.BorderGradient
    Node.BorderWidth
    Node.Flip
    Node.BorderDashArray
    Node.Opacity
    Node.IsExpanded
    Node.Gradient
    Node.Type
    Node.Shadow
    NodeBase.Children
    NodeBase.Name
    NodeBase.Width
    NodeBase.ZOrder
    NodeBase.Height
    NodeBase.OffsetX
    NodeBase.OffsetY
    NodeBase.Visible
    NodeBase.AllowDrop
    NodeBase.Constraints
    NodeBase.Tag
    NodeBase.Labels
    NodeBase.Ports
    NodeBase.RotateAngle
    NodeBase.ExpandIcon
    NodeBase.CollapseIcon
    NodeBase.IsGroup
    NodeBase.ConnectorPadding
    NodeBase.Pivot
    NodeBase.Tooltip
    NodeBase.AddInfo
    NodeBase.Parent
    NodeBase.CssClass
    NodeBase.ExcludeFromLayout
    NodeBase.HorizontalAlign
    NodeBase.VerticalAlign
    NodeBase.MarginLeft
    NodeBase.MarginTop
    NodeBase.MarginRight
    NodeBase.MarginBottom
    NodeBase.MinHeight
    NodeBase.MinWidth
    NodeBase.MaxWidth
    NodeBase.MaxHeight
    NodeBase.Container
    NodeBase.PaletteItem
    EJTagHelper.GetControlDetails()
    EJTagHelper.GetControlDetails(String)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class BPMNNode : Node

    Constructors

    BPMNNode()

    Initializes a new instance of the BPMNNode class.

    Declaration
    public BPMNNode()

    BPMNNode(BPMNNode)

    Initializes a new instance of the BPMNNode class.

    Declaration
    public BPMNNode(BPMNNode src)
    Parameters
    Type Name Description
    BPMNNode src

    Properties

    Activity

    Gets or sets the type of BPMN Activity. Applicable, if the node is a bpmn activity.

    Declaration
    [JsonProperty("activity")]
    [JsonConverter(typeof(StringEnumConverter))]
    public BPMNActivity Activity { get; set; }
    Property Value
    Type Description
    BPMNActivity

    BPMNActivity.Task

    Examples
               BPMNNode Node = new BPMNNode();
               Node.Name = "node";
               Node.Width = 100;
               Node.Height = 100;
               Node.OffsetX = 100;
               Node.OffsetY = 100;
               Node.Type = Shapes.BPMN;
               Node.Shape = BPMNShapes.Activity;
               Node.Activity = BPMNActivity.SubProcess;

    Annotation

    Gets or sets the properties of BPMN Annotation.

    Declaration
    [JsonProperty("annotation")]
    public BPMNAnnotation Annotation { get; set; }
    Property Value
    Type Description
    BPMNAnnotation

    Diagram.BPMNAnnotation

    Examples
                   BPMNNode Node = new BPMNNode() { 
                       Name = "bpmn",
                       Width = 100, Height = 100,
                       OffsetX = 100, OffsetY = 100,
                       Shape = BPMNShapes.DataObject,
                       Data = new BPMNDataObject() { Type = BPMNDataObjects.Input },
                       Annotation = new BPMNAnnotation() { 
                           Text = "Annotaion Text",
                           Angle = 45, Length=120, 
                           Width = 100 }
                       };

    Collection

    Gets or sets whether the BPMN data object is a collection or not

    Declaration
    [Obsolete("Use Data.Collection")]
    [JsonProperty("collection")]
    public bool Collection { get; set; }
    Property Value
    Type Description
    System.Boolean

    false

    Examples
               BPMNNode Node = new BPMNNode();
               Node.Name = "dataobject";
               Node.Width = 100;
               Node.Height = 100;
               Node.OffsetX = 100;
               Node.OffsetY = 100;
               Node.Type = Shapes.BPMN;
               Node.Shape = BPMNShapes.DataObject;
               Node.Collection = true;
               Model.Nodes.Add(Node); 

    Data

    Gets or sets the data model of a BPMN DataObjects.

    Declaration
    [JsonProperty("data")]
    public BPMNDataObject Data { get; set; }
    Property Value
    Type Description
    BPMNDataObject

    Diagram.BPMNDataObject

    Examples
                   BPMNNode Node = new BPMNNode() {
                       Name = "bpmn",
                       Width = 100, Height = 100,
                       OffsetX = 100, OffsetY = 100,
                       Shape = BPMNShapes.DataObject,
                       Data = new BPMNDataObject() {
                           Type = BPMNDataObjects.Input
                       } };

    Direction

    Gets or sets the event direction of the bpmn shape

    Declaration
    [JsonConverter(typeof(StringEnumConverter))]
    [JsonProperty("direction")]
    public BPMNDirections Direction { get; set; }
    Property Value
    Type Description
    BPMNDirections

    BPMNDirections.None

    Examples
               BPMNNode Node = new BPMNNode()
               {
                   Name = "node",
                   Shape = BPMNShapes.AssociationFlow,
                   Direction = BPMNDirections.BiDirectional
               };

    Event

    Gets or sets the type of the BPMN Events. Applicable, if the node is a bpmn event

    Declaration
    [JsonConverter(typeof(StringEnumConverter))]
    [JsonProperty("event")]
    public BPMNEvents Event { get; set; }
    Property Value
    Type Description
    BPMNEvents

    BPMNEvents.Start

    Examples
               BPMNNode Node = new BPMNNode();
               Node.Name = "node";
               Node.Width = 100;
               Node.Height = 100;
               Node.OffsetX = 100;
               Node.OffsetY = 100;
               Node.Shape = BPMNShapes.Event;
               Node.Event = BPMNEvents.Intermediate;

    Gateway

    Gets or sets  the type of the BPMN Gateway. Applicable, if the node is a bpmn gateway

    Declaration
    [JsonProperty("gateway")]
    [JsonConverter(typeof(StringEnumConverter))]
    public BPMNGateways Gateway { get; set; }
    Property Value
    Type Description
    BPMNGateways

    BPMNGateways.None

    Examples
               BPMNNode Node = new BPMNNode();
               Node.Name = "node";
               Node.Width = 100;
               Node.Height = 100;
               Node.OffsetX = 100;
               Node.OffsetY = 100;
               Node.Shape = BPMNShapes.Gateway;
               Node.Gateway = BPMNGateways.Exclusive;

    Shape

    Gets or sets the shape of the node. It depends upon the type of node

    Declaration
    [JsonConverter(typeof(StringEnumConverter))]
    [JsonProperty("shape")]
    public BPMNShapes Shape { get; set; }
    Property Value
    Type Description
    BPMNShapes

    BPMNShapes.Event

    Examples
               BPMNNode Node = new BPMNNode()
               {
                   Name = "node",
                   Width = 100, Height = 100,
                   OffsetX = 100, OffsetY = 100,
                   Shape = BPMNShapes.Activity
               };

    SubProcess

    Gets or sets the sub process of a BPMN Activity. Applicable, if the type of the bpmn activity is sub process.

    Declaration
    [JsonProperty("subProcess")]
    public BPMNSubProcess SubProcess { get; set; }
    Property Value
    Type Description
    BPMNSubProcess

    Diagram.BPMNSubProcess

    Examples
           BPMNNode Node = new BPMNNode() {
               Name = "bpmn",
               Width = 100, Height = 100,
               OffsetX = 100, OffsetY = 100,
               Shape = BPMNShapes.Activity,
               Activity = BPMNActivity.SubProcess,
               SubProcess = new BPMNSubProcess() { Loop = BPMNLoops.Standard } 
           };

    Task

    Gets or sets the task of the bpmn activity. Applicable, if the type of activity is set as task

    Declaration
    [JsonProperty("task")]
    public BPMNTask Task { get; set; }
    Property Value
    Type Description
    BPMNTask

    Diagram.BPMNTask

    Examples
               BPMNNode Node = new BPMNNode()
               {
                   Name = "bpmn",
                   Width = 100, Height = 100,
                   OffsetX = 100, OffsetY = 100,
                   Shape = BPMNShapes.Activity,
                   Activity = BPMNActivity.Task,
                   Task = new BPMNTask() { Compensation = true }
               };

    Trigger

    Gets or sets the type of BPMN Event Triggers

    Declaration
    [JsonProperty("trigger")]
    [JsonConverter(typeof(StringEnumConverter))]
    public BPMNTriggers Trigger { get; set; }
    Property Value
    Type Description
    BPMNTriggers

    BPMNTriggers.None

    Examples
               BPMNNode Node = new BPMNNode()
               {
                   Name = "bpmn",
                   Width = 100, Height = 100,
                   OffsetX = 100, OffsetY = 100,
                   Shape = BPMNShapes.Event,
                   Trigger = BPMNTriggers.Message
               };

    Methods

    Clone()

    Performs a deep copy of the set of matched elements, meaning that it copies the matched elements as well as all of their descendant elements.

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object

    object

    Overrides
    Node.Clone()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved