# Trigger Definition Example

    SXTP06N ----------------------- Trigger Details -----------------------------
    Command ===>                                         (EMS,PROP)

     Trigger Identifier    => TRIGGER-TEXT
     Publish To            => tibss.trigger.DATA2
     Publish To, Sec       =>
     Reply To              => myReply.TEST
     Error Subject         => tibss.error.out
     Error Threshold       => 0     (0 - 99999) Error Percent  => 0   (0 - 99)
     Publish To Len (Dyn)  => 9     Start => 64
     Output Conversion(?)  =>                   Msg Field Name => DATA2
     ESB Endpoint     (?)  => RV-SERVER
     Trace Level           => 0  0-5
     Output Method         => 2  1 Status  2 Message
                                 3 Both Status and Message
     Compare Text Contain in Buffer
       Start  => 0
       Length => 0
       Value  =>
     Undelivered Requeue   => N   (Y Requeue, N Discard - Reliable Only)

## RV Message Layout

    subject=tibss.trigger.DATA2SXG6000I, reply=myReply.TEST, message={ DATA2(1)=[384 opaque bytes] }

Note: No tibss-status due to Output Method is 2.
Note: The user data is always Opaque.
Note: The name of the field is either the value of “Msg Field Name” or DATA (default).
Note: The id number is always 1.
Note: A dynamic subject is used in this case. “SXG6000I” is the value at location 64 (relative to 0) which is concatenated to “tibss.trigger.DATA2”.

## EMS Message Layout

When using “EMS Trigger Details Extension” Panel to set the Message Type = ‘B’ (Bytes Message). Given below is the expected output of the message:

    subject=tibss.trigger, message=BytesMessage={ Header={ JMSMessageID={ID:ZLINUX-EMS-TEST.80475AB2E0F15:5} JMSDestination={Queue[tibss.trigger.DATA2SXG6000I]} JMSReplyTo={Queue[myReply.TEST]} JMSDeliveryMode={PERSISTENT} JMSRedelivered={false} JMSCorrelationID={null} JMSType={null} JMSTimestamp={Mon Apr 02 13:25:08 CDT 2018} JMSDeliveryTime={Mon Apr 02 13:25:08 CDT 2018} JMSExpiration={0} JMSPriority={4} } Properties={ JMSXDeliveryCount={Integer:1} } Bytes={100 bytes} }

When using “EMS Trigger Details Extension” Panel to set the Message Type = ‘T’ (Text Message). Below is the expected output of the message:

    subject=tibss.trigger, message=TextMessage={ Header={ JMSMessageID={ID:ZLINUX-EMS-TEST.80475AB2E0F15:3} JMSDestination={Queue[tibss.trigger.DATA2SXG6000I]} JMSReplyTo={Queue[myReply.TEST]} JMSDeliveryMode={PERSISTENT} JMSRedelivered={false} JMSCorrelationID={null} JMSType={null} JMSTimestamp={Mon Apr 02 13:16:45 CDT 2018} JMSDeliveryTime={Mon Apr 02 13:16:45 CDT 2018} JMSExpiration={0} JMSPriority={4} } Properties={ JMSXDeliveryCount={Integer:1} } Text={1--------10--------20G000001G30--------40--------50--------60--------70--------80--------90--------L} }

Copyright © TIBCO Software Inc. All rights reserved.