Topic
  • 1 reply
  • Latest Post - ‏2013-10-10T12:09:50Z by paul.brett
sunil0548
sunil0548
15 Posts

Pinned topic Wire Adapter using PUT function in WTX

‏2013-09-28T09:01:56Z |

Hi anyone briefly explain me how WIRE adapter can be used using PUT function while configured with WMB.

  • paul.brett
    paul.brett
    519 Posts

    Re: Wire Adapter using PUT function in WTX

    ‏2013-10-10T12:09:50Z  

    In the map, you would use the syntax as follows:

     

    
    
    =PUT("
    WIRE", "
    output_terminal_name",
    data)
    

    Optionally, you can specify that the message is to be sent immediately. The -NOW argument sends the message to the output terminal as soon as the PUT rule is processed. When you omit the -NOW argument, a map primitive sends the data to the output terminal when the map completes, and a RUN map sends a message to the output terminal when the top map completes. If you omit the -NOW argument and the map or RUN map fails, the message is not sent.

    
    
    =PUT("
    WIRE", "
    output_terminal_name -NOW",
    data)
    

     

    (from http://pic.dhe.ibm.com/infocenter/wtxdoc/v8r4m0/topic/com.ibm.websphere.dtx.wtx4esb.doc/references/r_wtx4esb_put_rule_syntax.htm?resultof=%22%77%69%72%65%22%20%22%61%64%61%70%74%65%72%22%20%22%61%64%61%70%74%22%20)

     

    Then in the Toolkit, you right-click the output terminals of the map node, and choose 'Add Outut Terminal' from the pop-up menu.  You name this new terminal to match the fule (output_terminal_name above).

     

    After that, all you need to do is wire this new output terminal as you would any other output terminal.