Set resource URL for local OSLC resource object
Set OSLC Requirement Resource URL
This example shows how to associate an Open Services for Lifecycle Collaboration (OSLC) requirement resource object in MATLAB® with an existing OSLC requirement resource in the service provider.
After you have created and configured the OSLC client
described in Create and Configure an OSLC Client for the Requirements Management Domain, create a new requirement resource by creating an instance of the
myReq = oslc.rm.Requirement
myReq = Requirement with properties: ResourceUrl: '' Dirty: 0 IsFetched: 0 Title: '' Identifier: ''
In the OSLC service provider, locate the requirement resource that you want to
associate with the object in MATLAB. Identify the resource URL, then create a variable
and set the value of the variable to the resource URL.
URL = 'https://localhost:9443/rm/resources/_oJNtgWrqEeup0a6t';
Set the resource URL for the requirement object
myReq = Requirement with properties: ResourceUrl: 'https://localhost:9443/rm/resources/_oJNtgWrqEeup0a6t' Dirty: 1 IsFetched: 0 Title: '' Identifier: ''
Retrieve the full resource data from the service provider for the requirement resource and inspect the resource.
myReq = Requirement with properties: ResourceUrl: 'https://localhost:9443/rm/resources/_oJNtgWrqEeup0a6t' Dirty: 0 IsFetched: 1 Title: '[SAFe] Lightweight Business Case Template' Identifier: '1172'
Open the requirement resource in the system browser.
resource — OSLC resource
oslc.rm.Requirement object |
oslc.rm.RequirementCollection object |
oslc.cm.ChangeRequest object | ...
URL — Existing resource URL
Existing resource URL, specified as a character vector.
Use this function when you have the resource URL for an OSLC resource and want to access the properties or links of the resource in MATLAB.
Introduced in R2021a