Skip to content

1.4. Configuring relationships

abasic edited this page Mar 5, 2020 · 1 revision

Introduction

The following page explains how to configure relationships between structure types. These are defined within the scope of a structure type within .activities-rc.json.

Preview

Relationship meta

Code example

"relationships": [{
    "type": "prerequisites",
    "label": "prerequisites",
    "placeholder": "Select prerequisites",
    "multiple": true,
    "searchable": true,
    "allowEmpty": true,
    "allowCircularLinks": true,
    "allowInsideLineage": true,
}]

Properties

Property Description Type
type Defines the type of the relationship. String
label Label for the current relationship. String
placeholder Defines the placeholder label for the relationship. String
multiple Defines if a relationship can have multiple associations. True by default. Boolean
searchable Defines if you can search for the list of activities. True by default. Boolean
allowEmpty Defines if the list of relationships can be empty. True by default. Boolean
allowCircularLinks Defines if you can set circular relationships. A can have a relationship with B and B can have a relationship with A. False by default. Boolean
allowInsideLineage Defines if you can set relationships with parent/child activities. False by default. Boolean