Class BPMNEvent
An event is notated with a circle and it represents an event in a business process.
Inherited Members
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 BPMNEvent : EJTagHelper
Constructors
BPMNEvent()
Declaration
public BPMNEvent()
BPMNEvent(BPMNEvent)
Declaration
public BPMNEvent(BPMNEvent src)
Parameters
Type | Name | Description |
---|---|---|
BPMNEvent | src |
Properties
Event
Declaration
[JsonProperty("event")]
[JsonConverter(typeof(StringEnumConverter))]
public BPMNEvents Event { get; set; }
Property Value
Type | Description |
---|---|
BPMNEvents |
Labels
Gets or sets collection of objects where each object represents a label
Declaration
[JsonProperty("labels")]
public Collection Labels { get; set; }
Property Value
Type | Description |
---|---|
Collection | Collection |
Examples
BPMNNode Node = new BPMNNode()
{
Name = "bpmn",
Width = 100, Height = 100,
OffsetX = 100, OffsetY = 100,
Shape = BPMNShapes.Activity,
Activity = BPMNActivity.SubProcess,
SubProcess = new BPMNSubProcess() {
Type = BPMNSubProcessTypes.Transaction,
Collection labels = new Collection();
labels.Add(new Label() { Text = "Node1", FontColor = "Red" });
Events = new Collection() {
new BPMNEvent() { Event = BPMNEvents.Start, Offset = new DiagramPoint(0.25f, 1f) }
}
}
};
Name
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Offset
Declaration
[JsonProperty("offset")]
public DiagramPoint Offset { get; set; }
Property Value
Type | Description |
---|---|
DiagramPoint |
Ports
Gets or sets an collection of objects where each object represents a port
Declaration
[JsonProperty("ports")]
public Collection Ports { get; set; }
Property Value
Type | Description |
---|---|
Collection | Collection |
Examples
BPMNNode Node = new BPMNNode()
{
Name = "bpmn",
Width = 100, Height = 100,
OffsetX = 100, OffsetY = 100,
Shape = BPMNShapes.Activity,
Activity = BPMNActivity.SubProcess,
SubProcess = new BPMNSubProcess() {
Type = BPMNSubProcessTypes.Transaction,
Collection ports = new Collection();
ports.Add(new Port() { Name = "port1", Offset = new DiagramPoint(.5f, 0) });
ports.Add(new Port() { Name = "port1", Offset = new DiagramPoint(.5f, 1) });
Events = new Collection() {
new BPMNEvent() { Event = BPMNEvents.Start, Offset = new DiagramPoint(0.25f, 1f), Ports = ports }
}
}
};
Trigger
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("trigger")]
public BPMNTriggers Trigger { get; set; }
Property Value
Type | Description |
---|---|
BPMNTriggers |