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.  Exiting from a map early, break function etc.

    Posted 02/03/09 05:08 AM

    Originally posted by: MartinEvans@


    I think the answer to this is no but I thought I'd ask; is there any way to drop out of a map cleanly before the end of processing? Lets say I get 0 records from an MQ get and I have other file inputs with records, because there were no MQ records I want to stop any further rules, do I have to just put a check at the beginning of each rule?

    I tried searching the forum but unfortunately searching for exit(0) brings up all the wrong answers ;-)

    Thanks in advance,

    Martin
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 2.  Re: Exiting from a map early, break function etc.

    Posted 02/03/09 05:21 AM

    Originally posted by: janhess


    If you are passing your input data to a functional map before processing rules, the functional map won't be called if any of the arguments are NONE i.e. when you have no MQ messages.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: Exiting from a map early, break function etc.

    Posted 02/03/09 05:31 AM

    Originally posted by: MartinEvans@


    I'm getting my MQ messages from a GET(), I have 1 input that is a config file, the config file holds source queue, target FTP etc.

    So I could pass my MQ data to a functional map that does the FTP, Backup etc. they would only get called if there are MQ messages.

    Sounds like it could be a better solution than adding an IF() to each rule.

    Martin.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: Exiting from a map early, break function etc.

    Posted 02/03/09 05:34 AM

    Originally posted by: janhess


    Would it not be better to use an input card for the MQ message so that it can validate it?
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 5.  Re: Exiting from a map early, break function etc.

    Posted 02/03/09 05:41 AM

    Originally posted by: MartinEvans@


    Yes and no, we're not doing any validation at this point, WTX is acting in a kind of ESB like way, just mediating between MQ and FTP.

    I wanted to keep all the configuration, source, targets etc. in one place; I'm using an XML file/schema to drive it.

    Everything on one output card with rules keeps it simple, but when you need to apply logic on all the rules it suddenly become unwieldy, the functional map should address that.

    Martin
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange