About Extending Entities by Adding Actions
  • 17 Jun 2022
  • 4 Minutes to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

About Extending Entities by Adding Actions

  • Dark
    Light

Article summary

Overview

After an Entity is created it will be organized into a Folder within the Designer Studio with the name [FolderEntityDataStructure]. The Entity will automatically generate a Configuration Folder. This is where Entity Actions can be applied. Extending Entities creates an object that extends an existing structure type in Decisions with additional metadata. Different ways that an Entity can be extended include Access Patterns, UserActions, Rules, Events, Triggers, and Services.

About Extending Features

After an Entity is created, the Configuration Folder will auto-generate. Select the Configuration Folder to open up the Action Bar located at the bottom of the Designer Studio.

  1. Extending Entities by adding an Access Pattern
  2. Extending Entities by adding User Actions
  3. Extending Entities by adding a Validation Rule
  4. Extending Entities by adding Entity Events
  5. Extending Entities by adding State Triggers
  6. Extending Entities by adding an Entity Service
  7. Extending Entities by  adding Generate descriptions
  8. Extending Entities by adding Action Visibility Rules
  9. Extending Entities by adding Create Reporting Data Flow

Action-Bar.jpg

Extending Entities by adding an Access Pattern

When an access pattern is added to an Entity, it allows a custom Fetch to be defined for the Entity. For example, pass the default Fetch by Id in and it will return the corresponding Entity. The Access Pattern lets a user set the fields they want to search by, and the conditions of that search. Some conditions that can be set include: Equals, Contains, Greater Than, Less Than, etc.

Extending Entities by adding User Actions

Adding User Actions creates an instance that is specific to the Entity in use. This can be customized to work on an Entity and in an Entity Flow.
Below provides a description of each Action.

Create a Group User Action

A Group User Action is a Flow specifically designed to act or utilize multiple chosen Data Structures and it uses the Data Structures information as input data.

Create User Action

A User Action is a Flow specifically designed to act or utilize a chosen Data Structure and it uses the Data Structures information as input data.

Use Shared Action

The permissions on a User Shared Action are selected from the list displayed under Permission For Actions. Each item from the list has a checkbox that can be selected that will enable that specific permission for the User Shared Action Flow. Below is a description of each permission.

Create Add Entity Action

Adds a custom Action to an Entity menu for a user to do whatever they want with that instance of a specific Entity.

add-user-actions.jpg

Validation Rule

A Folder Entity can have a validation applied to the Entity. This validation can be set up in the form of a Rule or a Flow. These are created from an Entity Configuration Folder. Validation Rules can be easily added to an Entity by selecting an option from the blue Action panel. For example, using the Advance Validation Rule, Validation Flow, and Validation Rule options.

Name
Function
Advanced Validation RuleSets up a custom message that can act as a warning based on the outcome of the true or false evaluation of the entity's data. 
Validation FlowA Flow that is used to verify a true or false evaluation. 
Validation RuleThis is a logical rule that runs a true or false evaluation. 

Validation-Rule.jpg

Extending Entities by adding Entity Events

Entity Events are set up so that a Flow runs anytime a change is made to a field in an Entity and it is saved or deleted. The extension runs a Flow that saves the information. This can be set to run a Flow either before or after the changes are made. Entity Events are set up to run in a Flow that is based on a scheduled occurrence which is Assigned to the Entity.

Name
Function
After Delete FlowA Flow runs after a 'Delete' is made to the Entity to save the changes. 
After Save FlowA Flow runs to 'save' the changes after a Flow is changed. 
Before Delete FlowA Flow runs before a 'Delete' is made to an Entity to save the data.
Before Save FlowA Flow runs before a 'Save' is made to an Entity to save the data. 


For more information on how to set up an Entity Event, please read the article on Hooking Entity Events For Custom Handling of Entities.

entity-events-1.jpg


State Triggers

State Triggers are Flows that are auto-triggered when a specific state is in place. When something moves from one state to a specified state, a Flow can be triggered to run as soon as that application or Assignment, etc. moves to a specific stage.

Name
Function
Create Auto Trigger FlowRuns a Flow when a specific state is in place. 
Use Shared Auto Trigger FlowA Flow that runs and is in use for multiple different specified states.

State-Triggers.jpg

Entity Service

The Entity Service option can be enabled when the Entity is created by selecting the checkbox in the Entities settings under Services. Entity Services creates a Flow that can run for that specific Entity and can be called as a Web Service. This feature is designed to allow easy integration so that any Web service can be used and run in a Flow.

ENTITY-SERVICE-1.jpg

Generate Descriptions

A user can pre-set and define a message description to generate from a Flow. This can be added for Custom and Text Merge, Custom Long and Short Descriptions as well as for a Flow for Entity Description and a Text Merge for Entity Description.
generate-description.jpg

Action Visibility Rule

The Action Visibility Rule filters out Actions that are created in a Configuration Folder or are by default a part of the Action Menu. The designer has the ability to create and hide custom and default actions. Actions are visible by navigating to an Entity and then right-clicking to view available Actions.

Learn how to set up an Action Visibility Rule.
Create a User Action Flow.

Was this article helpful?