IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Bulk Import - set lifecycle state

    Posted Tue June 19, 2012 11:35 AM

    I’m developing a tool to import data into CentraSite so that we can have a bulk import when first setting the Catalog.
    I have my own asset type with a LifeCycle defined.

    My question is:
    Can I set the assets I import to a Life Cycle state different than the entry state?
    How can I do it?

    Programmatically it should be possible, since the Life Cycle is another taxonomy, so I should be able to add the corresponding classification, but when I tried, the asset still remained in the entry state.


    #CentraSite
    #webMethods
    #API-Management


  • 2.  RE: Bulk Import - set lifecycle state

    Posted Tue June 26, 2012 10:10 AM

    Hi,
    what is your Use Case for this? What you can do is preserve the original lifecycle state in an import by selecting the corresponding option in the import dialog.
    Regards,
    Gerald


    #CentraSite
    #API-Management
    #webMethods


  • 3.  RE: Bulk Import - set lifecycle state

    Posted Wed June 27, 2012 03:58 AM

    Hi

    This can be achieved Programmatically in two ways.

    1. Use setState Action for post create policy to change the states of the asset after creation.
    2. Create a custom policy action for post create event type and use LCM API inside the policy action to change the state of the asset.

    kindly let us know if you need more information…and As Mr. Gerald asked could you please share what is the use case? And

    Thanks and Regards,
    Malligarjunan S.


    #webMethods
    #API-Management
    #CentraSite


  • 4.  RE: Bulk Import - set lifecycle state

    Posted Sun July 08, 2012 11:34 PM

    Hi, you might also want to check this project
    http://csutils.sourceforge.net/cs-utils-importer/

    Regards,
    Mehmet.


    #CentraSite
    #API-Management
    #webMethods


  • 5.  RE: Bulk Import - set lifecycle state

    Posted Tue July 10, 2012 11:03 AM

    Hello all,

    The intention of the import is to have a text file that is manually filled wit the information regarding all the services that we want to insert as assets in the catalog, including the lifecycle state, and when I import it, I need to set the correct state for all the assets.

    I read the LCM API and used it to solve my problem.
    In the import, after creating the service, I’m using the lcm to make as many lcstate changes as necessary to reach the one desired.

    Thank you both for the input!
    (and sorry for not replying earlier)


    #webMethods
    #CentraSite
    #API-Management


  • 6.  RE: Bulk Import - set lifecycle state

    Posted Tue July 10, 2012 11:11 AM

    Hi Mehmet,

    We found that cs-utils-importer doesn’t answer our needs. That was also our first approach.
    We’re using the CSAF API to create our own importer.


    #webMethods
    #CentraSite
    #API-Management