Class BpmnActivity
Represents the work that a company or organization performs in a business process using a node in the diagram.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class BpmnActivity : Shape, IDiagramObject, ICloneable
Remarks
The activity can be either Task or CollapsedSubProcess
Examples
Node node = new Node()
{
ID = "node1",
Width = 70,
Height = 70,
OffsetX = 100,
OffsetY = 300,
Shape = new BpmnActivity()
{
ActivityType = BpmnActivityType.Task,
TaskType = BpmnTaskType.Service,
IsCall = true,
ISCompensationActivity = true,
Loop = BpmnLoopCharacteristic.Standard,
}
};
Constructors
BpmnActivity()
Initializes a new instance of the BpmnActivity class with default settings.
Declaration
public BpmnActivity()
BpmnActivity(BpmnActivity)
Creates a new instance of the BpmnActivity class.
Declaration
public BpmnActivity(BpmnActivity src)
Parameters
Type | Name | Description |
---|---|---|
BpmnActivity | src | An instance of BpmnActivity to copy. |
Properties
ActivityType
Gets or sets the type of BpmnActivity shape.
Declaration
public BpmnActivityType ActivityType { get; set; }
Property Value
Type | Description |
---|---|
BpmnActivityType | One of the BpmnActivityType enumeration that specifies type of activity performed by the BpmnActivity Node. The Default value is Task |
Remarks
Allows creating a reusable process definition external to the current process.
Examples
Node node = new Node()
{
ID = "node1",
Width = 70,
Height = 70,
OffsetX = 100,
OffsetY = 300,
Shape = new BpmnActivity()
{
ActivityType = BpmnActivityType.Task,
}
};
IsAdhoc
Gets or sets the value indicating whether the sub process is without any prescribed order or not.
Declaration
public bool IsAdhoc { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the SubProcess is ad-hoc; otherwise, false. Default is false. |
Examples
Node node = new Node()
{
ID = "node1",
Width = 70,
Height = 70,
OffsetX = 100,
OffsetY = 300,
Shape = new BpmnActivity()
{
ActivityType = BpmnActivityType.Subprocess,
IsCompensation = true,
SubProcessType = BpmnSubProcessType.Transaction,
IsAdhoc = true
}
};
IsCall
Gets or sets the value indicating whether the Activity defined in a process that is external to the current process definition.
Declaration
public bool IsCall { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the activity performs a call operation; otherwise, false. The default value is false. |
Remarks
Applicable only for BpmnActivity shape Node where ActivityType is Task.
Examples
Node node = new Node()
{
ID = "node1",
Width = 70,
Height = 70,
OffsetX = 100,
OffsetY = 300,
Shape = new BpmnActivity()
{
ActivityType = BpmnActivityType.Subprocess,
IsCall = true
}
};
IsCompensation
Gets or sets the value indicating whether the collection of tasks, describe some parts of the compensation method.
Declaration
public bool IsCompensation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the activity is part of a compensation method; otherwise, false. The default value is false. |
Examples
Node node = new Node()
{
ID = "node1",
Width = 70,
Height = 70,
OffsetX = 100,
OffsetY = 300,
Shape = new BpmnActivity()
{
ActivityType = BpmnActivityType.Subprocess,
IsCompensation = true,
}
};
Loop
Gets or sets the loop characteristics of an BpmnActivity shape.
Declaration
public BpmnLoopCharacteristic Loop { get; set; }
Property Value
Type | Description |
---|---|
BpmnLoopCharacteristic | One of the BpmnLoopCharacteristic enumeration that specifies the type of the Loop performed. The default type is None. |
Examples
Node node = new Node()
{
ID = "node1",
Width = 70,
Height = 70,
OffsetX = 100,
OffsetY = 300,
Shape = new BpmnActivity()
{
Loop = BpmnLoopCharacteristic.Standard
}
};
SubProcessType
Gets or sets the specific type of the subprocess to be performed.
Declaration
public BpmnSubProcessType SubProcessType { get; set; }
Property Value
Type | Description |
---|---|
BpmnSubProcessType | One of the BpmnSubProcessType enumeration that specifies the type of the subprocess performed. The default type is Default. |
Remarks
This property is only applicable for BpmnActivity shape Node where ActivityType is CollapsedSubProcess.
Examples
Node node = new Node()
{
ID = "node1",
Width = 70,
Height = 70,
OffsetX = 100,
OffsetY = 300,
Shape = new BpmnActivity()
{
ActivityType = BpmnActivityType.Subprocess,
IsCompensation = true,
SubProcessType = BpmnSubProcessType.Transaction,
}
};
TaskType
Gets or sets the type of the Task to be performed.
Declaration
public BpmnTaskType TaskType { get; set; }
Property Value
Type | Description |
---|---|
BpmnTaskType | One of the BpmnTaskType enumeration that specifies the type of the Task performed. The default type is None. |
Remarks
Applicable only for BpmnActivity shape Node where ActivityType is Task.
Examples
Node node = new Node()
{
ID = "node1",
Width = 70,
Height = 70,
OffsetX = 100,
OffsetY = 300,
Shape = new BpmnActivity()
{
ActivityType = BpmnActivityType.Task,
TaskType = BpmnTaskType.Service,
}
};
Methods
Clone()
Creates a new BpmnActivity that is a copy of the BpmnActivity.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | A new instance of BpmnActivity. |