ModelFactoryGenerateActionFlowNode Method

Generates a new NodeDto for an action flow based on information received from Blazor.Diagrams.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public static NodeDto GenerateActionFlowNode(
	Guid id,
	string label,
	ActionFlowNodeType type,
	bool deletable,
	string iconName,
	Point position,
	List<PortDto> inputPorts,
	List<PortDto> outputPorts,
	bool isStatic
)

Parameters

id  Guid
ID of the node
label  String
Label of the node
type  ActionFlowNodeType
Type of the node (the function it executes)
deletable  Boolean
Whether this node can be removed
iconName  String
Icon to the top-left of the node
position  Point
Position of the node
inputPorts  ListPortDto
Input ports
outputPorts  ListPortDto
Output ports
isStatic  Boolean
Whether the node is fixed in position

Return Value

NodeDto
Generated node

Exceptions

ArgumentException Thrown if label or iconName is null or whitespace, or if type is Empty.
ArgumentNullException Thrown if inputPorts or outputPorts is .

See Also