Create requirement collection in OSLC service provider
This example shows how to submit a creation request for a new requirement collection resource with a configured OSLC client.
After you have created and configured the OSLC client
myClient as described
in Create and Configure an OSLC Client for the Requirements Management Domain, create a creation factory for the requirement collection resource
myCreationFactory = getCreationFactory(myClient,... 'RequirementCollection');
Use the creation factory to create a requirement collection resource with the title
My New Requirement Collection. Retrieve the full resource
data from the service provider for the requirement collection resource and inspect
newReqCollection = createRequirementCollection(myCreationFactory,... 'My New Requirement Collection') fetch(newReqCollection,myClient); newReqCollection
newReqCollection = RequirementCollection with properties: ResourceUrl: 'https://localhost:9443/rm/resources/_72lxMWJREeup0r..' Dirty: 0 IsFetched: 1 Title: 'My New Requirement Collection' Identifier: '1808'
Open the requirement collection resource in the system browser by using the