Class DiagramBpmnTask
This occurs within a process and it is not broken down to a finer level of detail.
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramBpmnTask : SfDiagramBase
Remarks
The task property of the node allows you to define the type such as sending, receiving, user-based tasks, etc. |
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",
//sets the type of shape to Bpmn and shape to activity
Shape = new DiagramShape()
{
Type = Shapes.Bpmn,
BpmnShape = BpmnShapes.Activity,
//Sets the activity type to task
Activity = new DiagramBpmnActivity(){ Activity = BpmnActivities.Task },
}
}
};
}
Constructors
DiagramBpmnTask()
This occurs within a process and it is not broken down to a finer level of detail.
Declaration
public DiagramBpmnTask()
Properties
Call
Specifies whether the task is global or not. By default, it is set false.
Declaration
public bool Call { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
The task property of the node allows you to define the type such as sending, receiving, user-based tasks, etc.
Examples
Activity=new DiagramBpmnActivity()
{
Activity = BpmnActivities.Task,
//Sets call to true
Task = new DiagramBpmnTask()
{
Call = true,
},
}
Compensation
Specifies whether the task is triggered as compensation for another task.
Declaration
public bool Compensation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Compensation is triggered when the operation is partially failed and enabled it with the compensation property of the task.
Examples
Activity=new DiagramBpmnActivity()
{
Activity = BpmnActivities.Task,
//set compensation to true
Task = new DiagramBpmnTask()
{
Compensation=true,
},
}
Loop
Specifies the task that is internally being looped and allows users to define the type of loop. The default value for Loop is None.
Declaration
public BpmnLoops Loop { get; set; }
Property Value
Type | Description |
---|---|
BpmnLoops |
Type
Specifies the type of Task. The default value for type is None.
Declaration
public BpmnTasks Type { get; set; }
Property Value
Type | Description |
---|---|
BpmnTasks |