webMethods

webMethods

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.  wm.b2b.edi.util.formatServices:formatN2 not returning N2 format

    Posted Wed May 01, 2019 02:47 PM

    Trying to use the formatN2 transformer to transform a value into N2 format. Below are my inputs and outputs:

    Service In
    value: mapped to a string element in the pipeline. In testing, the element contains the value of “1.408”.
    direction: convertToString
    validate: true
    minLength: left blank. Also tried with a value of “1”.
    maxLength: left blank. Also tried with a value of “15”.
    FormatInfo: left blank.

    Service Out
    formattedValue: “1.408”
    valueToValidate: no value appears to be returned.

    I’m expecting a value of 140 to be returned as the formattedValue. Assuming the value being validated should be coming through in valueToValidate. Any help on troubleshooting this issue appreciated.


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: wm.b2b.edi.util.formatServices:formatN2 not returning N2 format

    Posted Fri May 03, 2019 11:45 AM

    under FormatInfo, try to add:
    DecimalCharacter = .
    you jvm’s default value may not be .


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 3.  RE: wm.b2b.edi.util.formatServices:formatN2 not returning N2 format

    Posted Sat May 04, 2019 05:28 AM

    Hi Tong,

    Thanks for the suggestion. As input for FormatInfo, I added a row where the Name is “DecimalCharacter” and the associated value is “.”; however, this did not yield a resolution.

    Implemented an ad hoc solution in two steps instead. The first step changes the precision of the number to be two decimal places. The second step multiplies the number by “100” to get to the N2 format.

    Thanks,

    Ken


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB