1
PCS Suggestions and Requests / Change the parent of a resource via PCS OSLC
« on: June 23, 2023, 02:33:42 pm »
Trying to use OSLC to move an element or a package to a different place, but there’s no documentation for updating a resource’s parent (based on https://sparxsystems.com/enterprise_architect_user_guide/16.1/the_model_repository/oslc_upd_resources.html and the examples). The updating operation only deals with its listed features internally, so I cannot find a way to move it to a different place (e.g, move it one level up in the tree structure).
1. When creating a new resource, the `ss:parentresourceidentifier` is required. Is there an optional one where we can use to specify the parent location in updating operation?
2. `ss:parentresourceidentifier` is in the http://model/oslc/am/rs/cfresouce (resource shape for create) but not in http://model/oslc/am/resource (resource shape for update)
3. If not, is there workaround to get the same effect for moving a resource (preserving the relationships and all properties etc of the item being moved)?
If OSLC supports updating resource's parent, the workflow can be more automated and easily integrated.
Thank you!
1. When creating a new resource, the `ss:parentresourceidentifier` is required. Is there an optional one where we can use to specify the parent location in updating operation?
2. `ss:parentresourceidentifier` is in the http://model/oslc/am/rs/cfresouce (resource shape for create) but not in http://model/oslc/am/resource (resource shape for update)
3. If not, is there workaround to get the same effect for moving a resource (preserving the relationships and all properties etc of the item being moved)?
If OSLC supports updating resource's parent, the workflow can be more automated and easily integrated.
Thank you!