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.
Inherited Members
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 |