It's all about the answers!

Ask a question

How do we migrate the existing assets to a master lifecycle of a community?


Manjiri Kamat (5132325) | asked Oct 03 '12, 11:52 p.m.
We have upgraded our RAM server to 7511.Earlier for a community we were using legacy review processes but now we plan to shift to master lifecycle.
We have learnt that after you configure a master lifecycle for a community you can migrate the existing assets such that the older instance of the lifecycle/review process that they have can be overwritten by this master lifecycle.

Can you please provide us the steps on how can this be achieved?

3 answers



permanent link
Manjiri Kamat (5132325) | answered Oct 16 '12, 12:20 p.m.
Hi  Gili,

Thanks.
I have opened a new thread to discuss about the rest api.Please do let me know more on it.
 https://jazz.net/forum/questions/91163/rest-api-to-copy-a-master-lifecycle-to-existing-assets-in-a-community

permanent link
Peter Walker (168136) | answered Oct 12 '12, 1:33 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
There is OSLC Asset Management documentation and samples located on the OSLC Wiki site --> http://open-services.net/wiki/asset-management/OSLC-Asset-Management-2.0-Samples/

Another option would be to use the RAM Java client API calls.

Either option you still need to follow Gili's suggestion for setting up and configuring the lifecycles so they map correctly from legacy to lifecycle... and search using the criteria suggested.

Comments
Manjiri Kamat commented Oct 16 '12, 4:24 a.m.

For 7.2 the url format we used was to access the assets using rest api was
<hostname>/ram.ws/internal/assets.

For 7.5.1.1,is it the same?.I get 400 error if i use it the same way for 7511.


Manjiri Kamat commented Oct 16 '12, 8:25 a.m.

In addition what is the rest api to get the assets within a community?


Gili Mendel commented Oct 16 '12, 8:44 a.m.
JAZZ DEVELOPER

You should open a different threads for Rest API ...
URLs for OSLC API may change at any given time.  This is the reason OSLC provides rootservices->Catalog->AssetServices ... for which you will be directed to the proper url for a given server  (note that these are current URLs.... but the catalog may return new urls in new versions)

    <server:port/context>/oslc/simpleQuery
    <server:port/context>/oslc/assets  // for asset factory
Open a different thread with a more specific question on what is it that you are trying to do.


For the life cycle migration ... yes, in your case it is tedious, but it is doable and the only way to do it today


permanent link
Gili Mendel (1.8k56) | answered Oct 04 '12, 11:02 a.m.
JAZZ DEVELOPER
There is not automatic way to move legacy lifecycle asset into a Master based lifecycle per sea.

In general, if asset switches a lifecycle (because of configuration changes) it will:
    Stay in the same state, if the new lifecycle is based on the same workflow.
    Start from the beginning, if the new lifecycle is based on a different workflow.

In the case of a legacy lifecycle, it is not based on a workflow so no cigar.  However you can follow the following process to migrate. 


Create a new workfllow ... and have a mapping handing from the states in the legacy to the new life cycle.
For each state in the legacy review (call it state "O" that is mapped to state "N" in the new lifecycle):
  • Configure the new lifecycle so that asset will automatically be moved to state "N" (remove the manual rules on the transitions).
  • Search for all assets in the legacy review (use: _stateWorkflowId_:(com.ibm.ram.legacy)  in the search text area.  Also, filter on state "O" ... so you get all assets in state "O" in legacy review.
  • bulk update these assets. .... which will force them to move to the new lifecycle, and flow to state "N"





Comments
Manjiri Kamat commented Oct 07 '12, 11:49 p.m.

Gill,

The approach suggested won't be very efficient for us due to the following reasons :

1.  It is a manual process and prone to error.

2. We have alot of assets and this will take a very long time.

3. In my experience, the bulk update action does not work well when there is a large number of assets. 

4. It changes the community of an asset which will make it unavailable to users during that time.

So we plan to automate the migration using the rest api.

Can you please guide us on how we could update the lifecycle of an asset using the rest api?

Thanks.


Manjiri Kamat commented Oct 12 '12, 1:49 a.m.

Please give us some pointers on how we can use the rest api to achieve our goal.

Your answer


Register or to post 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.