Regarding collecting messages until you get particular payload

Hi All,
I am having below requirement,
  I am getting several messages from source, i need to collect all the messages, until i get TRAILER message
Condition is " COLLECT THE PAYLOAD UNTILL YOU GET DTS IN PAYLOAD(TRAILER)". so we need to collect header message and data messages untill you get trailer message.
message1(Header message which contains DHS)like below  
    20090604034447338isc                 DHS64    500d3100033d705050258002f86300
message2(data message which contains DDS) like below
           20090604034447338isc                 DDS64    50031s000337050502580d0286300
           20090604034447338isc                 DDS64    5003100033705050d25800286300
Message3(data message) like below
           20090604034447338isc                 DDS64    500310003370505025800286300
           20090604034447338isc                 DDS64    500310003370505025800286300
           20090604034447338isc                 DDS64    5003100033d7050502580f0286300
Message4(trailer which contains DTS) like below 
           20090604034447338isc                 DTS64    500310003370505025800286300
So 4th message contains 3 charcters DTS, now i need to end the collecting messages in loop and need to send the collected messages to target.
Presently i am using PI7.1 which contains some patters to use as XPath for end condition purpose. I am using Contains Patter(CP) in loop end condition. according to my understanding the collection in loop has to end when it find DTS in message. but it is not working. Please share you ideas whether Contains Patterns suitable for my requirement
or not and is there any other better approach for this requirement?
Thanks & Regards,
Madhusudhan

Hi,
Thanks for your valuable reply,
As you told i implemeted the logic for loop end condition like below
Value CP 'DTS'
Value is condition variable in xpath according to PI7.1.
Now according to above xpath, if DTS found in payload at any place. The loop has to end, but now even there is no DTS in payload the loop is getting complete and messages are going to target.
Thanks,
Madhu
Edited by: Madhusudana Reddy on Aug 5, 2009 9:13 PM
Edited by: Madhusudana Reddy on Aug 5, 2009 9:24 PM
Edited by: Madhusudana Reddy on Aug 5, 2009 9:25 PM

Similar Messages

  • Easy way 2 keep ipod screen protected untill you get a case

    wrap it in plastic wrap (aka seran wrap) u can use all of the buttons and the click wheel and u can see right through it and when uts old just peel it off adn put new wrap on atleast untill you get a case
      Mac OS X (10.4.3)  

    Sarris2-
    Have you tried any?
    My Apple Time Capsule is using "WPA2 Personal", and I've had no trouble connecting to it.  My AirPrint printer is an HP D110.  It is a pain to enter the password a character at a time using the printer's control panel, but it works.
    Fred

  • Chrome Protector until you get yours ordered/delivered.

    Hey guys, I (like many of you) am worried about scratching my chrome backing until I get my cover that I ordered. Well today I found a quick fix until then and guess what!? Apple gave it to you in your box! I just took the plastic screen protector (with the tab on it) and peeled it off and put it on the back. I know it's not enough to cover the edges, but at least you can set it down now without worrying about it!
    Message was edited by: cklosows

    yeah you do have it. when u first get your ipod touch it comes with some plastic wrap on it, stuck on the front to stop it from scrathing in the box, just keep it on basically. although you probably threw it away already

  • Using another web browswer until you get rid of Firefox 4. What a disaster! When do you plan to fix it.!!!

    What a nightmare Firefox 4 have been. I have warned everyone else not to upgrade to this horrible browser. Which is sad, since I used to recommend it to everyone. I don't like IE or Safari, but I like them better than Firefox 4 so I will be using another browser until you fix whatever it was you did to the new update. Very inconvenient to have to change all my bookmarks and info that I have used on Mozilla since it first came out. I hope you are working on it since there is page after page of similar responses. When can we expect this to be fixed?
    Lori
    Why do I have pop-up everywhere now, my home page changed, I have some stupid mp3 toolbar installed(which I will get rid of). What were you guys thinking?

    Hello,
    You'll have to be more specific. Do you know the name of it? If not, go to your '''about:support''' page by entering it in your address bar and pressing enter, or going to:
    * Help (or [[Image: New Fx Menu]] > [[Image: Help-29]]) > Troubleshooting Information
    Then click "Copy Text to Clipboard" and paste that information here.
    If you don't have many extensions and don't mind going to download them and setting them up again, you can '''Reset Firefox'''. The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your bookmarks, history, passwords, cookies, and other essential information.
    '''''Note:''' After resetting Firefox, you will lose any extensions, toolbar customizations, and some preferences.'' See the [[Reset Firefox – easily fix most problems]] article for more information.
    To Reset Firefox:
    #Click the menu button [[Image:New Fx Menu]], click help [[Image:Help-29]] and select ''Troubleshooting Information''. A new tab containing your troubleshooting information should open.
    #*If you're unable to access the Help menu, type '''about:support''' in your address bar to bring up the Troubleshooting Information page.
    #At the top right corner of the page, you should see a button that says "Reset Firefox" that looks like this: [[Image:Button reset]]. Click on it.
    #Firefox will close and reset. After it is done, Firefox will show a window with the information that is imported.
    #Click Finish and Firefox will reopen.
    Did this fix the problem? Please report back to us!
    Thank you.
    EDIT: How did you update your Firefox? If you downloaded a new copy but didn't download from the official Mozilla website:
    * https://www.mozilla.org/en-US/firefox/new/
    * https://www.mozilla.org/en-US/firefox/all/
    Then you will need to uninstall and reinstall Firefox by downloading a new copy from one of those two links.

  • When you change the password for your apple Id and you loose all your messages can you get them back?

    So my stupid mum decided to change the password instead of waiting for me to get up -_- and now I have lost all my iMessages that were very important and I can't find them I recently tried to back all my iPod up to my laptop but I had a look and couldn't find anything to do with messages can someone help

    You only way is to restore from backup if you have backed up after the Messages were on the iPod but before you "deleted" them. iTunes only retains the last backup.
    See the restore topic of:
    iOS: How to back up

  • I just tried updating to 7.1 and iPad failed. Error message:  If you want your IPad to access your PC, then respond from iPad.  No can do!!!

    Major failure when updating to 7.1.  Very frustrating.  iPad is blank.

    The message is referring to the "trust this computer" message that you get when restoring and updating. Obviously If the screen is blank it becomes "no can do".
    Try a reset of the iPad and see if the screen comes back.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • How do you get blood out of an Apple?

    Apologies to all if this is a slightly unusual posting, but I'm at the end of my tether.
    I'm a freelance graphic designer who, back in April, bought a G5 Quad. Yes, I know my timing was bad, but I needed it for a new project and couldn't wait for the Pro to be launched.
    Quad#1 shipped from Apple Store without Airport or Bluetooth and was subsequently replaced.
    Quad#2 was faulty. After 6 hours on the phone to tech support, they decided that the aerial wasn't working and agreed to replace the machine.
    Quad#3 arrived without Airport and Bluetooth. In post-Oct 2005 Quads these have to be factory installed so, again, the machine was replaced.
    Quad#4 arrived, but Airport would not work - only after some tweaking of the card did it agree to play ball. But that wasn't all - from the moment it was booted up, the machine emitted an ear-piercing screech whenever any load was placed on the processors, such as playing a QuickTime movie. Tech support couldn't isolate the fault, so the machine was replaced.
    Quad#5 arrived minus Airport and Bluetooth... again. By this time I'd had enough and agreed to keep the machine which I hardwired to my router via a 50' Ethernet cable through the roofspace of my office.
    Six weeks later, the fans kicked in and wouldn't stop. The machine went off to an Apple Repair Centre and returned fifteen days later with a new logic board.
    In the four and a half months since I bought the machine, I have spent five working days either talking to tech and customer support, wiping disks and reinstalling software. On top of this, I have been without the machine I use to earn my living for more than a fortnight. And what was Apple's response by way of compensation to a customer of more than fifteen years whose livelihood they had compromised by their inability to dispatch a working machine? They offered me an iPod. Well whoop-de-doo. It seems that, as far as Apple are concerned, any losses caused by their ineptitude have to borne by the customer. God forbid that the shareholders should suffer.
    So, if anyone out there has any ideas as to how I might receive a fairer hearing from my once-favourite computer company, I'd be delighted to hear from them. Failing that, has anyone got Steve Jobs' phone number?
    Thanks for persevering.
    G5 Quad   Mac OS X (10.4.6)  

    This is a sorry tale and so different from my experience. I'd suggest keep climbing the Management tree in Applecare until you get satisfaction - which only you can judge if/when you get it.
    I shipped a MBP to Applecare for a repair (first time) on Tuesday, arrived 4 days later all the healthier for their treatment. Repair time was very fair. Quads however are a different beast altogether. Spares will be spread further apart(cost and low volumes), repair processes being more specialised (liquid cooling etc).
    Got to say there must be didly-squat that is complex with the wirless modules and radio. Awful Apple Marketing making these an optional party on a £2k system. Very poor service from your Applecare support.

  • Verizon rep told me that the tracking info doesnt matter until we get an email from fedex?

    About 4 reps said the shipped/not shipped info doesnt mean anything but if it wasnt a pre order, when it would have shiped. And to not trust it until you get an email from fedex.
    So everyone shouldnt worry if it says processing, you will still get it.
    And for the ones that say shipped, dont get too excited until around the 7th lol.
    I really wish verizon wireless in general would confirm this though.

    iFreak22 wrote:
    Really? When i pre order things that are shipped by fedex i always get a email when it is shipped and the tracking number works.
    cathied wrote:
    Did you call CS 4 times to ask the same question? I don't recall ever getting an email from Fedex for ANYTHING I've ever ordered online from Verizon or anywhere...unless I've requested on the fedex website to be emailed when I did the tracking...but I had the tracking # from the company I ordered from first.
    Also, you may want to leave CS alone with the "when will this ship" business...there are people having computer issues trying to place orders and they're getting inundated with "when will this ship?" when the confirmations clearly say 2/10/11. If your order says it's been shipped then AT LEAST give it 24 hours to see if you get a tracking # before you call.
    I mean seriously, most of us have waited for years for the iphone...can we wait just 1 more week? 
    You get an email from Fedex?  Or from the company? I don't think I've ever received an email from Fedex directly...I've gotten emails from the company I'm ordering from with a link to the fedex website and the tracking info, but never from fedex...

  • If a button on a free app makes you pay $145 without notifying you, can you get a refund and how?

    I recently got the app "Manga Storm" and within it was an option to upgrade it. I wanted to see how much it costs so I pressed it, but without confirmation just outright purchased it. Is there a way to get a refund? $145 is just too much for an app like this.

    Wait until you get the receipt in your email, then click the "Report a Problem" button under the item.  More info on this:  http://www.labnol.org/software/itunes-app-store-refunds/13838/

  • When hit the 'home' icon, i get the error message and dont get back to home page

    When moving from a website, I press the "HOME" icon but I always get an error message but never going back to the home page. How can I solve this problem. Thanks.

    What error message do you get?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.

  • How do you get rintones from Verizon store...

    why can"t i get ringtones for my phone from Verizon wireless website

        Hi typamih,
    Customizing your phone with ringtones is so much fun! While many phones can purchase ringtones, not all of our phones are compatible with online purchases via My Verizon. What make and model phone do you have? What message do you get when trying to purchase a ringtone?
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • Collect message till particular point of Time in BPM

    Hi,
    I want to collect messages till particular point in time like till 6 oclock evening.
    In deadline branch i have to use Expression and should give date and time.
    What is the format of date and time if it is not coming in payload.
    What is the difference between: Creating the step and Creating the process property.
    Any help is apreciated.
    Thanks and regards,
    Satish

    The date and time format will be the standard XSD date and time format
    Date:
    YYYY-MM-DD  or YYYY-MM-DDZ
    Time:
    HH:MM:SS or HH:MM:SS.x
    But since your requirement is to collect the messages till 6pm everyday, I guess there is a problem with the mandatory date field.
    Maybe you can use a datatype which holds the current time in a field and use the field as the loop variable.
    - Kannan

  • Can no longer print from Photoshop CS^ have upgraded drivers error message reads There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents."

    I have upgraded my iMac to Yosemite but now my two Canon Printers no longer print from Photoshop CS6. I have upgraded the drivers. All other applications including Lightroom are fine. I am receiving an error message as follows:"There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents." How can I get the OS to return a list of printers to Photoshop when Photoshop requests a list.

    Have you printed to this printer from 10.10 before?  If so, check your connections.

  • HT3775 unable to get quicktime movies to play on my imac. This is the error message I always get. "The document "4-20130701090400-5.mp4" could not be opened. The movie is not in a format that QuickTime Player understands.You may need to install additional

    Unable to get Quick time movies to play on my imac. This is the error message I allways get.
    "The document “4-20130701090400-7.mp4” could not be opened. The movie is not in a format that QuickTime Player understands.You may need to install additional software to open this type of file."

    Download and install VLC Player. It plays more formats and is free and highly regarded.
    http://vlc-media-player.en.softonic.com/mac
    Cheers
    Pete

  • The keyboard in the messages app has disappeared on my iPhone 5... How can you get it back?.

    How do you get the keyboard back in the messages part of the iPhone 5... Finding it difficult to type messages without a keyboard :)
    Thanks

    have you tried resetting the phone by holding down the sleep/wake button and the home button at the same time until the phone restarts?

Maybe you are looking for

  • Is there a way to initialize a Graphics object (indirectly)?

    Hi, I've a problem with Graphics Abstract class; how must I do to initialize a Graphics object? I must execute this code: Graphics gr; gr.drawString("Image",30,0); gr.drawString("not",30,30); gr.drawString("Found",30,60); image.paintIcon(null,gr,0,0)

  • Is this conditional WHERE clause possible?

    Let's say at the beginning of a stored procedure I do this:  DECLARE @hasActualHours BIT I'll then employ logic to set this local variable to either 0 or 1. I'm interested to know if I can then use it to either include or exclude entire "AND..." clau

  • Excessive disk activity with Safari 3.2.1

    Since updating to Safari 3.2.1 on os 10.4.11, my hard disk begins a lengthy bout of intense disk activity within a minute or two of opening Safari. It just keeps chunking away, and it only stops when I quit the browser. This happens whether or not I

  • Unable to Connect to SUN MQ using Messaging Bridge from Weblogic

    Hello           I am trying to connect to Sun MQ Queueu from weblogic using a messaging bridge. I get the following error message           <Warning> <Connector> <BEA-190032> << Weblogic Mes           saging Bridge Adapter (XA)_eis/jms/WLSConnectionF

  • Premiere CC 2014.1 and Nvidia GTX 980 problem

    Installed my new GTX 980. One problem that came up is intermittant crashing when all screens flash black followed by an error code "3" stating there is a problem with the video driver. I must reboot system. Nvidia says its a TDR problem and I must co