How to generate alert from Mapping

Hello,
I know how to generate alrets by configuring ALRTCATDEF, Alert Configuration.
I want to know how we can generate alert from mapping for ex..
If a=b then send the message
and if a!=b then failed the message and throw and alert.
In java or XSLT mapping
Thnaks and Regards
Hemant

Hi Hemanth,
Bhavesh Blog explied to raise alert using UDF,if you want using JAVA or XSLT converth the same code in to JAVA Map,I think it will work.
I had done similar requirement using Mial adapter using Java Mapping.
Regards,
Raj

Similar Messages

  • How to generate alerts from the oaf page

    hii.......
    I need to generate simple alert from oaf page...........
    can u suggest me sample code for this????????

    Hi Nazeer,
    Nazeer again and again you are replying the same answer and again and again I'm asking you the same question.
    What do you mean by alert?? is it some mail that you want to send from OAF page??
    sample code to send mail from OAF:
    import java.io.*;
    import java.net.*;
    * This program sends e-mail using a mailto: URL
    public class SendMail {
    public static void main(String[] args) {
    try {
    // If the user specified a mailhost, tell the system about it.
    if (args.length >= 1) System.getProperties().put("mail.host", args[0]);
    // A Reader stream to read from the console
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    // Ask the user for the from, to, and subject lines
    System.out.print("From: ");
    String from = in.readLine();
    System.out.print("To: ");
    String to = in.readLine();
    System.out.print("Subject: ");
    String subject = in.readLine();
    // Establish a network connection for sending mail
    URL u = new URL("mailto:" + to); // Create a mailto: URL
    URLConnection c = u.openConnection(); // Create a URLConnection for it
    c.setDoInput(false); // Specify no input from this URL
    c.setDoOutput(true); // Specify we'll do output
    System.out.println("Connecting..."); // Tell the user what's happening
    System.out.flush(); // Tell them right now
    c.connect(); // Connect to mail host
    PrintWriter out = // Get output stream to mail host
    new PrintWriter(new OutputStreamWriter(c.getOutputStream()));
    // Write out mail headers. Don't let users fake the From address
    out.println("From: \"" + from + "\" <"user.name") + "@" +
    InetAddress.getLocalHost().getHostName() + ">");
    out.println("To: " + to);
    out.println("Subject: " + subject);
    out.println(); // blank line to end the list of headers
    // Now ask the user to enter the body of the message
    System.out.println("Enter the message. " +
    "End with a '.' on a line by itself.");
    // Read message line by line and send it out.
    String line;
    for(;;) {
    line = in.readLine();
    if ((line == null) || line.equals(".")) break;
    out.println(line);
    // Close the stream to terminate the message
    out.close();
    // Tell the user it was successfully sent.
    System.out.println("Message sent.");
    System.out.flush();
    catch (Exception e) { // Handle any exceptions, print error message.
    System.err.println(e);
    System.err.println("Usage: java SendMail [<mailhost>]");
    Regards,
    Reetesh Sharma
    Edited by: Reetesh Sharma on Jun 30, 2010 3:27 AM

  • How to trigger Alert from Mapping without BPM ?

    Hi @ ,
    I have to throw an alert in case of my mandatory source field is missing .
    The requirement is to chk whether a particular field is present in the source structure if itisn't present then throw alert in alert inbox.I can throw exception but the reuirement is alert so ai m struck
    urgent help is required
    Regards,

    Hi Bhavesh,
    We had this similar discussion where the issue was to throw exception and it was resolved .
    Now craeting alert is coming to be a different issue
    Thanks again I ddnt chk the current blog of yrs
    Regards

  • Generating alert from the payload

    Hi,
    We have a requirement to generate alert from payload. If the value of the particular field is 'X" than generate an alert.
    We are not using BPM. Please advice how can this be achieved without BPM
    Regards
    Edited by: XI_Fan on Aug 19, 2008 4:12 PM
    Edited by: XI_Fan on Aug 19, 2008 4:14 PM

    >>We are looking at creating alert from Alert framework using payload by checking the field.
    Generating alerts is a 2 step process.
    In first step you need to do all the configurations in ALRTCATDEF and RWB->alert configurations.
    Next step if to have some trigger mechanism via which error will be generated in the processing of message and hence alerts will be triggered.
    Normally we use UDF to validate payload and if an error occurs we can trigger the alert,but in your case since you can't use UDF,you can use a simple If-Else condition and map the result to some mandatory(occurence 1-1) field on the receiver side.
    If the If-Else condition is not satisfied,then the mandatory receiver element/node will not be generated and hence a mapping error will trigger an alert.
    Thanx
    Aamir

  • How to forward alert from one user to another user and how to reject?

    Hi everybody.
    How to forward alert from one user to another user and how to reject and how to complete alert?
    Regards,
    Vinay.

    What alert are you talking about? Which version of BOE / Edge do you use?

  • Generating alert from applet

    hi,
    could we generate alert from applets,
    infact i want that if a errors come user notify by alert.
    any help regarding it will be welcom.

    Use JSObject to make a call to JavaScript.

  • Ho to generate Alerts from Payload

    Hi Experts,
    How can i generate Alerts by getting the data from the payload if message failed in XI.
    Suppose iam sending the Purchase Order deteils  through XI, If the message failed in XI.
    I want to get the Alert like "Message failed for the PO Number=0123456" .
    How can i develope the scenario for this.
    Can any body give me the complete scenario to do this.
    Thanks & Regards
    Sankar

    Hi Sankar,
    Are you using the fault message for getting the error message.
    If yes then you can have an RFC call in to your XI system (RFC:SALERT_CREATE) in the falut message mapping .
    Pass the appropriate input details which you want to get in alert.
    If not Try to find out a way to trigger the RFC:SALERT_CREATE from the application server using the ABAP code and RFC communication.
    Hope this will help you ...

  • How to generate report from two tables using DAO design pattern?

    Hi,
    Iam using struts with DAO pattern for my application. According to DAO design im creating model class for each table in my database with getter,setter methods. i have no problem when im generating report from one table. but if have i have to join two tables whatis the better way for doing that? is it good practise to create a new model contains properties from both the tables?
    Please help me
    Thanks in Advance
    Rajesh

    Dear Rajesh,
    As per the pattern you are creating equivalent java objects for every database table under consideration in which each db field will become a private attribute and public getter and setter methods.
    If you have to display data from one table the above approach is sufficient enough.
    But in case your database is normalised ..lets take an example of Bank having Branch and Accounts tables. We dont need to repeat the whole information of the branch for every account in that branch. so we prefer to have a branch id in that table....this approach lot of insertion/deletion/updatation anomlies that may exists with the database...
    now lets come back to our topic....we shall create two java objects 1) Branch 2) Account.....
    When ever u just need to display simple report u can do it staright forward,,,,,now if u want to display branch information along with the account information....the two objects just created are not sufficient
    So i suggest u the following approaches
    1) Create an attribute of type Branch in the Accounts Object......
    This shall serve the purpose of displaying the Btranch information
    2) Create a collection object of type ( Vector or ArrayList) which can have objects of Account in the Branch Object,,,
    Now its upto u how shall u fill up the objects with appropriate sql queries.
    The method that i mentioned is followed by Oracle Toplink and Hibernate ....which provide Object to relation mapping layers.
    Any queries ...revert back to me...
    Mahesh

  • How to generate XML from EBusiness suite ARXSGPO

    Could someone tell me how I can generate XML from the EBusiness Suite Accounts Receivable report ARXSGPO.rdf I understand this report is called by a C program. I have tried changing the concurrent request to output format to XML the result does not resemble XML. Does anyone have any suggestions how I can generate XML from the ARXSGPO report?
    Thanks,
    Mark

    Hi Mark
    the next release of XMLP will have last page only support. The problem is that at the template layer you do not know how many lines are going to fit on the page, so you never know what is going to be the last page. The only way around it for now is to specify the number of lines to a page and then check when all the lines have been rendered and then render the remit portion.
    I have a sample invoice that does the same, drop me a mail, you can work out the email from my name and the fact I work for XMLP Im sure.
    Tim

  • Generate alerts from event inserted in OM/DW databases

    Hi,
    Is there a existing datasource that is able to read events inserted in OM/DW databases using Microsoft.SystemCenter.CollectEvent and Microsoft.SystemCenter.DataWarehouse.PublishEventData  ?
    Something that would work like Microsoft.SystemCenter.SdkEventProvider but not for events inserted using SDK...
    If such a datasource doesn't exist, I could write a scripted datasource that would query the EventView view in OM database, but I'd rather avoid that.
    The reason why I'm trying to achieve this is that I'm collecting syslog events ( more or less following this article : http://blogs.technet.com/b/omx/archive/2013/01/07/how-to-store-syslog-in-the-scom-data-warehouse.aspx ) and I now need to create alerts
    when a specific event is missing for a
    given target (the targets are already discovered as instances of a custom class with their IP address as a property).
    All targets are sending their syslog events to the same SCOM agent, which explains why I'm unable to simply use a "basic" rule based on syslog datasource -> missing correlator -> alert action (such a rule would need to be targeted at this
    specific agent, thus not allowing me to filter on the IP address property).
    I hope my question was clearly enough explained, if not I'll try to clarify anything you need!
    Thanks,

    Hi 
    you can use System.Mom.BackwardCompatibility.FilteredEvent.DataProvider module to read event in SCOM DB and generate alert, this module is available in System.Mom.BackwardCompatibility.Library.MP .
    Regards 
    sridhar v

  • How to trigger alerts from UDF for file to file scenario

    Hi,
       My scenario is something like this.......
    I have lookup in which there exists more than one output value corresponding to this one input value.In such cases i need to raise an exception and trigger an alert from UDF so as to inform the functional team.
    Now this entire procedure has to be implemeted for file to file scenario.
    I am not using any RFC nor do i need a BPM.
    Entire scenario should be excuted without BPM and RFC.
    Can anyone kindly suggest me as to how to proceed for this so as to trigger alerts
    from UDF.
    Thanks in advance
    Madhu

    HI,
    Please see the below links
    Triggering XI Alerts from a User Defined Function - /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Alerts with variables from the messages payload (XI) - UPDATED - /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step - Alert Configuration
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide - Trouble shoot alert config
    Regards
    Chilla

  • Need some help how to generate xml from java bean.

    Hi,
    Can some one help me how to generate the xml format output from a java bean.
    The bean contains around 15 to 20 attribute values.
    Thanks in Advance.
    sarayu

    You can use XMLEncoder with custom persistence delegates if needed:
    http://java.sun.com/products/jfc/tsc/articles/persistence4/

  • How to generate PDF from an IView

    Hi all,
    I have been reading a lot about generating PDF document, smart form, adobe LiveCycle Forms, BAPI's..etc. but I can not find anything more simple:
    I just would like to show (and maybe save and print) in PDF format (maybe in a popup) an IView content.
    I have read how to generate a pdf file from a binary attribute of the Context, but nothing about how to fill this binary attribute with the data of the current showed IView.
    Is this possible?
    Thanks in advance,

    Hello, Lohitha.
    Thanks for your post. You are right, the general way to create a PDF is like that, using Adobe Interactive Forms.
    Using this, I must design a form and fill it with data binding. But, in fact, what I'm requested to do is just convert the current IView into a pdf file without using any forms, but keeping the IView design.
    Let me explain myself, It could be something similar to convert a .doc file into .pdf.
    I tried this code;
         IPrivatePDFComponentView.IContextElement contextElement = wdContext.currentContextElement();
         byte[] bytes = contextElement.getPdfSource(); //here I get bytes = null since PdfSource is empty if I do not use Interactive Forms!!
         try {
              File file = new File("C:\temp\example.pdf");
              FileOutputStream os = new FileOutputStream(file);
              os.write(bytes);
              os.close();
         } catch (IOException e) {
              // do something
              e.printStackTrace();
    Do you know how could I do that?
    Thanks

  • How to generate xhtml from xml

    Hi All
    I've an application that will generate an xml file in this way:
    FileWriter salidaxml = new FileWriter(new File("reporteHP.xml"));
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = dbf.newDocumentBuilder();
    Document doc = docBuilder.newDocument();
    // Some nodes and elements added here
    TransformerFactory transFact = TransformerFactory.newInstance();
    Transformer trans = transFact.newTransformer();
    trans.setOutputProperty(OutputKeys.INDENT, "yes");
    trans.setOutputProperty(OutputKeys.METHOD, "xml");
    trans.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1");
    trans.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
    Result result = new StreamResult(salidaxml);     
    try {               
        trans.transform(new DOMSource(doc), result);               
        transformer.transform(source, rslt);           
    } catch (TransformerException te) {               
        System.out.println(te.getMessageAndLocation());               
    throw te;           
    salidaxml.flush();           
    salidaxml.close();Code run ok but I want to know how could I add code to generate a xhtml file using a dtd and a xsl I've or at least how to add the following at the begin of the xml generated file:
    <?xml-stylesheet type="text/xsl" href="reporte.xsl"?>Thanks in advance
    <xl>

    Hi
    Thanks for your help but I really didn;t found what I'm lookin for in this page.
    This page explains how xslt transform xml in xhtml. I know this point, I want to know HOW could I make it from my application. I guess there are a transform class that could generate html from a xsl template, but I couldn't find the way to do it and couldn't find examples too.
    <xl>

  • How to generate DAO from Entities in OEPE

    Hi All,
    I'm using oracle enterprise pack for Eclipse(OEPE). I developed JPA project for that i created Entities from Tables now i want to develop a DAO(Data Access Objects) from Entities
    but i'm not getting any plug-in fro that to generate DAOs or any Option in OEPE.why i need DAOs is from that DAOs i need to expose an web services.
    please any one show how to generate a DAOs in OEPE or where i need to instal ant plug-in for that generation.
    please give any resolution.
    Thanks & Regards
    Shankar

    Hi Carlin,
    Thanks a lot .
    I downloaded that latest version. I'm able to generate DAO's(stateless session beans) fine ,but while exposing them as a web service I'm getting this error IWAB0014E Unexpected exception occurred. in pop, that pop details following errors I'm getting
    IWAB0014E Unexpected exception occurred.
    java.lang.NullPointerException
    at org.eclipse.jst.ws.internal.consumption.ui.common.FacetOperationDelegate.addFacetsToProject(FacetOperationDelegate.java:75)
    at org.eclipse.jst.ws.internal.consumption.common.FacetUtils.addFacetsToProject(FacetUtils.java:777)
    at org.eclipse.jst.ws.internal.consumption.command.common.CreateFacetedProjectCommand.execute(CreateFacetedProjectCommand.java:190)
    at org.eclipse.jst.ws.internal.creation.ui.extension.PreServiceDevelopCommand.execute(PreServiceDevelopCommand.java:197)
    at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
    at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
    at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
    at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1029)
    at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
    at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
    at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.performFinish(WizardPageManager.java:262)
    at org.eclipse.wst.command.internal.env.ui.widgets.DynamicWizard.performFinish(DynamicWizard.java:382)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard.run(DynamicPopupWizard.java:130)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    I'm using OEPE 11gR1 (11.1.1.8) and server oracle web logic server 11gR1(10.3.4) version.
    while exposing WS configurations as fallowing like
    Server Run time :oracle web logic server 11gR1(10.3.4)
    Web Service runtime:Apache Axis
    services project:samplejpsws
    services EAR project:samplewsEAR
    for this while exposing WS i'm getting above Errors
    can you please tel how to Expose WS and that are the run times requires
    Thanks
    Shankar

Maybe you are looking for

  • Example of how to create a master-multiple detail PDF report using BI Pub

    Hi, Are there any examples out there on how to do this? Basically for each master record from table A, need multiple related detail records from table B AND multiple related detail records from table C. Ie. A is master to B and A is master to C. For

  • Organize Finder Items by Date Picture Taken

    Will the Finder allow organizing image files by the date picture taken information in their EXIF data? I only seem to find Date Created or Date Modified.

  • Automatic impagination of image

    I've a problem when I would to place a image using indesign cs4. The javascript must to do: 1. import a structure xml 2. place the story in a text-frame The story is formed from a lot of pdf file mixed with text, this create a overflow in the text-fr

  • Bulk Import into contact list error.

    Hi, We are testing out the bulk import into contact list feature and we are getting an error that we can't resolve.  We followed the directions from the documentation http://topliners.eloqua.com/docs/DOC-6918 Here's the sample request we are making:

  • Again the SUM and DISTINCT Problem (With SQL Statement)

    Here is the actual SQL, select NVL(l.pr_cust_prod,'zzzzz') A, NVL(l.pr_prod_code,'zzzzz') B, NVL(l.pr_lot_no,'zzzzz') C, NVL(l.db_waf_qty,'99999') lotQty, NVL(t.db_cust_po,'zzzzz') poNum, NVL(p.oe_po_line,'99999') poLineNum, i.db_shpmt_no invNum, fro