Routing Message based on FileName

Hi all,
          I hav a scenario where I need to route the file based on the file name.
         for eg: if the 10th char of the filename is 'A' then it has to be placed in Location 1
                      if the 10th char of the filename is 'B' then it has to be placed in location  2.
     Both sender and receiver are file adapters.
     I thought of using condition in Intrface Determination (Context object) , but got stuck since I have to comapare only the 10th char not all the characters since other characters are dynamic.
Note: This is a pass through Interface and no mapping is involved.
Thanks,
Siva

Hi,
      I am using Context Object functionality for routing purpose.
     In XPath we can use SubString Function but we can not use the same Function in Context Object.
     Is there any workaround for this.
Thanks,
Siva

Similar Messages

  • Content based Routing Vs Message based Routing

    Hi friends,
    Can u plz differentiale Content based Routing and Message based Routing?

    Hi,
    Content based routing is when the receiver is determined based upon some value in message i.e for a field 'a' receiver is A but if its 'b' receiver is B.this is determined at runtime.
    While message based is normal routing
    Regards,

  • Content and message based routing

    Hi Experts,
    How to do Content and message based routing for webservices through Enterprise Portal?
    Regards
    Sara

    hi
    Content based routing in XI can be done during
    1) Receiver Determinations (Integration Directory) --- Used for entering a condition for
    forwarding a message to one or more receivers
    http://help.sap.com/saphelp_nw04/helpdata/en/26/5ccd3bb4560f01e10000000a11402f/content.htm
    2)Interface Determinations (Integration Directory) --- Used for entering a condition for forwarding a message to multiple inbound interfaces
    3) Designing Integration Processes (ccBPM) (Integration Repository) --- Used for entering a condition for processing process steps (see Step Types)
    At all the 3 places u will use the Condition editor,
    http://help.sap.com/saphelp_nw04/helpdata/en/67/49767669963545a071a190b77a9a23/content.htm
    rgds,
    Arun

  • Custom routing agent based on sender's security group and subject

    I made a custom routing agent that routes mails contains the word [encrypt] in the subject and sent from domain test.com
    The part of the code is
    if (e.MailItem.FromAddress.DomainPart.Contains("test.com")
                    && e.MailItem.Message.Subject.Contains("[encrypt]"))
    now what i need is to route mails based on the membership of a certain security group like "securemail" not the whole domain. ie if the sender is a member in security group (securemail) and the subject contains the word [encrypt] route the mail
    Thanks

    Thanks for your answer Glen
    The following  code is on exchange 2010 but i need it to check for a security group membership if possible
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.Exchange.Data.Transport;
    using Microsoft.Exchange.Data.Transport.Email;
    using Microsoft.Exchange.Data.Transport.Smtp;
    using Microsoft.Exchange.Data.Transport.Routing;
    using Microsoft.Exchange.Data.Common;
    namespace RoutingAgentOverride
        public class SampleRoutingAgentFactory : RoutingAgentFactory
            public override RoutingAgent CreateAgent(SmtpServer server)
                RoutingAgent myAgent = new ownRoutingAgent();
                return myAgent;
    public class ownRoutingAgent : RoutingAgent
        public ownRoutingAgent()
            //subscribe to different events
            base.OnResolvedMessage += new ResolvedMessageEventHandler(ownRoutingAgent_OnResolvedMessage);
        void ownRoutingAgent_OnResolvedMessage(ResolvedMessageEventSource source, QueuedMessageEventArgs e)
            try
                // For testing purposes we do not only check the sender address but the subject line as well
                // If the subject contains the substring "REDIR" then the default routing is overwritten.
                // Instead of hard-coding the sender you could also perform an LDAP-query, read the information
                // from a text file, etc.
                if (e.MailItem.FromAddress.DomainPart.Contains("contoso.com")
                    && e.MailItem.Message.Subject.Contains("[encrypt]"))
                    // Here we set the address space we want to use for the next hop. Note that this doesn't change the recipient address.
                    // Setting the routing domain to "nexthopdomain.com" only means that the routing engine chooses a suitable connector
                    // for nexthopdomain.com instead of using the recpient's domain.
                    RoutingDomain myRoutingOverride = new RoutingDomain("nexthopdomain.com");
                    foreach (EnvelopeRecipient recp in e.MailItem.Recipients)
                        recp.SetRoutingOverride(myRoutingOverride);
            catch // (Exception except)

  • FTP Transfer: based on filename it needs to be moved to different directory

    Hi,
    I am doing a FTP transfer of file from one location to another. In this scenario, based on filename the file needs to be moved to Directory A or Directory B.
    Is this possible having a single receiver file adapter?
    Regards,
    Ashish

    Hi Ashish
    What you can do is
    1. You can pick the file from location and use variable substitution to deliver the file on base of filename. But the limitation is folder name should have some characters common to filename as well.
    2. You can write file to a temperory location and then execute OS command to move the files to appropriate folders
    3. Create two communication channels and enhanced receiver determination to find our which folder based on filename at runtime.
    Thanks
    Gaurav

  • Collecting Message based on Delivery Id

    Hi,
    We have an scenario to collect the messages based on delviery number, like customer sends the bulk order and SAP splits that order and create the delivery for each splitted orders .
    Eg.
    Sales Order     Batch Order
    PO#      1234
    This Batch order is split in to multiple orders as below
    Order_1     Order_2     Order_3
    1234_A_C     1234_B_C     1234_C_C
    Delivery_1     Delivery_2     Delivery_3
    1     2     3
    These deliveries are sent to PI as DESADV in differnet time frame.
    ->     DESADV# 1     DESADV# 2     DESADV# 3
    inbound time     10:30AM     11:00AM     11:20AM
    PO#     1234_A_C     1234_B_C     1234_C_C
    Outbound time     11:20AM     11:20AM     11:20AM
    Now we need to collect all the DESADV for a single batch order and send it to customer as a single DESADV .
    Can anyone help me how to handle this in PI.
    Is there any BPM process there to collect the messages based on PO number (1234_A_C,1234_B_C,1234_C_C) for particular partner.
    I know correleation id can be used but PO is not constant.
    Thanks
    Lakshmi S

    you can use the BPM Pattern to achieve this functionality.
    Also refer the following links:
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/08/16163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/41/e3d13f7fb44c21e10000000a1550b0/frameset.htm
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure

  • Dual-routing messages in gateway/ext-domain

    Here's another question related to our impending rollout of Groupwise to
    our stores...
    Currently, our stores' POS systems receive text messages via the
    mainframe. To allow corporate users with Groupwise to send mail to the
    stores, we set up many years ago an external domain and set up each
    store as an external user in this external domain. Then, using the 4.2
    API gateway, all mail sent to any of these external users is dumped in
    the ATT_OUT and API_OUT folders which is then picked up on a timed
    basis by the mainframe and delivered to the store's POS system.
    Now, using SLES10 and a Linux portal, we are going to give each of the
    stores a REAL groupwise address with a REAL mailbox.
    What I'd like to know is... is it possible to route messages sent to
    the external user back to the new real mailbox while the conversion
    process is taking place. In other words, we've got to convert 1300
    stores and this process will take several months. Thus, we won't be
    able to turn off the api gateway all at once and it will take some time
    for systems and users to start using the new mailboxes.
    So... if an internal groupwise person sent a groupwise message to
    external user 10337.POS (where 10337 is the external user and POS is
    the external domain), could the message still be placed in the
    API_OUT/ATT_OUT folder of the gateway so the mainframe could pick it up
    while simultaneously the message is routed to store10337.PRI_DOMAIN or
    [email protected]?
    Jim
    jgosney

    jgosney,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Find Message based on Content

    Hi all
    Is it Possible in XI to find a message based on the Message Content.Like any value in Payload?
    Thanks and Regards
    Bhasker

    Hi Bhasker,
        Check this blog:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID0547743150DB20098387303032179271End?blog=/pub/wlg/2675
    Regards,
    Ravi

  • Polling messages based on priority in BPEL using JMS adapter

    Hi All,
    Is it possible to poll the messages based on the priority in BPEL using JMS adapter?
    I could set the priority for the messages but while polling it is picking the messages in FIFO(First in First out) order. But I want the messages to be picked on priority.Any help is appreciated.

    Do you only want to pick up messeges with a certain priority? So anything larger than say priority 2?
    You can try this: Oracle JCA Adapter for JMS - 11g Release 1 (11.1.1.5.0)
    Message SelectorThis field is also optional. It filters messages based on header and property information. The message selector rule is a Boolean expression. If the expression is true, then the message is consumed. If the expression is false, then the message is rejected.For example, you can enter logic, such as:
    JMSPriority > 3. Based on this, messages with a priority greater than 3 are consumed; all other messages are rejected.
    JMSType = 'car' AND color = 'blue' AND weight > 2500
    Country in ('UK', 'US', 'France')

  • Why is Spotlight not finding images based on filename?

    I have 25,000 photos that I have meticulously named, but when I try to do a Spotlight search based on filename, nothing shows up.  For example, if I type "Disney," then about 200 photos with "Disney" in the file name should appear, but they don't. I can find the images on my own, for example "091012 CA Disney Family Vacation2," but Spotlight can not. Why?

    Hi there tau_ataina,
    Based you the issue you are describing, you may need to re-index Spotlight. Take a look at the article below for more information. 
    Spotlight: How to re-index folders or volumes
    -Griff W. 

  • Route call based on source IP address

    Hello Guys,
    Is there a way to route calls based on source IP address?
    I want to redirect calls to specific queues based on the ip of the phone who's starting it.
    Any ideas?
    Thanks in advance.
    Filipe Leite                  

    Hi Filipe
    I'm assuming here that you are using CallManager rather than CME?
    One option might be to use the 'device mobility' feature to assign a specific CSS to devices based on their IP subnet. That CSS could have the appropriate partitions to route to a seperate trigger that directs calls to a separate CSQ.
    Of course, whether you can do this depends on whether it would be appropriate to override the device CSS in this way.
    Aaron

  • Route decisions based on destination TCP port with EIGRP

    Need information and plausibility on making routing decisions within EIGRP based on different destination TCP port.  I have a third party partner that we communicate too and they are adding a second location which we will connect too.  They are wanting to use the same destination host IP but make route decision based on destination TCP port; i.e. if we target tcp 6123 they want us to route down link A to site A, if we target tcp 7123 we would route down link B to site B.  I have never had to make that happen so I am looking into whether it actually can and if so what is basic configuration to pursue.  We use static IP routes to/from them today and will in the future at the edge, those are distributed internally to our EIGRP.  Can EIGRP make decisions based on IP and Port?

    No routing protocol makes decisions based on port number as far as I know.
    You need to look into PBR (Policy Based Routing) for this where you can use acls to define the route that traffic takes.
    Depending on your connections you may well need to use tracking as well but it depends.
    If the only reason to use EIGRP is for these connections you probably don't need it as with PBR you are overriding the routing table anyway but you may want to run it for other connectivity.
    If you do a search on PBR you should find quite a few examples but if you get stuck then by all means come back.

  • Possible to Route Traffic Based on AVC?

    Is it possible to route traffic, based on the Application Visibility Control functions that specific Cisco routers are capable of?  Here's my issue:  I have two ISP's.  One is at about 120% utilization.  The other isn't doing anything.  I can specify ip routes based on IP addresses.  For instance, I can ip route 173.252.110.27 255.255.255.255 10.x.x.x to point to our ISP2 firewall, which is our non-utilized provider, for Facebook traffic.  The problem is that sites like this have massive public subnets, so I won't be able to capture all of the traffic destined to Facebook.  Is there a way to route traffic based on application?  I know that Palo Alto firewalls have a way to do Policy Based Forwarding, based on application.  I was wondering if the same was possible with AVC.  Thanks for any help.

    Hello.
    Yes, it's possible and, actually, you have 2 ways.
    1. use manual load-balanace between links.
    2. use PfR to load-balance traffic automatically.
    PS: you also will need NAT with route-map.

  • Workflow Process Manager - Could not route message to WfProcMgr with regist

    Hi,
    We recently started getting a strange error in our DEV environment:
    Could not route message to WfProcMgr with registered key (null)
    This is happening with the Server Component, Workflow Process Manager, and all services associated with this.
    We are using Siebel v7.8.2.8. If anybody can provide any pointers, it would be of great help!
    Thanks

    Hi Trym,
    Thanks for your time!
    The target workflow that I am triggering from the WfProcMgr is a custom workflow and it does not have a BO defined. So, the Object Id should not be a mandatory field (I am in any case, not passing any Object Id). Nevertheless, whether I have an Object Id or I do not, I would assume that the Workflow would at least get triggered. I donot see as to why the Workflow would not trigger at all.
    Though Siebel does act weird at times, I think the error I am getting is still somehow related to the actual cause! I would really like to understand as to where is this Registered Key stored in Siebel that it is continually searching for.
    *When you say "Workflow Process Manager server component directly" do you mean like in a eScript
    call in e.g. a Business Service?*
    Please refer the second part of my previous post for this. I am trying through Server Requests BS and through Workflow Policies.
    Thanks.

  • JmsAdapter issues-Pick message based on correlationid

    Hello,
    I'm experiencing an issue during picking the messages from AQ based on the JMSCorrelationID in Asynchronously.
    I've developed asynchronous BPEL services, which will post messages in AQ (Inbound), the same service will liston response from Out queue.
    Currently my service is consuming all messages, i want to consume only relevant response message based on the correlation Id.
    Could you please advise me?
    Regards,
    Paddy.
    Edited by: user8725842 on Feb 22, 2012 4:44 PM

    Replied in
    Oracle JMS Adapter - Bpel Pick message from AQ based on the correlationId?

Maybe you are looking for

  • Can nested IIf be created in custom workflow (in Designer)?

    I need to explore building a custom workflow in Designer that will allow me to update a hidden field in the list.  Is it possible for me to recreate the nested IIf statement I have written below?  I'm not seeing how to do get an AND operator in the w

  • How do I mount a Windows share on 10.5.3 server so everybody can use it?

    I was successful in mounting a share and, I hope, giving it 777 directory permission and 666 file permission. However, nobody else can even see it! I used: mkdir /share mount_smbf //logname:password@windowsserver/share /share This worked for me. I ca

  • Using Monitor to Watch DVD

    I recently got a Samsung monitor which I use to hook up to my macbook. I usually use it as my only screen, but there are times that I want to watch a DVD and work at the same time. I am trying to figure out how to get either Front Row or the DVD play

  • Add new fields in the header of  RFITEMAR

    hi,   i want to add new fields in the header of RFITEMAR report ,so first i copy i to zRFITEMAR ,then i want to add                        " Total Quantity "   in the header after City field . can any one help me???????? please ,, i waiting your answ

  • How does one copy a dvd using disk utility?

    How does one copu a dvd using disk utility?