Archive the local DNG Baseline via OSLC API
Hi ,
I am trying to archive the local DNG baseline via OSLC API. Response based on the DNG Baseline Stream doesn't contain any information like <oslc:archived>false </oslc:archived>
Headers:
Accept : application/rdf+xml
OSLC-Core-Version : 2.0
Response :
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:oslc="http://open-services.net/ns/core#" xmlns:prov="http://www.w3.org/ns/prov#" xmlns:oslc_config="http://open-services.net/ns/config#" xmlns:acc="http://open-services.net/ns/core/acc#" |
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Jan 31, 10:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jan 31, 10:47 a.m. I think there are several issues here. Archiving does not necessarily mean that there is just an obvious attribute added.
In addition, as far as I know, you must not just archive an arbitrary configuration. If you do so, you can mess up your data and end up with dangling configurations that lost an ancestor.
In addition, there is no OSLC API to archive configurations. It is an internal API. I am not sure I should do that but you can find details about the internal API (disclaimer: I am not responsible for you using internal API and potentially harm your system.): com.ibm.rm.typemanagement/src/main/java/com/ibm/requirement/typemanagement/oslc/client/automation/commands/ArchiveConfigurationCmd.java
com.ibm.rm.typemanagement/src/main/java/com/ibm/requirement/typemanagement/oslc/client/dngcm/InternalConfigurationArchiveApi.java
Comments
Chandan M B
commented Feb 02, 3:01 a.m.
Thanks Ralph. How do I access/refer this source code ? I thought I put the links in, apparently not. The project is here: https://github.com/jazz-community/dng-type-system-management |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.