Class BPMNSubProcess
Subprocess is a group of tasks used to hide or reveal details of additional levels, which can be done using the collapsed property.
Inherited Members
Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
Assembly: Syncfusion.EJ.dll
Syntax
public class BPMNSubProcess : EJTagHelper
Constructors
BPMNSubProcess()
Declaration
public BPMNSubProcess()
Properties
Adhoc
Gets or sets whether the bpmn sub process is without any prescribed order or not
Declaration
[JsonProperty("Adhoc")]
public bool Adhoc { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | false |
Examples
BPMNNode Node = new BPMNNode()
{
Name = "bpmn",
Width = 100, Height = 100,
OffsetX = 100, OffsetY = 100,
Shape = BPMNShapes.Activity,
Activity = BPMNActivity.SubProcess,
SubProcess = new BPMNSubProcess() { Adhoc = true }
};
Boundary
Gets or sets the boundary of the BPMN process
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("boundary")]
public BPMNBoundary Boundary { get; set; }
Property Value
Type | Description |
---|---|
BPMNBoundary | BPMNBoundary.Default |
Examples
BPMNNode Node = new BPMNNode()
{
Name = "bpmn",
Width = 100, Height = 100,
OffsetX = 100, OffsetY = 100,
Shape = BPMNShapes.Activity,
Activity = BPMNActivity.SubProcess,
SubProcess = new BPMNSubProcess() { Boundary = BPMNBoundary.Call }
};
Collapsed
Gets or sets whether the bpmn subprocess is collapsed or not
Declaration
[JsonProperty("collapsed")]
public bool Collapsed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true |
Examples
BPMNNode Node = new BPMNNode()
{
Name = "bpmn",
Width = 100, Height = 100,
OffsetX = 100, OffsetY = 100,
Shape = BPMNShapes.Activity,
Activity = BPMNActivity.SubProcess,
SubProcess = new BPMNSubProcess() { Collapsed = false }
};
Compensation
Gets or sets whether the bpmn subprocess is triggered as a compensation of a specific activity
Declaration
[JsonProperty("compensation")]
public bool Compensation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | false |
Examples
BPMNNode Node = new BPMNNode()
{
Name = "bpmn",
Width = 100, Height = 100,
OffsetX = 100, OffsetY = 100,
Shape = BPMNShapes.Activity,
Activity = BPMNActivity.SubProcess,
SubProcess = new BPMNSubProcess() { Compensation = true }
};
Event
Gets or sets the type of the BPMN Events. Applicable, if the subprocess is an event type process.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("event")]
public BPMNEvents Event { get; set; }
Property Value
Type | Description |
---|---|
BPMNEvents | BPMNEvents.Start |
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.Event, Event = BPMNEvents.Start }
};
Events
Gets or sets collection of objects where each object represents an Event attached to the task
Declaration
[JsonProperty("events")]
public Collection Events { 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,
Events = new Collection() {
new BPMNEvent() { Event = BPMNEvents.Start, Offset = new DiagramPoint(0.25f, 1f) }
} }
};
Loop
Gets or sets the type of loop marker of a BPMN Task. Applicable, if the type of the bpmn activity is SubProcess.
Declaration
[JsonProperty("loop")]
[JsonConverter(typeof(StringEnumConverter))]
public BPMNLoops Loop { get; set; }
Property Value
Type | Description |
---|---|
BPMNLoops | BPMNLoops.None |
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.parallelMultiInstance }
};
Model.Nodes.Add(Node);
Processes
Declaration
[JsonProperty("processes")]
public Collection Processes { get; set; }
Property Value
Type | Description |
---|---|
Collection |
Trigger
Gets or sets the type of the BPMN Triggers. Applicable, if the type of the bpmn Subprocess is Event.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("trigger")]
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.Activity,
Activity = BPMNActivity.SubProcess,
SubProcess = new BPMNSubProcess() {
Type = BPMNSubProcessTypes.Event,
Event = BPMNEvents.Start,
Trigger = BPMNTriggers.Message }
};
Type
Gets or sets the type of the BPMN SubProcess
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("type")]
public BPMNSubProcessTypes Type { get; set; }
Property Value
Type | Description |
---|---|
BPMNSubProcessTypes | BPMNSubProcessTypes.None |
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.Event }
};