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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Need help on string conversion

    Posted 10/04/15 01:00 PM

    Hi All,
    I have a string like below which is dynamic which is coming as one of the steps of my flow service.

    String1:
    {“Values”:[“{ROLE_ID=14, ROLE_NAME=Service Owner, Description=??? ???}”,
    “{ROLE_ID=15, ROLE_NAME=Service User, Description=??? ???}”,
    “{ROLE_ID=16, ROLE_NAME=Service Provider, Description=??? ???}”]}

    I need the output like below

    {“Values”:[{“ROLE_ID=14, ROLE_NAME=Service Owner, Description=??? ???”},
    {“ROLE_ID=15, ROLE_NAME=Service User, Description=??? ???”},
    {“ROLE_ID=16, ROLE_NAME=Service Provider, Description=??? ???”}]}

    String2:

    {“Values”:[“{CATEGORY_ID=118, PARTY_TYPE=1, PARTY_TYPE_NAME=CORPORATE, ROLE_CATEGORY=BRANCH NU}”,
    “{CATEGORY_ID=119, PARTY_TYPE=1, PARTY_TYPE_NAME=CORPORATE, ROLE_CATEGORY=PRODUCT NU}”]}

    I need the output like below

    {“Values”:[{“CATEGORY_ID=118, PARTY_TYPE=1, PARTY_TYPE_NAME=CORPORATE, ROLE_CATEGORY=BRANCH NU”},
    {“CATEGORY_ID=119, PARTY_TYPE=1, PARTY_TYPE_NAME=CORPORATE, ROLE_CATEGORY=PRODUCT NU”}]}

    Can someone help how to get this ?

    Thanks,
    Anil.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Need help on string conversion

    Posted 10/04/15 01:11 PM

    Replace string or regex (bit complex) should do it. Did you try?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Need help on string conversion

    Posted 10/04/15 03:54 PM

    Thanks for your reply. I tried those options but not working, did you try with any ex ?

    Thanks,
    Anil


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Need help on string conversion

    Posted 10/04/15 04:27 PM

    Are you sure? See attached
    Capture.JPG


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: Need help on string conversion



  • 6.  RE: Need help on string conversion

    Posted 10/04/15 04:36 PM

    Thanks for your reply. I tried those options but not working, did you try with any ex ?

    Thanks,
    Anil


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: Need help on string conversion

    Posted 10/16/15 12:20 PM

    Use stringReplace steps one by one for different patterns that are identified for desired output.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services