Creating an Entity Association Type
  • Updated on 05 Mar 2019
  • 1 minute to read
  • Print
  • Dark
    Light

Creating an Entity Association Type

  • Print
  • Dark
    Light

Entity associations are relationships between data types (such as tasks, accounts or assets). To encourage consistency and re-usability, every entity association must be of an association type. Association types can be found in the folder System > System Data > Association Types . To create a new association type, click the Add Association Type button and define the data types that form either side of the relationship.

Example

Our example association type will define a relationship between an asset and an account. To begin, we will navigate to the System > System Data > Association Types folder.

2017-12-22_104748-1.png

Click the Add Association Type button.
2017-12-22_095013.png

2017-12-22_095121.png

2017-12-22_095204.png

2017-12-22_095435.png

In the resulting Add Association Type window, we will select the Name field and type "Asset to Accounts." In the From Type Name dropdown, select the entity responsible for the Folder service, which is DecisionsFramework.ServiceLayer.Services.Folder.Folder .
2017-12-22_100341.png

2017-12-22_101019.png

In the From Extension Type Name dropdown, we will select the entity responsible for assets, which is Decisions.TaskTracking.Service.Asset.AssetData .
2017-12-22_101405.png

In the To Type Name dropdown, we will select the entity responsible for accounts, which is DecisionsFramework.ServiceLayer.Services.Accounts.Account .
2017-12-22_101814.png

This completes our new association type, so we will click the OK button.
2017-12-22_102142.png

Back in the Association Types folder, we will see our new association type listed.
2017-12-22_104748.png

Was this article helpful?