IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Component rule doesn't work

    Posted 05/06/09 04:25 AM

    Originally posted by: SystemAdmin


    Hi all,
    I'm new in WTX and confused about component rule realisation.
    I have created type tree and simple map on it.
    I also defined component rule for tree element:
    WHEN(field:$ = "123", TRUE)

    but when I execute map everything is ok and no matter
    what is the value defined for "field" element.
    Map input is:
    <msg><item><field>1234</field></item></msg>
    Map output is:
    <msg><item><field>1234</field></item></msg>

    What should I do to turn on component rules?
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Component rule doesn't work

    Posted 05/06/09 06:20 AM

    Originally posted by: phil2030


    Your logic is wrong - change it to

    field:$ = "123"
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 3.  Re: Component rule doesn't work

    Posted 05/07/09 04:50 AM

    Originally posted by: SystemAdmin


    No need of quotes for numeric values you can just say field:$ = 123
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: Component rule doesn't work

    Posted 05/07/09 10:04 AM

    Originally posted by: phil2030


    the key thing is the logic is wrong - your making an assumption it is numeric (probably is, but...)
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 5.  Re: Component rule doesn't work

    Posted 05/15/09 08:22 AM

    Originally posted by: SystemAdmin


    Thanks a lot, you are absolutely right, the logic is wrong.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender