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.  Error Handling between WMB and WTX Map?

    Posted 03/22/07 03:43 AM

    Originally posted by: SystemAdmin


    I just started to learn WTXMB and am curious about how I can handle errors occured within WTX maps. For example, how can a WTX map return error information to WTX Plug-In node in a message flow?

    In addition, this is about WTX maps itself.
    When a WTX map invokes an external and independent (WTX) map using RUN function, how error information can be managed between the two maps?

    What about the case using a functional map instead of RUN map?

    I'd like to know about how-to related error handling of WTXMB.

    Thanks,


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


  • 2.  Re: Error Handling between WMB and WTX Map?

    Posted 03/23/07 05:31 AM


  • 3.  Re: Error Handling between WMB and WTX Map?

    Posted 03/25/07 11:43 PM

    Originally posted by: SystemAdmin


    Yes, it is still a black box...
    I think some guidelines are indispensable to be familiar with the collaboration between WMB and WTXMB.
    Ideally the discussion should be done with WebSphere product portfolio in the future.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: Error Handling between WMB and WTX Map?

    Posted 03/26/07 12:34 PM

    Originally posted by: SystemAdmin


    There are lots of ways to do this, any number of which would take up more discussion than is allowed on this thread, but to answer your question, in your settings turn the audit logs "On" this allows an audit trail, the return codes of anything not equal to "0" Zero is an error..

    Then in your mapping rules, insert function, "Valid" By putting a Return the result of the first argument if it is valid, otherwise, returns the second argument.
    Syntax
    VALID ( single-text-expression , single-general-expression )
    Meaning
    VALID ( function_that_can_fail , return_value_if_arg1_invalid )
    Returns ( a single-character-text-expression )
    Returns NONE, aborts the map and returns its argument as the map completion error message.
    Syntax
    FAIL ( single-text-expression )
    Meaning
    FAIL ( message_to_return )
    Returns ( NONE )
    You can get creative with this, if the data is "Valid", then "Put" the data into a "File" and specify a path, or "Email" to specific person or distribution list, (very helpful in real time testing)

    In the "FAIL", is where you can specify a message that will be put in the audit log, and have the audit log emailed to you using a separate map that only reads return codes not equal to zero.. This technique can be utilized in both functional and runtime maps.

    Like I said there are lots of ways to handle errors, you should go through the "Help" and also try for yourself some of the different "Rules/insert functions" to get a good flavor of what is most comfortable to you.

    Hope this helps
    -Steve Brock
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 5.  Re: Error Handling between WMB and WTX Map?

    Posted 03/26/07 01:28 PM

    Originally posted by: NancyR


    If you use the WMB node for WTX I believe the map execution code is returned to WMB so any non zero WTX code returned could be processed by WMB.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 6.  Re: Error Handling between WMB and WTX Map?

    Posted 03/26/07 08:33 PM

    Originally posted by: SystemAdmin


    Just a quick question.

    Could you elaborate on 'the map execution code is returned to WMB'?

    I'd like to clarify how the return code can be catched by the message flow.
    For example, the WTX node has two output terminals, one is 'Out' and the other one is 'Failure'. What you are saying is that we are required to check the return value within a compute node or something rather than the automatic filtering by Out/Failure terminal, correct?
    To return the execution code from a WTX map, what do we need? Any logics?

    Thanx,
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 7.  Re: Error Handling between WMB and WTX Map?

    Posted 03/27/07 12:12 AM

    Originally posted by: jvanboga


    the use of 'valid' can be formated to echo the 'return code' of the runmap to the application/script that executes it. With proper formating the command can also echo back a failure message if the runmap fails.

    We don't use WMB. We do use a cron tool to execute WTX maps. In some cases we override the map's log files at run time. The script then checks the return code of the log file.

    There should be several way to get what you need.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender