Class BpmnEvent
Represents an event in a BPMN diagram as a circle that depicts an action within a process.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class BpmnEvent : Shape, IDiagramObject, ICloneable
Remarks
In BPMN, events are visualized as circles in the diagram. These events can occur at the start, intermediate stages, or the end of a process.
This class provides functionality to define and manipulate BPMN events within a diagram.
Examples
Node node = new Node()
{
ID = "node1",
Width = 70,
Height = 70,
OffsetX = 100,
OffsetY = 300,
Shape = new BpmnEvent()
{
EventType = BpmnEventType.Intermediate,
Trigger = BpmnEventTrigger.None
}
};
Constructors
BpmnEvent()
Initializes a new instance of the BpmnEvent.
Declaration
public BpmnEvent()
BpmnEvent(BpmnEvent)
Creates a new instance of the BpmnEvent class.
Declaration
public BpmnEvent(BpmnEvent src)
Parameters
Type | Name | Description |
---|---|---|
BpmnEvent | src | An existing BpmnEvent instance to copy. |
Properties
EventType
Gets or sets the type of the BPMN event.
Declaration
public BpmnEventType EventType { get; set; }
Property Value
Type | Description |
---|---|
BpmnEventType | A BpmnEventType value representing the type of event in the process. The default value is Start. |
Remarks
This property defines the nature and classification of the event within the process flow.
Examples
Node node = new Node()
{
ID = "node1",
Width = 70,
Height = 70,
OffsetX = 100,
OffsetY = 300,
Shape = new BpmnEvent()
{
EventType = BpmnEventType.Intermediate,
Trigger = BpmnEventTrigger.None
}
};
Trigger
Gets or sets the trigger that initiates the BPMN event.
Declaration
public BpmnEventTrigger Trigger { get; set; }
Property Value
Type | Description |
---|---|
BpmnEventTrigger | A BpmnEventTrigger value indicating the event trigger type. The default value is None. |
Remarks
This property specifies the condition or signal that activates the event.
Examples
Node node = new Node()
{
ID = "node1",
Width = 70,
Height = 70,
OffsetX = 100,
OffsetY = 300,
Shape = new BpmnEvent()
{
EventType = BpmnEventType.Intermediate,
Trigger = BpmnEventTrigger.None
}
};
Methods
Clone()
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | A new instance of BpmnEvent that is identical to the current instance. |