Class DiagramBpmnEvent
Represents something happens during a business process and it is notated with a circle.
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramBpmnEvent : SfDiagramBase
Remarks
The type of events are as follows: |
• Start - indicates the beginning of the process and every business process starts with an event. |
• Intermediate - indicates the middle of the process. |
• End - indicates the beginning of the process and every business process ends with an event. |
Examples
<SfDiagram 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",
Shape = new DiagramShape()
{
//Sets type to Bpmn and shape to Event
Type = Shapes.Bpmn, BpmnShape = BpmnShapes.Event,
// Set the event type to End
Event = new DiagramBpmnEvent() { Event = BpmnEvents.End }
}
}
};
}
Constructors
DiagramBpmnEvent()
Represents something happens during a business process and it is notated with a circle.
Declaration
public DiagramBpmnEvent()
Properties
Event
It allows the user to define the type of event. The default value of the event is Start.
Declaration
public BpmnEvents Event { get; set; }
Property Value
Type | Description |
---|---|
BpmnEvents |
Trigger
Specifies the type of trigger. By default, it is set to None.
Declaration
public BpmnTriggers Trigger { get; set; }
Property Value
Type | Description |
---|---|
BpmnTriggers |
Examples
//...
Shape = new DiagramShape()
{
//Sets type to Bpmn and shape to Event
Type = Shapes.Bpmn, BpmnShape = BpmnShapes.Event,
// Set the event type to NonInterruptingIntermediate and set the trigger as message
Event = new DiagramBpmnEvent() { Event = BpmnEvents.NonInterruptingIntermediate, Trigger = BpmnTriggers.Message }
}
//...