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
Expand all | Collapse all

How to convert from Integer to String in Flow Service?

  • 1.  How to convert from Integer to String in Flow Service?

    Posted Wed September 07, 2011 05:45 AM

    Like the title said, how to convert from Integer to String in Flow Service?

    I once tried like this: in a MAP step, the Pipeline In has a Integer variable. I linked it to a Pipeline Out’s String variable. But it doesn’t work.

    Is there any built-in functions that I can use?


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


  • 2.  RE: How to convert from Integer to String in Flow Service?

    Posted Wed September 07, 2011 04:13 PM

    Hi bromo,

    have u tried to use toString service in WmPublic package.
    try this as a transformeer in a map step.

    thanks,
    Amit


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


  • 3.  RE: How to convert from Integer to String in Flow Service?

    Posted Wed September 07, 2011 04:31 PM

    Are you sure it is an Integer in the pipeline? Where is it coming from?


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


  • 4.  RE: How to convert from Integer to String in Flow Service?

    Posted Thu September 08, 2011 08:05 AM

    I can’t found any built-in service called “toString”.

    It came from SELECT SQL Adapter Service where I had set the Result Field value and the Result Field Type is set to Integer.


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


  • 5.  RE: How to convert from Integer to String in Flow Service?

    Posted Thu September 08, 2011 03:06 PM

    The easiest thing to do would be to set the Result Field Type to String. There usually is no reason for the integration to use data types other than string.


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


  • 6.  RE: How to convert from Integer to String in Flow Service?

    Posted Thu September 08, 2011 09:41 PM

    Hello bromo,
    in addition to what reamon said, you can use the service WmTransformationServices:IntegerToString


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


  • 7.  RE: How to convert from Integer to String in Flow Service?

    Posted Fri September 09, 2011 04:43 AM

    I agree with you for that situation, but what if you’re facing a situation that you don’t have any choice to choose the result type?

    I cannot find this service. It’s not stated in webMethods Integration Server Built-In Services Reference documentation either. Is this a custom service or a new service? FYI, I’m working on webMethods Developer v7.1.3.

    I know that we can create a Java Service to do the conversion, but I hope I can find a solution without using Java Service.


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


  • 8.  RE: How to convert from Integer to String in Flow Service?

    Posted Fri September 09, 2011 02:11 PM

    Hi Bromo, I put in attach the transformation package.
    Regards

    (Attachment removed by moderator. This site is not to be used for distributing webMethods-supplied packages.)


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


  • 9.  RE: How to convert from Integer to String in Flow Service?

    Posted Fri September 09, 2011 08:08 PM

    That is fairly rare. I can’t recall a time when the choice was not available during initial development. Obviously it’s more difficult to change once established and other components rely on that data type. My rule of thumb: use string unless there is a specific reason not to. My usual exception to this rule is date/timestamps.

    In the case where one must keep the original data element as a type other than string, the transformation services others have mentioned are helpful.

    You will use a Java service regardless. Whether or not you have to write one is the question. :slight_smile:


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


  • 10.  RE: How to convert from Integer to String in Flow Service?

    Posted Sat September 10, 2011 04:15 PM

    Thanks reamon for your feedback.

    Just little curious, why I don’t have the WmTransformationServices package while some other people here have it? Is this package only available for newer version of webMethods IS?


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