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+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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
EventAfterTimeSpan Checks if the input DeviceMessageDto is after the provided TimeOnly, then branches out in two output ports for further actions.
EventBeforeTimeSpan Checks if the input DeviceMessageDto is before the provided TimeOnly, then branches out in two output ports for further actions.
EventBetweenTimeSpans Checks if the input DeviceMessageDto is between the two provided TimeOnly's, then branches out in two output ports for further actions.
EventNode Generates an event node, which is used to trigger an action flow based on an incoming message or event code.
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.
GetCompanyMainManager Node that retrieves the MainManagerAccount from a CompanyDto
GetDateTimeFreeField Node that retrieves a DateTimeIFreeFields from a business object.
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.
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.
LocalizedText Retrieves a localized string based on a key and the provided culture (of a user or company).
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