Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramBpmnActivity - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramBpmnActivity

    Represents the task that is performed in a business process.

    Inheritance
    System.Object
    SfDiagramBase
    DiagramBpmnActivity
    Inherited Members
    SfDiagramBase.UpdateCollection(IList, Boolean)
    SfDiagramBase.RandomString(Int32)
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramBpmnActivity : SfDiagramBase
    Remarks
    There are two types of activities. They are listed as follows:
    1.Task: This occurs within a process and it is not broken down to a finer level of detail.
    2.Subprocess: This occurs within a process and it is broken down to a finer level of detail.
    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

    DiagramBpmnActivity()

    Represents the task that is performed in a business process.

    Declaration
    public DiagramBpmnActivity()

    Properties

    Activity

    Specifies the type of activity to be performed.

    Declaration
    public BpmnActivities Activity { get; set; }
    Property Value
    Type Description
    BpmnActivities

    SubProcess

    Specifies the group of tasks that are used to hide or reveal details of an additional level using the collapsed property.

    Declaration
    public DiagramBpmnSubProcess SubProcess { get; set; }
    Property Value
    Type Description
    DiagramBpmnSubProcess
    Examples
    Shape = new DiagramShape()
         {
            //Sets type to Bpmn and shape to Activity
            Type = Shapes.Bpmn, BpmnShape=BpmnShapes.Activity,
            Activity=new DiagramBpmnActivity()
            {
                //Sets activity to subprocess
                Activity = BpmnActivities.SubProcess,
                // Set collapsed of subprocess to true
                SubProcess = new DiagramBpmnSubProcess() { Collapsed = true }
            },
          }

    Task

    Specifies the type of task such as sending, receiving, etc. By default, the task is set to None.

    Declaration
    public DiagramBpmnTask Task { get; set; }
    Property Value
    Type Description
    DiagramBpmnTask
    Examples
    Shape = new DiagramShape()
         {
            Type = Shapes.Bpmn, BpmnShape=BpmnShapes.Activity,
            //Sets activity to Task
            Activity = new DiagramBpmnActivity()
            {
                Activity = BpmnActivities.Task,
                //Sets the type of the task to Send
                Task = new DiagramBpmnTask() { Type = BpmnTasks.Send }
             }
          }
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved