DiagramsFactory Class

Factory to generate objects for diagrams.

Definition

Namespace: MobileTrack.Web.Components.Extensions
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static class DiagramsFactory
Inheritance
Object    DiagramsFactory

Methods

AssignDefaultIfNotProper Assigns the default value to the object if it's not a valid value.
CallThirdPartyEndPoint Sends an API message to a third party endpoint.
CreateDiagram Generates a diagram from the action flow DTO model (usually pulled from DB).
CreateNodeFromDto Method to create a NodeModel (for the diagram) from NodeDto (from the database)
CreatePorts Generates a new list of PortDto
GetAccountsByEnvironment Node that retrieves AccountDto's based on their assigned environment.
GetAccountsByRole Node that retrieves AccountDto's based on their assigned roles.
GetBooleanFreeField Node that retrieves a BooleanIFreeFields from a business object.
GetCompanyByItem Node for retrieving the CompanyDto based on an item that is part of said company.
GetCompanyMainManager Node that retrieves the MainManagerAccount from a CompanyDto
GetDateTimeFreeField Node that retrieves a DateTimeIFreeFields from a business object.
GetEmailAddress Node to retrieve an email address from a IHasEmailAddress entity.
GetEnvironment Node to retrieve a EnvironmentDto
GetLabel Node to retrieve the Label out of a business object (IIdLabel)
GetNumberFreeField Node that retrieves a DoubleIFreeFields from a business object.
GetPhoneNumber Grabs a phone number from a AccountDto or DeviceDto
GetRole Node to retrieve a RoleDto
GetScreenCenter Gets the central location of the screen's viewport of a diagram.
Note: the value gets subtracted a bit, as this value is used to get a node to be placed at the center of the screen, so we need to take the left/top offset into account.
GetTextFreeField Node that retrieves a StringIFreeFields from a business object.
IfEqual Checks if two numbers are equal, then branches out in two output ports for further actions.
IfEqualOrGreater Checks if the first value is equal or greater than the second value, then branches out in two output ports for further actions.
IfEqualOrLower Checks if the first value is equal or lower than the second value, then branches out in two output ports for further actions.
IfGreater Checks if the first value greater than the second value, then branches out in two output ports for further actions.
IfLower Checks if the first value is lower than the second value, then branches out in two output ports for further actions.
IfResourcesSameInstance Checks if resources are the same instance
IfTrue Checks if a statement is true, then branches out in two output ports for further actions.
LocalizedText Retrieves a localized string based on a key and the provided culture (of a user or company).
MathAddition Generates a node that combines two number values together.
MathMax Generates a node that returns the highest of two numbers.
MathMin Generates a node that returns the lowest of two numbers.
MathSubtract Generates a node that combines two number values together.
OnAccountCreatedNode Generates the start node invoked when an AccountDto has been created, either automatically or by a user.
OnAccountDeletedNode Generates the start node invoked when an AccountDto has been deleted, either automatically or by a user.
OnAccountUpdatedNode Generates the start node invoked when an AccountDto has been updated, either automatically or by a user.
OnDeviceConnectedNode Generates the start node invoked when an AccountDto has been created, either automatically or by a user.
OnDeviceCreatedNode Generates the start node invoked when a DeviceDto has been updated, either automatically or by the user.
OnDeviceDeletedNode Generates the start node invoked when a DeviceDto has been deleted, either automatically or by the user.
OnDeviceDisconnectedNode Generates the start node invoked when an AccountDto has been created, either automatically or by a user.
OnDeviceMessageReceivedNode Generates the start node invoked when an AccountDto has been created, either automatically or by a user.
OnDeviceRebuildNode Generates the start node invoked when a DeviceDto has been rebuild, either automatically or by the user.
OnDeviceUpdatedNode Generates the start node invoked when a DeviceDto has been updated, either automatically or by the user.
OnEnvironmentCreatedNode Generates the start node invoked when a EnvironmentDto has been created, either automatically or by the user.
OnEnvironmentDeletedNode Generates the start node invoked when a EnvironmentDto has been deleted, either automatically or by the user.
OnEnvironmentUpdatedNode Generates the start node invoked when a EnvironmentDto has been updated, either automatically or by the user.
OnMapMarkerCreatedNode Generates the start node invoked when a MapMarkerDto has been created, either automatically or by the user.
OnMapMarkerDeletedNode Generates the start node invoked when a MapMarkerDto has been deleted, either automatically or by the user.
OnMapMarkerUpdatedNode Generates the start node invoked when a MapMarkerDto has been updated, either automatically or by the user.
ParametersNode Generates a node that contains parameters for the action flow.
SendEmail Sends an email to a (number of) recipient(s).
SendSms Sends an SMS message to a (number of) recipient(s).
Template Creates a template so the user can fill in parameters for it.
ToDiagramPoint Converts a Point to a Point
ToNodeDto Turns a Node from the Diagram into a format for saving to Cosmos DB.
WaitForAllTasksToComplete Waits for all tasks in the entry port to complete before proceeding.
WaitForAnyTaskToComplete Waits for any tasks in the entry port to complete before proceeding.

See Also