What is the best way to capture exceptions raised by BPEL process?

We have a BPEL process that calls an EBusiness Suite public pl/sql API. (For ex. setting and releasing holds on a Sales Order). And the API provides out parameters that will contain sql errors raised if any. What should I do to capture this error and show it on BAM? Or is there a better way of exposing this message to a particular user?

Why couldn't you take the output and test if there are results and then use a switch statement to detemine what to do with these results.

Similar Messages

  • What's the best way to capture speech as text in live or recorded Adobe Connection sessions?

    Hi
    What's the best way to capture speech as text in live or recorded Adobe Connection sessions?
    We would like to have a transcript of the presentation. Is Adobe Connect compatible with Dragon speech recognition software - or is there a preferred Adobe product or method?
    We use PCs running Windows 7 Enterprise.
    thanks

    The class java.util.Date is not itself deprecated, however several of its methods are.
    For converting string -> date, you should use the class java.text.SimpleDateFormat. That allows you to specify format strings such as MM-dd-yyyy hh:mm:ss for converting date -> string -> date.
    If you are wanting to set day/month/year on the date object directly, instead of the Date methods setDay, setMonth, setYear, you should instead use the java.util.Calender class:
    calendar.set(Calendar.MONTH, 4);
    The calendar can then be converted to a Date object by calling calendar.getTime().
    If you are going to use the date as part of a sql query, I would recommend using a Prepared statement, and the java.sql.Date/java.sql.Timestamp class as well.
    To convert from java.util.Date to java.sql.Date)
    jva.util.Date utilDate = Calendar.getInstance().getTime();
    java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());cheers,
    evnafets

  • What is the best way to capture off of an AVCHD Camera in final cut?

    Im kinda new to final cut pro so, please don't flame me. I was hoping to capture some extra footage on to my system through my AVCHD camcorder. And i want to know the best way to do so? Thanks for the answers.

    I was not successful using mpegstreamclip for this. However, I found VoltaicHD from ShedWorx and it works great. Simply load all the clips you want to convert, assign a location and walk away. The result is beautiful HD .movs ready to be imported into FCP. I paid about $35 for it and it was well worth it.

  • What is the best way to capture the Form data Temporarly

    Hi,
    I have a form with lot of validations.
    Suppose user entered some of the fields and he decided to fill rest of the field later on.
    So he now want to save the record temporarly without applying any validation and next time when user logs in, the form should be populated with those invalid data and then he continues to fill up the rest of the fields, now once he SUBMIT the page..all the business validations should apply and record is commited.
    What is the best approach to acheive this??
    Have any one has the done this kind of requirement.
    Thanks,
    Deepak

    This is a little more complex as well because you'll need to save this data in a "temporary" table. Not temporary like global temporary, but just a staging table that has no constraints. In a real application, your table would not have NOT NULL constraints, but your user may not use them.
    Along with the previous post, you may need to follow this logic:
    1) If the save as draft button is clicked, you save to the table with no constraints.
    2) When someone tries to navigate to the form, you first check the "draft" table and if there is a record there, pull it. Otherwise pull from your production table.
    3) When the person clicks the commit/submit/etc button, save the data back to your "draft" table, copy the information over to the production table, and delete the temporary record.
    It's a lot of coordination honestly - my client asked for the same thing and when I explained the complexity involved for a form that only had 5 or 6 fields, they agreed. And when I say complex, I tell them it will cost them more money, yet provide little benefit. That usually solves it quickly.

  • What is the best way to capture CUCM configurations?

    Rather than clicking though the drop down menus in CUCM, what is the most efficient way to capture a complete configuration settings in CUCM?  I know some of the settings can be done using BAT, but what about other settings like Enterprise Parameters, DHCP server/subnet, etc.?  If the captured configurations are in human readable format will be even better.

    [+5] to Rob and Brandon for sharing more info.
    Hi Brandon,
    I downlaoded the latest software  cipinventory-v0.11 from the site and unzipped it .I could find four files and not any exe .I have attached the snapshot.
    when I click on .pl file it asks which program to be used for opening.
    Am I following the correct procedure or missing something?
    regds,
    aman

  • HTML form Date field - what's the best way to capture it on the backend?

    Hi,
    What would be a good way to capture a text field that contains a date string?
    In my app I have a page with several text fields, that are populated by a calendar pop-up. On the server side I can capture them into a java.util.Date object, but Date is dperecated.
    Should I still use Date or is there a better way?
    I intend to use the date as part of an SQL query.
    Thanks.

    The class java.util.Date is not itself deprecated, however several of its methods are.
    For converting string -> date, you should use the class java.text.SimpleDateFormat. That allows you to specify format strings such as MM-dd-yyyy hh:mm:ss for converting date -> string -> date.
    If you are wanting to set day/month/year on the date object directly, instead of the Date methods setDay, setMonth, setYear, you should instead use the java.util.Calender class:
    calendar.set(Calendar.MONTH, 4);
    The calendar can then be converted to a Date object by calling calendar.getTime().
    If you are going to use the date as part of a sql query, I would recommend using a Prepared statement, and the java.sql.Date/java.sql.Timestamp class as well.
    To convert from java.util.Date to java.sql.Date)
    jva.util.Date utilDate = Calendar.getInstance().getTime();
    java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());cheers,
    evnafets

  • What is the best way to handle Exception in Java?

    We are designing an application that will be developed using JSP + EJB .
    To deal with the exception part, we have thought about following solutions
    (1)All methods in EJB will be declare with throws clause, with the respect to the potential exceptions that can be thrown by method.
    We will catch only those exceptions, for which we can take alternative steps or further action when they occurred. All other exceptions will be thrown to the caller.
    (2)All JSP pages will have try/catch that catches exceptions thrown by EJB or by JSP code.
    (3)A common JSP file will be designated to handle Exception by setting isErrorPage property true and all JSP files are pointing to that particular file for exception handling.
    (4)Whenever any exception occurred in application, it will bubbled up and end user will get a common JSP page designed to handle exception.
    I am looking for the suggestions to improve this mechanism.
    Regards,
    Chetan

    The problem with the standard expection handling in a web environment is that all the potentially useful status information goes to the user, who probably won't make head nor tail of it. It also goes to the logs which someone might, or might not get arround to reading.
    What I do is to have a standard method called to deal with unanticipated exceptions and e-mail me a status report. This contains not just the extended stack trace (chasing any level of wrapped exception) but also details of the transaction being processed, including the user if known.
    Set up an e-mail alias with a list of people to receive these reports. Often you can have the problem fixed, and send the user an apologetic e-mail before they even get a complaint in.
    Create JSP tags to do this with any other per-page housekeeping.

  • What is the best way to capture RGB8 image to memory for later write to disk?

    HI-
    I have been using the code below for some time now but wonder if an expert can take a look and let me kown if there are ways to improve it.  Problem I run into is that I preallocate the memory beforehand (camera.buffering[]), and with a 5 MP camera, this takes up a lot of RAM.  It seems like when I am running this program in debug mode all day and constantly start/stop it without allowing it to free the memory gracefully, i eventually bog the system and start getting Out of Memory error -12, in other places in my code such as DisplayBitmap or GetBitmapfrom File.  Is this all related to how much memory I am trying to allocate prior to begining the camera capture routine below?  Am I not allocating and free-ing it properly?
    Code is below for how I grab the image and then send to memory usign memcpy.  Is there a better, more efficient or faster method?  I have removed error checking/etc from code below simply to save space. This operates at 15 fps.   
    I also included my allocation and free-ing code, too. 
    Thanks in advance.
    Blue
    //caemra capture loop//
    camera.dxerror = IMAQdxGrab (camera.session, camera.image, 1, &camera.bufNum);          
    stat = imaqRotate2 (rotateimage, camera.image, camera.rotate_image, pixval, IMAQ_BILINEAR, TRUE);    
    stat = imaqScale (scaledimage, rotateimage, 4, 4, IMAQ_SCALE_SMALLER,IMAQ_NO_RECT);          
    stat = imaqGetImageInfo(camera.image,&camera.info);
    stat = imaqDisplayImage (scaledimage, 0, FALSE);         
    memcpy (camera.buffering[camera.count], camera.info.imageStart, camera.info.pixelsPerLine*camera.CAMY*camera.bytesperpixel);   
    //memory allocation code//
     camera.buffering = (int **)malloc(camera.maxcount*sizeof(int*));
     for(i=0;i<camera.maxcount;i++)
          camera.buffering[i] = (int *)malloc(camera.info.pixelsPerLine*camera.CAMY*camera.bytesperpixel); 
    // free allocated memory code//
     for(x=0;x<camera.maxcount;x++)
             free(camera.buffering[x]);
    free(camera.buffering);

    How many images are you storing in RAM?  Typically when I need to work with tens, hundreds, or even thousands of images, I save them to the hard drive after I capture them as a PNG with 1000 quality.  Sometimes I process them before saving, sometimes I process them offline from the saved images depending on the application.  If you don't need all of the images simultaneously in memory at once, just save them to PNG.  If you only process one image at a time, only allocate enough memory for the processing you need to perform on a single image.
    www.movimed.com - Custom Imaging Solutions

  • What is the best way to define constants in SOA ?

    Hi,
    What is the best way to define constants in SOA/BPEL ?

    I want to define at composite level. I have several BPELs in my composite. I have lot of Status and some other codes I need to check/compare/assign in assign activity and xslt transformations
    Ii can use BPEL preferences , but they only applies to that particular BPEL. I want to define all my codes in one place at composite level.
    Thanks
    --Sreeny
    Edited by: sreeny on May 29, 2012 8:59 AM

  • Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic. can anyone tell me what is the best way to clone the environment, can I just tar the weblogic file syste

    Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic..
    Can anyone tell me what is the best way to cloning the application from different environment, the test and production are in different physical server.
    Can I just tar the weblogic file system and untar it to the new server and make the necessary changes?
    Can anyone share their experiences and how to with me?
    Thank in advance.
    Katherine

    Hi Katherine,
    yes and no . You need as well weblogic + soa files as the database schemas (soa_infra, mds...).
    Please refer to the AMIS Blog: https://technology.amis.nl/2011/08/11/clone-your-oracle-fmw-soa-suite-11g/
    HTH
    Borys

  • What is the best way of Exception Handling

    There are many ways to handle the exceptions of a program.
    1: You could put every exception handler in the most upper abstract classes.
    2: You could write a generic exception that handles a lot of things.
    3: You could write exceptions handling for every class.
    4: you could group the exception handling.
    many, many more ways.
    Question:
    What is the best way to do this?

    There are many ways to handle the exceptions of a program.
    1: You could put every exception handler in the most upper abstract classes.I woldn't do that always, a class may throw an exception if it's not able to handle it prperly, but it may, so it'll catch it. Throw Exception in abract supper clases only when you are sure the children must always throw the exception, not processing it.
    2: You could write a generic exception that handles a lot of things.Bad idea, if you always throw an Exception no informtaion is provaided about whta happened, if you throw a NullPointerException and a NumberFormatException in one of your method I (for example) colud handle properly both problems, one likely to be a programming erros, so check my cod eagain, and the other like to be an user error in introduciong some data, so I wold ask him for the data again.
    3: You could write exceptions handling for every class.Write exceptions handling for every class that needs it, throwing the exception if at that moment you don't know what to do with it and catching it if yes. Do not employ too many exception handling: execution of try catch blcks is slower than usuall code.
    4: you could group the exception handling.I don't undestand this. What do youmean?
    Question:
    What is the best way to do this? In general thrwo an exception if the class dosen't know what to do with it, the class which uses yours will handle it. If your class can process the Exception, don't be too lazy and process it.
    Employ exceptions always you need them but do not abuse; thay made the code execute slower because the VM machine must check if the exceotions occur.
    abraham.

  • What is the best way to double buffer in this case and how to do it....

    currently I have
    public class Frame1 extends JFrame{
    //inside this class I call up circle class, rectangle class, etc.... to draw
    }I am making a "paint" program, and I have individual classes to handle the paint methods heres an example:
    abstract public class Shape {
        public Shape() {
        public abstract void draw(Graphics g, Color c, int x, int y, int width,int height);
    }and then....
    public class Circle extends Shape{
        public Circle() {
        public void draw(Graphics g, Color c, int oldx, int oldy, int newx, int newy) {
            g.setColor(c);
            g.drawOval(Math.min(oldx, newx), Math.min(oldy, newy), Math.abs(oldx - newx), Math.abs(oldy - newy));
    }There is also a Rectangle class, line class.... etc! So my question to you is the following... what is the best way to implement double buffer in the individual classes? And how to do it?? And also.... the drawings should be kept inside a jPanel.
    Any bit of help is much appreciated Thank you!!

    You don't need to do double-buffering. Swing
    components are double-buffered by default. Just make
    sure you override paintComponent() and not paint().
    And even if you had to, why would there be any
    difference in implementation for your classes whether
    they paint to on- or off-screen graphics?I need to override paintComponent()? what if I don't...
    I am using JBuilder2005 and they automate somethings for me. So thats how they did it when they created the application they did this....
    public class Frame1 extends JFrame{
    /*** all my code here***/
    public class Application1 {
        boolean packFrame = false;
         * Construct and show the application.
        public Application1() {
            Frame1 frame = new Frame1();
            // Validate frames that have preset sizes
            // Pack frames that have useful preferred size info, e.g. from their layout
            if (packFrame) {
                frame.pack();
            } else {
                frame.validate();
            // Center the window
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            Dimension frameSize = frame.getSize();
            if (frameSize.height > screenSize.height) {
                frameSize.height = screenSize.height;
            if (frameSize.width > screenSize.width) {
                frameSize.width = screenSize.width;
            frame.setLocation((screenSize.width - frameSize.width) / 2,
                              (screenSize.height - frameSize.height) / 2);
            frame.setVisible(true);
            try {
                jbInit();
            } catch (Exception ex) {
                ex.printStackTrace();
         * Application entry point.
         * @param args String[]
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    try {
                        UIManager.setLookAndFeel(UIManager.
                                                 getSystemLookAndFeelClassName());
                    } catch (Exception exception) {
                        exception.printStackTrace();
                    new Application1();
        private void jbInit() throws Exception {
    }

  • What is the best way of setting up Family Sharing?

    I just bought my son an iPad Mini and I am trying to decide on what is the best way of setting it up for him. The one thing I do know is that I do NOT want all the content that is my iPhone 6 to pop up on his iPad Mini. I want his iPad to be used for his games and educational stuff and his own music. I don't mind setting up a family photo album and share photos with the family. So is the Family Sharing option the best way of doing this based on what I just mentioned? Do I set him up with his own Apple ID? If so will everything still be based off my account so he won't have to create his own iTunes Library?
    I always use iTunes gift cards to purchase music and content. Will I be able to continue to use them even if I want to put some new content on his iPad and not my iPhone? Do I enter in his Apple ID info. Can you restrict certain family members to just certain things for example you only want to share photos with one person whereas you might want to share your music with another family member?
    Any suggestions on the best way of setting this up would great!
    Thanks!

    Hi DVX100Shooter,
    Congratulations on getting your son a new iPad, I am sure he will enjoy it. 
    Family Sharing is one way of managing both purchases and content between members of a related group of people. Each member must have their own Apple ID. You can choose what music you wish to share with the family from your own account. See this article -
    OS X Yosemite: Share purchases with your family
    In particular the section titled Hide a purchase from other family members
    The music library on your son's iPad is separate from yours, but under Family Sharing you agree to pay for all purchases made through the iTunes store. If you wish to control what is purchased you can set up the Ask to Buy option for any family member under adult age in your location. See this article for details -
    Request and make purchases with Ask to Buy - Apple Support
    Gift cards may not be used for billing of purchases under family sharing, with the exception that a family member may use gift cards to purchase their own content. See this article for information about Family Sharing billing policies -
    Family purchases and payments - Apple Support
    The shared family photo album is available to all family members.
    Family Sharing - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • What is the best way to set up my new Mac Pro?

    Not wanting to screw up in a process I've not done with a brand new machine before, I'm looking for feedback on my plan for setting my new Mac Pro next week...
    The physical plan is this:
    For RAM, I have four 2GB SDRAM's plus the supplied six 1GB modules. My plan here is to install the 2GB rams into the first four slots and install four of the 1GB modules into the remaining four slots for a total of 12GB's.
    When the cost for 4GB modules gets down to reasonable, I'll buy four of them and bump the current rams down the line which will then give me a total of 24 gigs where I'll stay.
    For my hard drives, I'm installing a 160GB Intel X25-M into the first drive bay
    http://www.intel.com/design/flash/nand/mainstream/index.htm
    using one of MaxUpgrades' 'MaxConnects' kits. I will use this drive for the operating system software and my applications and their libraries.
    Next, into the remaining three drive bays, I am installing three 300GB WD Velociraptors. Mine are the pre-'backplane ready' versions:
    http://www.wdc.com/en/products/products.asp?DriveID=459
    so I have bought these sleds for them...
    http://www.maxupgrades.com/istore/index.cfm?fuseaction=product.display&product_i d=180
    I own one of Sonnet's Tempo SATA E4P cards
    http://www.sonnettech.com/product/temposatae4p.html
    which, thanks to this forum, I now understand, with the correct firmware installed, function well so I will install it and be able to establish hardware RAID. I will create a RAID 0 set with the three Velociraptors and use it to store all of my data files.
    Backup will happen on a 1TB WD 'Caviar Black' external drive connected through one of the Sonnet card's external eSATA ports and using the OS 'Time Machine' software.
    And that's the physical plan. My question is about setting things up. The physical installation part is straight forward and I don't expect any difficulties but I'm wondering what is the best way to install the operating system.
    Do I take a first step keeping the supplied hard drive installed, install the solid state drive into the next drive bay and then transfer the contents from the supplied drive onto the SSD or do I do the complete physical installation process and do a 'C' drive start up and install the OS that way?
    And, do you have any tips/suggestions on setting up the RAID 0 set?
    thanks for the help. I want to do this right.
    JQ

    oh mighty Hatter, I knew you'd have helpful guidance to offer! And thank you. You've confirmed my anxieties about the Sonnet card; kind of a 'too much, too quickly' sort of thing. And it's not that Sonnet's not a good company. Just everything to do with new technologies and the growth curve we all, manufacturers and users, go through when they come out. And, for sure, the new Mac Pro's are new technology; the single biggest forward leap in Apple's top-of-the-line machines for some time far as I can tell. Just reading at Intel's website about the Nehalem's is a joy!
    So, I will proceed now with everything except for the controller card, leaving that 'til later. In the meantime, I think I'll just happily run with the four hard drives all running independently. No software RAID. I know just those, the SSD boot drive plus Velociraptor trio's going inside of a 2.66ghz 8-core Nehalem Mac Pro is going to be a working pleasure. Heck, this way, I'll get settled in and used to the machine's speed, have a great time doing so and then, in however many months, I can jump into spending another chunk of money on an excellent RAID card, RAID card's dear Barefeats will have tested and reviewed for us, set up my RAID 0 set and head of to those new races watching my computer leap for joy! Could be that, by then, the cost of Intel 160GB X25-M's will have dropped enough that I can afford to go for a second and have a two SSD RAID 0 boot drive... Yummy!
    Thanks for the help. Like I say, I knew there was useful guidance hanging on some limb within your personal kit, (otherwise referred to as your mind)!
    Interesting to read about the problems people have had with Sonnet's 2.17 update in PPC's... In this computer, my PowerMac G5 dual 2.7ghz, I have a Sonnet 'Tempo Sata X4P' controller card. I downloaded and installed 2.17 and got the same troubles; no cut, no paste, no 'drag and drop' etc. It was miserable.
    Mine, fortunately, magically corrected after running the 'permissions verify and correct' process in Disc Utility and, after a restart, all was back to almost normal but for one exception; the Sonnet card was no longer present or functioning including the four eSATA ports out the back. (I ran Tech Tools Pro 5's repair suites first but, and who knows why, it didn't correct the problem...) This one was absolutely in the 'who knows what the f_'s going on and why it disappeared but did' class.
    Oh, the other remnant is that, when the computer goes into sleep, after about five minutes, the fans rev up, and up, and the computer's frozen; only access is to do a forced shutdown pressing and holding the power button, so I've had to adopt a 'shut down whenever leaving it for more than fifteen minutes' approach to this dear friend. Once I've fully moved into and established my new one (which should arrive today, by the way... Yippeee!!! Can't wait!), I'll do a complete restoration on this one including taking out the Sonnet card. Usually, I sell my old Pro's but, this time, I'm going to keep this one as a back up and just general second computer for times I might need it. It has been such a great and dependable machine. Keeping it seems the right thing to do.
    thanks Hatter. I'll let you know how things go, including what happens with the SSD. I don't have speed test software so I won't be able to track it's performance like that guy in the post you gave me did...
    JQ
    ps- Gotta love that ILLogic fellow eh? Talk about not getting the essence!

  • What is the best way of monitoring HD content in FCP?

    I hope to get the Mac Pro listed below, What is the best way of monitoring my HD edit from FCP?
    Can I output to a HDTV, or is a computer monitor better?
    Do I need a capture card to output the signal, or is my below system adequate? i don't need one for capturing as i have will be using a Panasonic AG-HVX200 with P2 card, Can i use this camera to output to a TV/Monitor?
    Message was edited by: calihal

    Well, given your situation, the best option is the Matrox MXO and Apple Cinema Display. I have a full review here as to why it is a good solution.
    http://library.creativecow.net/articles/ross_shane/MXO.php
    This will cost you $995 for the MXO, and $900 for the Apple display. So under $2k. The other options are more expensive. Broadcast quality HD LCDs start at $3500. And other capture cards range from $295 (decklink Intensity) to $3500 (AJA and Decklink). And HDTV will still require a capture card, like the Intensity with HDMI out, but won't be suitable for broadcast quality. It will, however, be perfectly fine for seeing what your HD footage looks like on an HD set that most people will have in their homes. So I take back my initial statement and say that if you have a tower, the Intensity and HDTV is your best option...if you aren't needing full broadcast quality. If you just need to see what it looks like.
    Shane

Maybe you are looking for