How to implement resend mechanism in BPM in order?

I have a requirement to implement a synchronous scenario in BPM,which doe sthe following steps
1)Recieves a transformed idoc message
2)Sends the message to a webservice synchronously
3)Waits for the response for a duration of 1 min
4)Resends it again if no response.
Could you please suggest a way to implement this processing in order in such a way that,if the idocs are sent in queued manner to the BPM,the second idoc is only sent after the complete processing of the first one is over,ie after the resend of the first idoc is completed?

Hi,
Does anyone have any suggestion regarding this.
For better clarity i will tell my requirement once gain.
I am implementing an idoc to synchronous web service scenario using BPM in between.The BPM have to recieve the idocs in order.This has been implemented successfully.
Now the BPM should accept each idoc,sent it to the synchronous web service,wait for the response and if no response available ,it should resend.If resend also not successful, then the other suceeding idocs should not be sent and should be stuck in queue,until we resolve the issue.Once the issue is solved,we should be able to resend the messages in the queue in the same order.
So al together,the entire processing should take place in Exactly Once in Order and the unprocessed idocs should be stuck in queue,if there is any sending or recieving issues.
I have currently implemented the BPM in such a way that i have a recieve step in loop with correltion as IDOC TYP so that it recievs all idocs to the same process instance.The same loop contains a transformation and also a  sync send step with no exception handler defined  to catch system sending errors.Hence the BPM will go into error status and the rest of the idocs will be stuck in the queue.And the BPM can be restarted after solving the communication issues. And all the messages will be resend.
If no sending errors,also,I suppose the synch send step willitself go into error state after it waits for the response for some seconds.Am i correct in this approach??
I would like to know your suggestions whether it will wrk fine or not.
Edited by: janice ann george on Jan 14, 2009 11:35 AM

Similar Messages

  • How to implement registration mechanism in JavaME

    I have my game in JavaME completed and ready to sell it. How do I implement registration mechanism so that only the user who paid can run my game?Thanks in advance

    No answer? I guess the registration mechanism does not have to be JavaME specific. Can someone point me to a link/tutorial on how software registration is implemented? I found one link on Nokia forum where someone said that he would create a unique RMS record when the software runs the first time. After that, just check against this record. But I don't see how this will protect my software from being used by un-authenticated users?

  • How to implementing locking mechanism in abap?

    Hi
         my program run by different users. I want
         to ensure that at a particular point of time only
         one instance of my program running, and all others
         should be in wait.
         if have a solution for this. i can make use of a flag
         (global flag ) i set/get this flag from import/export
         mechanism. for example.
         do.
         import v_flag = v_flag from MEMORY id 'ZFLAG'.
         if v_flag is initial.
             v_flag = '1'.
             export v_flag to memory id 'ZFLAG'.
             exit.
         endif.  
         enddo.
         ***Rest of the program main code****
         clear v_flag.
         export v_flag to memory id 'ZFLAG'.
         is this ok? or any other locking mechanism supported
         by abap.
    Regards,
    Abhimanyu.L

    Hi
    Check the following,
    http://help.sap.com/saphelp_nw04/helpdata/en/7b/f9813712f7434be10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/aa/fd823730fa874ae10000009b38f8cf/content.htm
    http://www.sapdb.org/7.4/htmhelp/7d/75d34a6a210b4b95f232e5f9acd232/content.htm
    http://www.sapdb.org/7.4/htmhelp/6e/ab5d79286b3d4a9f72ef140191d208/content.htm
    http://sapdb.net/7.4/htmhelp/43/151d12671a2240947990c5152a4bbd/content.htm
    Please reward if it helps.

  • How to implement notification with response against each order lines

    We have a requirement wherein the multiple order lines should be displayed in one notificaiton and the response (Approve/Reject) should be line wise.
    For exmple, if an order has 3 lines, the approver should get one notification with all 3 lines displayed in the notification. Approver should be able to approve say 2 lines
    and reject the third line.
    If reponse is not possible line wise, is it possible for including a drop down/checkbox/text against each line which would enable the approver to approve/reject the line and the approver response against each line should be captured.
    How do we implement this?

    Hello,
    we are evaluating BC4J/JClient. In our application we have a navigation tree
    in a Java client from which we can call nested dialogs to set attributes,
    call business logic etc.
    Is it possible to open more than one sub-dialog from our starting navigation tree
    at the same time? Each sub-dialog should have its own transaction context.
    To our knowledge we need a new application module for each sub-dialog in order
    to start a new transaction. But how is the navigation tree updated if data
    from the sub-dialogs is commited? The dialogs and the navigation tree don't share
    the same model, do they? The navigation tree might have to show lots of data
    retrieved over a slow connection, so simply updating the entire model is not a solution.
    This could work if an intelligent caching fetches only the changed data.
    So: What is the best way to implement sub-dialogs with their own transaction plus an
    update mechanism?To create a UI like this, see the sample on OTN at
    http://otn.oracle.com/sample_code/products/jdev/jclient/jclient_binding_demo.html
    YOu'd have to tweak this sample so that each sub-window comes up with it's own AM (as you've right suggested).
    Regarding commit, yes, if you do not want to query the whole model on the navigator, you may use Transaction.commitAndSync() method to commit changes instead of simply performing a commit() call.
    See javadoc on this method for details on how it works.
    Thanks for any help!

  • How to implement Sync-Sync scenario in BPM? Please help!

    Hi Experts,
       I have a Sync-Sync scenario (SOAP - RFC) where both sender as well as receiver are synchronous.
       I have created outbound sender sync interface, abstract sender sync interface, Receiver abstract sync interface and Receiver inbound sync interface.
      In BPM I have started with Receive step.
      But in receive step I can give either Async Abstract interface or Open Sync-Async bridge. I am confused!
      How to implement my scenario in BPM?
      It will be really great if somebody can send me the step by step info or doc.
    Thanks & Regards,
    Gopal

    Hi,
    Refer this link
    use synchronous send step in your BPM - http://help.sap.com/saphelp_nw04/helpdata/en/43/6211331c895f6ce10000000a1553f6/content.htm
    RFC Scenario using BPM --Starter Kit
    http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/content.htm
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    regards
    Aashish Sinha
    PS : reward points if helpful

  • Implementing GrabCut - how to implement graph cut?

    Hi all,
    I'm implementing the GrabCut segmentation technique in java.
    This is a link to the GrabCut paper
    research.microsoft.com/vision/Cambridge/papers/siggraph04.pdf
    I'm working with this paper (explains briefly how to implement the whole system)
    students.cs.byu.edu/~jtalbot/research/Grabcut.pdf
    The last part of the implementation involves finding a minimal cut in a graph
    (I need to build a graph from the image pixels with some constrains).
    Does anybody have an idea how to implement weighted graph class efficiently
    in order the graph cut algorithm to run fast?
    Thanks all
    Edited by: drortrie@ on Aug 17, 2008 5:06 AM

    Hi all,
    I'm implementing the GrabCut segmentation technique in java.
    This is a link to the GrabCut paper
    research.microsoft.com/vision/Cambridge/papers/siggraph04.pdf
    I'm working with this paper (explains briefly how to implement the whole system)
    students.cs.byu.edu/~jtalbot/research/Grabcut.pdf
    The last part of the implementation involves finding a minimal cut in a graph
    (I need to build a graph from the image pixels with some constrains).
    Does anybody have an idea how to implement weighted graph class efficiently
    in order the graph cut algorithm to run fast?
    Thanks all
    Edited by: drortrie@ on Aug 17, 2008 5:06 AM

  • How to Implement custom share functionality in SharePoint 2013 document Lib programmatically?

    Hi,
    I have created custom action for Share functionality in document library.
    On Share action i'm showing Model pop up with Share form with addition functionality.
    I am developing custom share functionality because there is some addition functionality related to this.
    How to Implement custom share functionality in SharePoint 2013  document Lib pro-grammatically?
    Regards,
    - Siddhehswar

    Hi Siddhehswar:
    I would suggest that you use the
    Ribbon. Because this is a flexible way for SharePoint. In my project experience, I always suggest my customers to use it. In the feature, if my customers have customization about permission then i can accomplish this as soon
    as possible. Simple put, I utilize this perfect mechanism to resolve our complex project requirement. Maybe we customize Upload/ Edit/ Modify/ Barcode/ Send mail etc... For example:
    We customize <Edit> Ribbon. As shown below.
    When user click <Edit Item>, the system will
    render customized pop up window.
    Will

  • How to call the Jsp through BPM Obejct

    Hi,
    I have gone through the some topic, how to call the Jsp through BPM Object.
    I have followed step below,
    1. I have create the sample jsp page
    2. Import into BPM studio under webroot\custom Jsp
    3. Created the screenflow and added the "Interactive Component call" object
    4. Right Click the Object and selected Maintask and Implementation type as "BPM Object Interactive Call"
    5. Selected the use JSP presentation object option and when i click ok its showing "BPM instance object must be selected"
    But when i select the Instance Variable tab, its not showing anything.
    Can any one help me how to call the Jsp in screenflow with step by step procedure, that would be very greate help for me.
    Regards,
    Anandh P

    Hi,
    You are running a jsp report through rwservlet. In this case paper layout will be displayed. You have to deploy your jsp as web report to get the web layout. Please refer to the doc below, which describes how to deploy the web report.
    http://download-uk.oracle.com/docs/html/B10314_01/pbr_run.htm#1011901
    To run the jsp report, URL may look like
    http://www.wwt.com/reports/<jsp name>?<parameter list>
    Hope this helps
    Vinayak

  • How to implement Disaster Recovery in TimesTen?

    hello, chris:
    we have a requirement to implement disaster recovery from remote when the master and standby nodes are failover in local. how to implement it in timesten? Can master standby pairs with subscribers mode caryy out it? when the master and standby nodes are fail, can subscriber node take over the application?? thank you.

    The best, and recommended, solution for this is to have an active/standby pair located locally as the primary mechanism for high-availability and to configure a remote readonly subscriber datastore. In the event that the primary site completely fails, the remote subscriber can be easily (few seconds) promoted to an active to form the basis of a new active/standby pair at the remote site.
    It is not supported to split an active/standby pair across a network connection that is anything less than LAN grade but a remote subscriber can be located across any reasonable network connection (WAN, VPN etc.) as long as there is sufficient bandwidth and the latency is not too high.
    Chris

  • How to implement XI interfaces in online and offline modes?

    Hi Everybody,
    Can you please tell me how to implement XI interfaces in online and offline modes?
    thanks a lot,
    Ramya Shenoy.

    Hi,
    Are you looking for Push and Pull mechanism of PI?
    When the adapters like SOAP, HTTP, IDOC, etc. send the data to PI , it is nothing but a push mechanism, and hence the communication is synchronous by default.
    But adapters like JDBC, File, etc. they fetch the data from Source Applications, so it is a kind of Pull mechanism for PI, and
    by default communication is asynchrnous.
    Pls elaborate exactly what are you looking for?
    Regards,
    Supriya.

  • How to implement a

    I have an application which uses the Comm API to communicate to a device
    through the serial port. It is now necessary that I get acknowledgements
    back from the device between messages. That is, I send a packet, and
    cannot send another packet until that one is acknowledged. So, I need to
    create a queue of packets to send, and after each is sent, I need to listen for
    incoming packets to determine if I got an acknowledgement, after which I
    can send the next one.
    Other unrelated packets might come in, so I cannot "busy wait".
    It seems like the best choice is to have a queue that is on its own thread, so
    that whenever a packet comes in both the main thread and the queue
    thread can decide how to react to it. I have some ideas about how to
    implement this, but they are probably not "clean".
    Is there a class that does something like this? I was going to create a class
    which implements Runnable, and listens to the class which deals with the
    serial port, and have the run method send a packet, and wait until a flag
    was set that verifies that the acknowledgement packet was recieved, and
    then it would send the next one. But I am a bit confused about what
    happens when the queue gets empty and the run method stops.
    So then I thought the queue would belong to a different class which would
    create a new thread if the queue is empty, and keep adding to it as long as
    it is empty. That is, if the queue is empty, create a new thread and start it.
    If the queue is not empty, just add the new object to the currently running thread.
    Does any of this make sense? Ideas?
    Thanks,
    Chuck.

    I'm not at all sure what the "future result" pattern is, and a google search
    didn't help much.
    Wouldnt you check for a message before trying to send
    something?
    Vector queue;
    if(queue.size() > 0 ) {
    // transmit
    I think you are missing something here--If the queue is empty, what happens? What is listening for new requests to send? What is waiting
    for acknowledgments?
    However, I think I can solve the problem without threads simply by having the queue listen for incoming packets, and if an acknowledgement is received, then the next packet is sent. Otherwise, it resends the original. The only downside I see to this is that if packets are never received, they are never sent. But if that is the case, there are bigger problems to deal with, so I think it may be acceptable.

  • How to implement a logout

    I have a basic jsp application with a form-based authentication[which is working well].
    I would like advice on how to implement a logout mechanism from the application.
    I would also like help on how to retrieve the user ID of the user so that i display it on the screen.
    ochomo

    Call HttpSession#invalidate() to invalidate the session.
    The remote user is available by HttpServletRequest#getRemoteUser() and its principal by HttpServletRequest#getUserPrincipal() by the way.

  • How to implement content caching for jsp page ?

    Hello everyone,
    I am reading an article <Servlets and Jsp Best Practice>,at
    http://developer.java.sun.com/developer/technicalArticles/javaserverpages/servlets_jsp/#author, on one section it is saying :
    "Cache content: You should never dynamically regenerate content that doesn't
    change between requests. You can cache content on the client-side, proxy-
    side,or server-side. "
    Now I am working on a project. For every user, some of the content servlet generated will be the same for at least a week . I am thinking if I implement caching for these jsp pages, that would increase performace a lot.
    But I have no idea how to implement it either client-side or server-side, can someone give me a hint ?
    Thanks,
    Rachel

    You mean actually you are caching the response stream
    and the key to distinguish between different response
    streams are made of user's different request
    parameters. And the filter's function is to intercept
    the request to see if this request parameter's
    combination already exists in the Hashmap,then either
    use the cached response or forward to
    servlet.....really interesting...Do I get it right ?Yes that's it in a nutshell.
    >
    Then how do you build those response streams in
    advance ? You did it manually or have some mechanism
    to build it automatically ?
    The data gets cached the first time somebody visits the page.
    Find some examples on Filters, and take a look at the HttpServletResponseWrapper class. You need to cache response headers as well as the body. Another pitfall that you might run into is handling an If-modified-since header on the request. Don't cache the results of those requests.
    -Jonathan
    >
    Thanks again !
    Rachel

  • How to Implement Management Chain in External routing Service

    hi,
    I am using External Routing Service to Assign & route the tasks.
    I will get the authorisation workflow in our external Routing class , Now I am suppose to implement that workflow in BPM worklist for that human task.
    One way is to know the way to implement management chain in the External Routing Service.
    I have found some BPEL classes for doing the same eg. ParticipantsType.ManagementChain, objFactory.createParticipantsTypeManagementChain().
    But not able to find any sample code to implement.
    Does any body knows how to implement the same.
    Is their any other way to resolve this issue.
    you can also refer the following thread to understand the problem statement: PROGRAMMATICALLY PERSISTING THE APPROVAL WORKFLOW FOR A HUMAN TASK.
    thanks
    Jagdish

    I have tried the below mentioned code for implemnting management chain...
         private Participants createParticipant() {
              System.out.println("1");
              String user = users[numberOfApprovals++];
              ObjectFactory objFactory = new ObjectFactory();
              Participants participants = objFactory.createParticipants();
              participants.setIsAdhocRoutingSupported(false);
                   StageType stage = objFactory.createParticipantsTypeStage();
                   stage.setName("Stage1");
                   System.out.println("2");
                   SequentialParticipant seqParticipant = objFactory.createParticipantsTypeSequentialParticipant();
                   seqParticipant.setName("Stage1.Participant1");
                   System.out.println("3");
                   ListType listType = objFactory.createList();
                   ManagementChainListType managementListType = objFactory.createManagementChainListType();
                   // adding Resource in the management chain
                   ResourceType resourceChain = objFactory.createResourceType("fkafka");
                   resourceChain.setIsGroup(false);
                   resourceChain.setType("STATIC");
                   resourceChain.setIdentityType("user");
                   managementListType.getResource().add(resourceChain);
                   System.out.println("4");
                   // adding levels in the management chain
                   ParameterType levelParameterType = objFactory.createParameterType("2");
                   levelParameterType.setType("STATIC");
              managementListType.setLevels(levelParameterType);
                   System.out.println("5");
                   // adding title in the management chain                    
                   ParameterType titleParameterType = objFactory.createParameterType("Vice President");
                   titleParameterType.setType("STATIC");
                   managementListType.setTitle(titleParameterType);
                   System.out.println("6");
                   listType.setManagementChain(managementListType);
                   System.out.println("7");
                   seqParticipant.setList(listType);
                   System.out.println("8");
                   stage.getParticipantOrSequentialParticipantOrAdhoc().add(seqParticipant);
                   System.out.println("9");
              participants.getParticipantOrSequentialParticipantOrAdhoc().add(stage);
              System.out.println("10");
              return participants;
    The above code doesnot give error during execution but It doesnot work, what It's suppose to be...
    what It does is..It calls onInitiation method number of times [equal to the number of levels given in hierachy +1] at one shot. without being assigned to anybody and come out of the human task.
    please let me know..If am missing something...
    thanks
    Jagdish Khera

  • How should implement multi-thread in single-threaded Operating system using

    How should implement multi-thread in single-threaded Operating system using java?
    Java supports "Multi-threading".Is there is any way run the multiple threads (Implementing multi threading) using java in a Single-threaded Operating system (That is the operating system does not support for multi-threading).

    Previous questions from OP suggest they are using J2ME, so the question might be possible.
    806437 wrote:
    How should implement multi-thread in single-threaded Operating system using java?
    What is the actual question/problem?
    A java app doesn't do threads or not do threads. It uses classes. The VM does threads.
    So if you have a platform that does not have threads and you want to support the thread class then the VM, not a java app, must provide some pseudo mechanism, such as green threads, to support that.
    If your question is about java code and not the VM then you must build a task engine and insure that the tasks are of short enough duration that it is an effective use for your system.

Maybe you are looking for

  • Web pages are not saving and loading correctly

    I recently designed my website, www.gregknightrolfing.com. When I first put it together I gave it a certain look, then changed it and made the changes on every page. But when I publish the website and upload it to the web, two of my pages (http://www

  • IPhoto 6 or Photo to Movie

    Hey all, I'm a new Mac user and do like iPhoto 6 quite a bit for making slideshows with all the slick transitions and the Ken Burns effect. I ran across Photo to Movie and am wondering if anyone has had recent experience with this program? What's tha

  • Cannot start more than 1 oidldapd

    Oracle 8.1.7 on HP-UX 11(64bit) When I try to start more than 1 oidldapd server I receive in log: 2001/07/01:13:47:31 Oid Server Connected to DB store via ldwire connect string. 2001/07/01:13:47:31 OiD LDAP server started. 2001/07/01:13:47:31 sgslunl

  • Videos made in elements 12 will not play in 13

    Iv've just up graded from Premiere Elements 12 to 13 and videos i've made 12 will not plain 13, any suggestions

  • IDoc To Local File

    Is there a way to convert an already generated IDoc (viewable thru WE02) into a local file on my machine - i.e. text, spreadsheet, html, etc...? Thanks - points will be rewarded.