Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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?

0 votes



3 answers

Permanent link
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"




0 votes

Comments

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.

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


Permanent link
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.

0 votes

Comments

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.

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

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
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,121

Question asked: Oct 03 '12, 11:52 p.m.

Question was seen: 4,557 times

Last updated: Oct 16 '12, 12:20 p.m.

Confirmation Cancel Confirm