BPM: How to Raise Alert and Restart together ?

The requirement is like this.My Integration Process receives a message, performs a 1:N split and undergoes further processing using Transformation steps. I want to ensure the following in case any one of the Transfofrmation fails(Because of some coding error in the step):
1. Raise an Alert
2. Should be able to restart the Process again from the
   failed step once the Transformation code is fixed.
3. To raise an Alert for any file adapter level errors, 
   and to restart the processing of the message once the
   file adpter error is resolved
I have tried the following approaches, but it does not help me achieve all of the above condition.
I have put the Transformation step in a Block and introduced an exception branch with one control step which raises an Alert.
Issue: This will raise an alert when the step fails, but it ends the BPM with a Processed status and hence I will not be able to restart the BPM.
So I put another Control step immediately following the Alert step which raises an exception. However I have not handled this exception. Hence when a step fails, I am able to raise an alert as well as the BPM gets errored out.
Issue : However, now when I restart the process in swf_xi_swpr, The process restarts with the Control step which was used to throw exception. It does not restart with the Failed mapping step.
To raise Alerts for Adpter level errors which might occur before the message comes to BPM, I have defined alert category and rule in runtime workbench. However, the Alerts are not triggered when the file adapter fails.
Please share any ideas on how to achieve all the 3
requirements together.
Thanks in advance.

Hi Joachim!
I was facing a very similar problem in my BPM modelling.
Is there really no other chance than to loop (and maybe wait some time) over the critical (e.g. networking down, ...) parts of the BPM to have some active notification via alerts AND a possibility for retry?
In my opinion this would a very inflexible way of doing error-handling stuff - if so - is it about to change in the upcoming releases?
Currently I guess I can have:
a) either ALERTING (by catching exception and raise alert)
OR
b) convenient retry mechansisms via "SWF_XI_SWPR" (by not catching exceptions at all and let the relevant block become "errorenous") ...
Any other suggestions ...?
Many Thanks,
Andy

Similar Messages

  • How to raise alert in BPM

    Hi Experts,
    Please tell me how to raise alert using control step in BPM. What are the other steps to be used with control step for raising alerts?
    Is CCMS Alerts and Alerts by BPM are same? If they are not the same, how they are different to each other?
    my requirement is, simply i want to raise a mapping, data related errors by Alert.
    in addition to it, i want to raise alerts for any failure in IE.
    Could any one tell , what are the sequence of steps needed in BPM for the above requirement?  Plz take a IDOC to FTP receiver scenario and explain me BPM steps.
    thnx
    RAMS

    Hi rams
    for more details refer these
    refer these link for more details about Alert
    For email alerts
    /people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
    /people/sap.user72/blog/2005/01/14/alert-management--improving-monitoring-of-your-landscape
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    You have to do SMTP Configuration for EMail and SMS.....
    http://help.sap.com/saphelp_nw04/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htm
    Alerts
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-stepCheck out these:
    RWB- Alert Configuration LInk isnot working
    Unable to login into Alert configuration
    Get all the details here
    CCMS ALERTS
    /people/sap.user72/blog/2005/11/24/xi-configuring-ccms-monitoring-for-xi-part-i
    /people/sap.user72/blog/2005/12/05/xi-grmg-customizing-for-xi-ccms-heartbeat-monitoring-part-ii
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
    Alerts
    transaction handling in XI
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    • Auto triggering of alerts
    transaction handling in XI
    • SCOT
    not sending email from alert inbox
    See this link : http://help.sap.com/saphelp_nw70/helpdata/en/da/a3a7408f031414e10000000a1550b0/frameset.htm
    heck this weblogs on creating them and troubleshooting:
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9418d690-0201-0010-85bb-e9b2c1af895b
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    Further reference
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/content.htm
    Also suggested go through the blog:Alerts with variables from the messages payload
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    /people/ginger.gatling/blog/2005/12/02/innovative-ways-to-use-alerts
    /people/matt.kangas/blog/2006/06/27/personalized-alert-delivery
    U may proceed in the following ways:
    1. Reduce the securit settings of ur browser and enable the cookies
    2. Try to SSO enable ur scenario
    Have a look here:
    SAP Note 840849
    The configuration required as per ur patch level
    SAP Note 913858
    Check out these:
    RWB- Alert Configuration LInk isnot working
    Unable to login into Alert configuration
    Thanks !!

  • How to Raise alert in XI when a new file reaches application server

    Hey guys
    i have a requirement in which i need to trigger a piece of  ABAP code whenever a new file reaches a specific directory of Application server.
    i m using File adapter on receiver side and i want to raise a trigger so that the ABAP code is executed automatically whenever some new file reaches the directory
    we are running Win server
    thanx
    ahmad
    Message was edited by:
            Ahmad

    HI,
    It is possible to write a ABAP program to raise alert.and schedule it , In ABAP program we can check the file is existed or not in a specified folder if existes then we can raise Alert.Actually Alerts are maintained by SAP Alert Management only.
    So , but not clear , you said you are using the File receiver adapter .
    -- onoption is -this can bepossible with OS command .
    -- also we can raise alert from Payload itself , why becz i understand whenever you are going to write a file with file adapter then you need to raise an alert right?
    so if message is existed i mean data existed then from raise alert and store the file onoption
    -- Also you can try calling an ABAP program as the auto-reaction method of the MTE in CCMS
    Regards
    Chilla
    See the below links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/434fa590-0201-0010-1e9a-c27e6283a0fe
    SMS through SAP ABAP program
    XI Alert from BPM with Follow-Up Activity
    ABAP programming BAPI To XML
    How to send qRFC Alert to Internet Email from AP0 3.1 running 4.6D BASIS
    /people/gregor.wolf3/blog/2005/03/05/create-users-in-an-abap-system-with-bapi-ostermiler-java-utilities

  • How to compare date and time together

    Hi,
    How to compare Date and Time together?
    For example in a database table there are two fields rundate and runtime.  I want to compare these two with perticular date and time in the program.  Like, I want to pull all the records where the records's date and time are less than a perticular date and time in the program.
    Hope the question is clear...
    Thanks.
    Kavita

    Hi Kavita
    There is no as such Date and Time Comparision FM in Standard SAP  But You can define your own like this
    <b>FUNCTION ZAV4_COMPAREDATETIME.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(DATE1) TYPE  DATS
    *"     REFERENCE(TIME1) TYPE  TIMS
    *"     REFERENCE(DATE2) TYPE  DATS
    *"     REFERENCE(TIME2) TYPE  TIMS
    *"  EXPORTING
    *"     VALUE(TWOISMORETOPICAL) TYPE  C
      twoismoretopical = ''.
      if date2 > date1.
        twoismoretopical = 'X'.
      else.
         if date2 = date1 and time2 > time1.
           twoismoretopical = 'X'.
         endif.
      endif.
    ENDFUNCTION.</b>
    Regards
    Mithlesh

  • How to Raise Alerts from the fields of Mapping?

    HI,
    We had a very typical requirement for our client.
    Scenarios is IDOC to multiple files else consider a simple file to file scenario.
    Source structure contains some 5 fields and the target also remains the same 5 fields.
    Assume SERNO presents in both structures.
    The issue here is i need to check for a Target SERNO field  should accept only numerical value, there is a possibilty of coming alphanumeric and sometimes with specialcharacter appended  numeric. i have developed a udf which allows only numeric.
    The mapping is getting failed if alphanumeric or special character exists in that field.
    But, the client requires an alert mentioning that this mapping is failed due to the problem in Source SERNO field so that he can easily debug and resubmit those idocs.
    I want to know is it possible to raise alerts at field levels.
    Thanks,
    --Kishore

    Hi Raja,
    This is a new development and we dont hve any Alert framework right now exist, i believe even the alert category its not possibel to drill down to the field level.
    if its possible could you please elaborate.
    We have many fileds to check as similarly defined above example SERNO, so if the alerts are triggered @ filed level that are failed that will be a great..
    My Ultimate requirement is to notify client that due to this field the mapping was occured and alert should throw some light on to locate the error at the field level.
    Please suggest how to procced..
    Thanks,
    --Kishore

  • Raise Alert and also Execute the message

    Hello,
    I have a requirement to raise an alert if a particular message is processed in SAP PI and also this particular message is to be send to the intended receiver.
    The main intention is to inform the Support Team that a particular message is processed from SAP PI without hampering the flow.
    How should this be done?
    I know how to configure alerts in ALRTCATDEF; so no links on this!
    ~Thanks.

    Hi Abhishek,
    First both Alert logic and IDoc creation should be in the same mapping,so that if your condition is not satisfied then an alert is raised (instead of creating the IDoc) and the Idoc is suppressed
    Second. if you check the blog, you have some parameters like
    1.IP_CAT - Alert Category created in ALRTCATDEF ( ALRTFRMWRKTEST)
    2.IT_CONTAINER -
    This is used to fill up the Container Variables.
    ELEMENT u2013 The name of the container variable. (DOCNUMBER)
    ELEMLENGTH u2013 Length of the Element (250)
    TYPE u2013 Type of the Container variable ( C for character)
    VALUEu2013 Value to be passed. (12345)
    these need to be set, before you call the RFC, then only an alert will be triggered.
    >>If I look at the UDF (in the blog) I do not find anything is passed or retrieved from it. Is my understanding correct?
    Check the parameter String rfcxml in the code, there the values are set.
    >>Also as the RFC is present in SAP PI itself, I should mention the details of SAP PI in the RFC receiver channel?
    Yes
    Regards
    Suraj

  • How can I stop and restart a .vi with a single front panel button?

    Hey guys, a newbie here.
    I have a .vi with a stacked sequence. The first few frames are hardware initialization and settings (LIN master node) and the data the hardware should transmit (frame response table). In the next frame there's a loop in which the hardware sends and recieves data (LIN monitor). If I want to change the initialization, settings or data values, I have to stop the .vi and restart it. I was wondering if there is a simple way of doing this with a single click (a button on the front panel).
    An alternative would be to put another loop outiside the whole stacked sequence and then run it a single time with a push of a button (the inner loop should let the outer one restart), is that possible?
    I hope I made any sense. Thanks for any suggestions.
    Tomaz
    Solved!
    Go to Solution.

    Ideally, redoing the code with a state machine would be the best way to go, if only so that you can add this powerful tool to your toolbox. That being said, wrapping your existing code in a while loop, with its own stop button to stop the program, will work if executing the entire sequence is ok. Where you might run into problems with this is if there is a step in the sequence that shouldn't be executed again, then it would require wrapping that sequence frame's code in a case statement that executes only the first time through. If you have the time, learning how to use a state machine would be a real benefit, really taking your LabVIEW knowledge to the next step, if you pardon the pun.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Laptop computer frozen and trying to reboot but will not. How can I quit and restart?

    How do I restart a computer that is frozen and tries to reboot and will not do anything else? Is there a way to shut it down to restart. I thought I remember there were some keys to shut down and restart.
    We have disconnected the power and any external devics and no CD.

    Press down on the Power button and hold it down for 5-10 seconds until the computer shuts down.

  • How to start, stop and restart task

    Hello Everyone,
    Need advice on what is the correct way to start, stop and restart a Java task?
    I have tried with Executors.newCachedThreadPool() or fixedThreadPool() however I was only able to submit the task once. My program crashed when i tried to resubmit the task again after a shutdownnow command()

    Tasks are designed to be run once. If you want restart functionality, use a service:
    http://docs.oracle.com/javafx/2/api/javafx/concurrent/Service.html
    The sample service I posted in the following thread demonstrates how to do this:
    Multithreading
    Use of Executors is not necessary as a Service encapsulates the execution thread management (though you can set your own executor on the service if you really needed it). All you need to do is make use of the service start, cancel, restart and reset methods as required. If you do use the cancel method, then you need to make sure that your service is properly interrupt aware for the cancel to function as you expect.

  • How can I stop and restart the ApplePhotoStreams.Exe process on my Windows 7 computer?

    I sometimes notice my CPU utilization skyrockets and my computer fan switches to high. This happens sporadically. The process causing this is ApplePhotoStreams.Exe. It appears the process goes into some infinite loop trying to update or sync pictures. Applications on my PC slow down and the fan stays on high (which is really loud) until I cancel the ApplePhotoStreams.exe process. I can easily cancel the process using Task Manager, but then any photos I take with my iPhone do not replicate over onto my PC unless I reboot my computer.
    I'm not sure if anyone can easily tell me why ApplePhotoStreams.exe is doing this in the first place, but I would more like to know how to restart the ApplePhotoStreams.exe process after I cancel it without having to reboot my PC.

    you can download a new installer and serial number from Adobe at Adobe - CS2 Downloads

  • How to select text and pictures together in word processing mode?

    Hello,
    I have written about 20 chapters of a book in word processing mode. Each chapter has many pictures, carefully positioned within the text.
    Each chapter is a separate pages file.
    Now i want to put them together into one single document and have a big problem.
    When i press cmd+A to select everything in one document in order to copy and paste it into another document, i can either select the text OR the pictures, not both together.
    In Layout mode it is possible, but not in word processing mode.
    Does anybody know how to select both in word processing mode or how to transform a word processing document into a layout mode document?
    Or is there a way to put together a word processing document from a number of single documents?
    Thanks in advance
    funthomas

    I still use word processing for just about everything. The first two versions of Pages only had word processing. I think all of the complaints/requests about the "always-present" text layer led the developers to add page layout. I think they would have been better off adding another application (like AppleWorks' draw module compared to AppleWorks' word processing module.

  • How to show images and text together in textfield or textbox.

    I want to show text and image both in text field or text box or any other container. I actually want to make an messaging application like msn message chat. Where user can add emotion along with their text messages.
    Do any one have any idea how to do this?

    I am using differnt classes i have a main calss which is a Midlet and than an other class which is a form. Now The midlet has its own form which display initial contents of the application. and than the Other Form class is called to display. But when i try to go back to midlet form The following error occur.
    java.lang.SecurityException: Application not authorized to access the restricted API
         at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+40)
         at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+7)
         at com.sun.midp.midletsuite.MIDletSuiteImpl.checkIfPermissionAllowed(+8)
         at com.sun.midp.midlet.MIDletState.<init>(+83)
         at javax.microedition.midlet.MIDletProxy.<init>(+5)
         at javax.microedition.midlet.MIDlet.<init>(+13)
         at com.kraysis.NokiaSMSSolution.WMAExample.<init>(+4)
         at com.kraysis.NokiaSMSSolution.ImageTextField.<init>(+13)
         at com.kraysis.NokiaSMSSolution.WMAExample$2.run(+23)
    I think When i create an object of Midlet class than it give me this error.

  • How can i clean and restart my mac

    hi,   ive tried the you tube vids but n joy,  can anyone recomend a easy way to wipe my mac and to restart it as if it were new from the store.

    Try http://support.apple.com/kb/ht4718

  • TS1702 The download of updates was interrpted and now it is blocked. How can I kill and restart theprocess?

    The download of four app updates was suddenly interrupted. No way to get it started again. What should I do?

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is app and data safe!

  • How to use MessageFormat and ActionError together?

    i'm trying to use the Message Format class to format a message in the sense that i want to concatenate two strings first and then pass that one string to the ActionError.
    My first string defined in a properties file is:
    error.invalid="{0} is invalid."My second string defined in the code itself is
    String fieldname="User Name";What I am trying is to form one string "User Name is invalid" and pass that to the ActionError in the following way:
    if (!isThisAValidField((String) map.get("username")))
    String fieldname = "User Name";
    errors.add("user", new ActionError(MessageFormat.format("error.invalid", fieldname)));
    }This is the first time I am trying to do this and it does not work! The output just shows: {0} is invalid.
    Any ideas/help where I am going wrong will be very help. Thanks!

    I think I am using the MessageFormat class from the standard API. In a seperate program, I have everything working fine. This is the program:
    package mytestproject;
    import java.text.*;
    public class Main
    public static void main(String[] args)
    String field = "User-ID";
    String error = "{0} is invalid";      
    System.out.println(MessageFormat.format(error, field));       
    }When I run this program, I get the desired output: User-ID is invalid.
    the first parameter would be the string extracted from the properties file, not the property name anyway.In the program above I used the first parameter as a sample of what would be in the properties file and the second parameter was the field name. And it worked fine.

Maybe you are looking for