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.
Declaration
public BpmnActivity()
BpmnActivity(BpmnActivity)
Creates a new instance of the BpmnActivity class.
Declaration
public BpmnActivity(BpmnActivity src)
Parameters
Type | Name | Description |
---|---|---|
BpmnActivity | src | BpmnActivity |
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
Represents the process that is external to the current process definition. It allows you to create a reusable process definition that can be reused in multiple other process definitions.
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 activity performs AdHoc operation; 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,
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 call operation; otherwise, false.The default value is false. |
Remarks
This property is only applicable for BpmnActivity shape Node where ActivityType is Task.
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 performs Compensation; otherwise, false.The default value is false. |
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. |
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
This property is only applicable for BpmnActivity shape Node where ActivityType is Task.
Methods
Clone()
Creates a new BpmnActivity that is a copy of the BpmnActivity.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | it returns BpmnActivity |