Class BPMNTask
The BPMNTask allows you to define the type of task such as sending, receiving, user-based task, and more. By default, the type is set to “none”.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
Assembly: Syncfusion.EJ.dll
Syntax
public class BPMNTask : EJTagHelper
Constructors
BPMNTask()
Declaration
public BPMNTask()
Properties
Call
Gets or sets whether the task is a global task or not
Declaration
[JsonProperty("call")]
public bool Call { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | false |
Examples
BPMNNode Node = new BPMNNode()
{
Name = "bpmn",
Width = 100, Height = 100,
OffsetX = 100, OffsetY = 100,
Shape = BPMNShapes.Activity,
Activity = BPMNActivity.Task,
Task = new BPMNTask() { Call = true }
};
Compensation
Gets or sets whether the bpmn task is triggered as a compensation of a specific activity
Declaration
[JsonProperty("compensation")]
public bool Compensation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | false |
Examples
BPMNNode Node = new BPMNNode()
{
Name = "bpmn",
Width = 100, Height = 100,
OffsetX = 100, OffsetY = 100,
Shape = BPMNShapes.Activity,
Activity = BPMNActivity.Task,
Task = new BPMNTask() { Compensation = true }
};
Events
Declaration
[JsonProperty("events")]
public Collection Events { get; set; }
Property Value
Type | Description |
---|---|
Collection |
Loop
Gets or sets the type of loop marker of a BPMN Task. Applicable, if the type of the bpmn activity is Task.
Declaration
[JsonProperty("loop")]
[JsonConverter(typeof(StringEnumConverter))]
public BPMNLoops Loop { get; set; }
Property Value
Type | Description |
---|---|
BPMNLoops | BPMNLoops.None |
Examples
BPMNNode Node = new BPMNNode() {
Name = "bpmn",
Width = 100, Height = 100,
OffsetX = 100, OffsetY = 100,
Shape = BPMNShapes.Activity,
Activity = BPMNActivity.Task,
Task = new BPMNTask() { Loop = BPMNLoops.Standard }
};
Type
Gets or sets the type which specifies the nature of the action performed
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("type")]
public BPMNTasks Type { get; set; }
Property Value
Type | Description |
---|---|
BPMNTasks | BPMNTasks.None |
Examples
BPMNNode Node = new BPMNNode()
{
Name = "node",
Width = 100, Height = 100,
OffsetX = 100, OffsetY = 100,
Shape = BPMNShapes.Activity,
Activity = BPMNActivity.Task,
Task = new BPMNTask() { Type= BPMNTasks.Send } };
};