Class DiagramBpmnTransactionSubProcess
Specifies the behavior of the BpmnTransactionSubProcess.
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramBpmnTransactionSubProcess : SfDiagramBase
Remarks
The transaction is a set of activities that logically belong together that all contained activities must complete their parts of the transaction otherwise, the process is failed. The execution result of a transaction is one of the following |
• Successful Completion. |
• Unsuccessful Completion (Cancel). |
• Hazard (Exception). |
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",
//Defines the type to BPMN and shape to activity
Shape = new DiagramShape()
{
Type = Shapes.Bpmn,
BpmnShape = BpmnShapes.Activity,
//Sets the activity to subprocess
Activity = new DiagramBpmnActivity()
{
Activity = BpmnActivities.SubProcess,
//Sets collapsed to true and type to Transaction
SubProcess = new DiagramBpmnSubProcess()
{
Collapsed = true,
Type = BpmnSubProcessTypes.Transaction,
//Sets offset and visible for cancel and offset for failure
Transaction = new DiagramBpmnTransactionSubProcess()
{
Cancel = new CancelSubEvent(){ Visible = true, Offset = new BpmnSubEventOffset(){ X = 0.25, Y = 1}},
Failure = new FailureSubEvent(){ Offset = new BpmnSubEventOffset(){ X = 0.75, Y = 1}}
}
},
}
}
}
};
}
Constructors
DiagramBpmnTransactionSubProcess()
Specifies the behavior of the BpmnTransactionSubProcess.
Declaration
public DiagramBpmnTransactionSubProcess()
Properties
Cancel
Specifies the size and position of the cancel port.
Declaration
public CancelSubEvent Cancel { get; set; }
Property Value
Type | Description |
---|---|
CancelSubEvent |
Failure
Specifies the size and position of the failure port.
Declaration
public FailureSubEvent Failure { get; set; }
Property Value
Type | Description |
---|---|
FailureSubEvent |
Success
Specifies the size and position of the success port.
Declaration
public SuccessSubEvent Success { get; set; }
Property Value
Type | Description |
---|---|
SuccessSubEvent |