- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Activity Links
/v1/activity_links/
List Of Relationships for Activities
Example for calling:
http://server/v1/activity_links - retrieves all activity_links
http://server/v1/activity_links?network_id=1 – retrieves activity_links for activities in network having id = 1
Allowed Methods:
[GET]
API Controller: activity_link
Description:
- Lists all activity links for the supplied network_id.
- Activity links referring to non-existing activities will not be included in the result set from the API.
- Activity links referring to non-existing calendars will have no calendar in the result set from the API. Activity link will be listed but without calendar.
Parameters:
Name | Type | Description | Notes |
---|---|---|---|
network_id | integer | Network Id | Returns constraints related to given network id.If "SafranWebAPIOwnerVerificationDuringApiCalls" in Application Settings is in use, this is mandatory |
owner | string | Networks owner | [Optional] Relates to "SafranWebAPIOwnerVerificationDuringApiCalls" in Application Settings |
Response Fields:
Name | Type | Description | Notes |
---|---|---|---|
prev_id | integer | Id for preceding activity | |
next_id | integer | Id for succeeding activity | |
network_id | integer | Network Id | |
link_type | integer | Link type (possible values: FS, SF, FF, SS) | SS = 1 SF = 2 FS = 3 FF = 4 |
lag_time | integer | Lag time on activity link | |
calendar | integer | Activity link calendar | |
duration_format | string | Formating unit for the lag_time field | "weeks" "days" "hours" "minutes" "percent" "undefined" - meaning database value is null or 0 |
disabled | boolean | A field both in the Predecessors and Successors area of Logic Navigator and Links Panels, which allows to disable Links so they do not have an effect in the Activities linked | Default value is False |
Show JSON Response
json result
[
{
"prev_id": 1,
"next_id": 10,
"network_id": 1,
"link_type": 3,
"prev_name": "00010",
"next_name": "CSNew001"
},
{
"prev_id": 10,
"next_id": 12,
"network_id": 1,
"link_type": 4,
"prev_name": "CSNew001",
"next_name": "CSNew002"
},
{
"prev_id": 12,
"next_id": 14,
"network_id": 1,
"link_type": 1,
"prev_name": "CSNew002",
"next_name": "CSNew004"
},
{
"prev_id": 15,
"next_id": 14,
"network_id": 1,
"link_type": 4,
"lag_time": 3,
"calendar": 1,
"prev_name": "CSNew005",
"next_name": "CSNew004",
"duration_format": "days"
}
]
Was this article helpful?