Stop the task activity flow programmatically

Hi all,
I'm using ADF Faces 11gR1
I've made a method that i call every time an exception is raised in managed beans. This is a way to show all the runtime exceptions in a dialog without redirect to a default error page. I'm using FacesMessages to show the dialog errors.
But I've a problem/question. If I press a button with ActionListener and Action, and an exception is raised in the method executed by the ActionListener, how can i do to stop the execution of the Action??? It is because the popup informing that an error has been produced, is raised me in the next page, called by the Action.
Here is the code:
1. Press a button that executes this method raising a NullPointerException:
*public void doNullPoiner3(ActionEvent actionEvent) {*
try{
System.out.println("put a message with id");
String s = null;
System.out.println(s.substring(0));
}catch(Throwable th){
CustomExceptionHandler.reportTechnicalException(th,"it1");
2. The code for reportTechnicalException()
*public static void reportTechnicalException(Throwable th, String idField) {*
//retry the customized messages(summary and detail)
//Show the error
addFacesErrorMessage(summary,detail,idField,FacesMessage.SEVERITY_ERROR);
*private static void addFacesErrorMessage(String summary, String msg, String stId, javax.faces.application.FacesMessage.Severity severity) {*
FacesContext ctx = getFacesContext();
FacesMessage fm = new FacesMessage(severity, summary, msg);
String stViewComponentId = (stId!=null && findComponent(stId))?stId:null;
ctx.addMessage(stViewComponentId, fm);
Please, can you help me?? i only want to stop the execution of the task flow if it exists.
Thank you in advance,
XAVI.

Hi,
Have the action listener throw an AbortProcessingException. It's a reserved JSF exception that stop the event propagation without killing the request.
~ Simon

Similar Messages

  • How do I stop the task panes from opening automatically when I open a PDF?

    How do I stop the task panes from opening automatically when I open a PDF?
    When I open some of my PDFs the task panes open too. I do not want them to as I have never used them in reader for any purpose. I use reader to READ PDFs. I don't need the task panes and don't want them opening when reader starts.

    Adobe seem to have decided that they are so important that you must see them. Perhaps because it is their chance to sell you stuff. It seems to vary between releases, are you on the latest? Curiously, many people have no idea how to open and close these panels.

  • How to send trigger pulse for every 0.25 sec until user stops the task?

    Hi All,
    Iam using NI_DAQ PCI 6221 Card for the Data Acquisition.
    Can any body please tell me how to send trigger pulse for every 0.25 sec until the user stop the task??
    Please suggest me the methods I should use to meet this requirement.
    Thanks In Advance,
    Sindhu

    Hi Sindhu,
    Am I correct in thinking that you do not want to use your 6221 to output a digital pulse, but that you are getting a digital pulse from somewhere else that you want to use as a trigger for the analog input?  And you will have more than one trigger?  If this is the case, then it can be accomplished by doing a retriggerable operation.  The way that this works is you use the counter on your board to generate the sample clock for your analog input because analog input cannot do retriggerable operations with its own sample clock.  You can modify the example GenDigPulseTrainContinuous_DigStart that is in the same location as the example I referenced before to be retriggerable by using the property DAQmxSetStartTrigRetriggerable.
    After doing that and testing to make sure that it works, you can setup an analog input task like the example ContAcqVoltageSamples_IntClk but specify the source of the sample clock to be the internal output of the counter you used in the counter portion of your program.  If you need help with the terminal names (You will need to use Ctr0InternalOutput for example), you can reference the NI-DAQmx C Reference Help at Start >> Programs >> National Instruments >> NI-DAQ.  After doing this, you will acquire the same number of samples as the number of pulses you choose to generate in the counter portion of your code every time a trigger is received.
    Also, I have come across an example that does retriggerable analog input using the counter as a sample clock in C++.  Either by using this example or modifying the shipping examples as I stated above you should be able to achieve what you are trying to do.
    Let us know if you have any questions.
    Thanks,
    Laura

  • Stop the Sales Orders flow between R/3 and CRM systems.

    Hello Experts,
    I am facing one middleware related issue.
    I am creating a quotation and Order in Crm system an those are replicated to R/3.
    But I am creating some orders in r/3 and those are alos replicating to CRM, I want to stop the flow of Orders between R/3 and CRM.
    Please let me know where I have to do the changes.
    Thanks

    Hi,
    What Debolina suggests would stop flow of Orders from CRM to R3.
    But what i learn from your post is :
    you wanna stop Orders flowing from R3 to CRM.
    If m coorect in above, then teh solution for you is different:
    You have to filter out the orders.
    Goto: R3AC1
    Select object : SALESDOCUMENT
    Goto Filters tab and set the filter as desired.
    This would stop the flow of Orders from R3 to CRM
    Kindly reward with points in case helpful
    Sharif.

  • How  can I stop  the constant in flow of email messages from the Apple Community service site

    How can I stop  the constant flow of emails from the Apple Community Support site

    The user tip below may help.
    https://discussions.apple.com/docs/DOC-3661

  • How to stop the Task Pane from opening automatically

    Hi there,
    I use adobe acrobat XI pro to work on lectures and frequently go from the highlit tool to the "adding text" tool in the content modification tool group. Each time i click on the "add text" tool, the tool bar on the right side of the screen or Task Pane pops up, making my document too small to read, and I have to close the task pane each time before being able to write.
    Is there any way to get around that?

    Hey Aadesh, thank you for your answer
    I hope the links for the pictures work, i wasn't quite sure which link to copy.
    as you can see, i work on a small computer, and unfortunately, it makes quite a big difference...
    [url=http://postimg.org/image/zb2gmfu73/][img=http://s3.postimg.org/zb2gmfu73/Screen_Shot_15_04 _06_130512.jpg][/url]
    [url=http://postimg.org/image/b9vkkzfdr/][img=http://s3.postimg.org/b9vkkzfdr/Screen_Shot_15_04 _06_130530.jpg][/url]
    Especially when i try to work on 2 corresponding documents at once...
    [url=http://postimg.org/image/4wy0s8dcf/][img=http://s11.postimg.org/4wy0s8dcf/Screen_Shot_15_0 4_06_131537.jpg][/url]
    [url=http://postimg.org/image/9ubldcfbj/][img=http://s11.postimg.org/9ubldcfbj/Screen_Shot_15_0 4_06_131558.jpg][/url]
    Clicking on tools it what I do each time, but I would have loved to find a way to be able to write something without having that bar show up... Would you have any idea if this would be possible? For example when you click on the highlight tool, the "comment" task pane does not automatically open, this only happens with the "Tool" task pane.
    Maybe there is a parameter I could apply?

  • Streaming freezing while playing, unless I touch the screen every few seconds to keep the streaming actively flowing.

    Streaming from iPad, through an app and the streaming will stop unless I touch the screen which seems to wake it up and will begin from where it stopped. Can anyone tell me why it does this? Kind of makes watching something a little annoying. It's as if the iPad goes to sleep, which stops the streaming. Is there a way to keep the streaming going without having to touch the screen every few seconds to have a the streaming continue as a steady feed?
    Thanks,
    David H.

    If you are streaming through an app it may need it to be awake so it can receive the feed on the iPad and then airplay it, depending on how  the app functions. You can set the auto lock to never

  • When I acquire data using USB6008 and NI_DAQmx Base in VC++, Shall I start and stop the task in ONTimer function?

    void Ctest2Dlg:nTimer(UINT nIDEvent)
       DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
       DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,100,&pointsRead,NULL));
      DAQmxBaseStopTask (taskHandle);
    If I do this, the program will halt in about half minute. But if I do not start and stop task in OnTmer function, the program will not halt and the data acquired is not corrected.
    Please help me! Thanks

    This is a duplicate post.  Please post any new replies to the linked forum.
    Samantha
    National Instruments
    Applications Engineer

  • Stop the sales order flow from r/3 to CRM

    Hello Experts,
    I have an issue regarding middleware:
    In our process 1. we create a work order in r/3 from that we create a followup sales order in r/3 itself.
    But the problem is once the sales order is created in r/3 that is flowing to CRM .
    Our requirement is we have to restrict the flow  between R/3 and CRM.
    please send your valuable suggestions.
    Thanks

    Hi,
      Try to de regester the queeuee in smqr transaction related to sales. May be  it will work.
    Regards
    Srinu

  • Stopping output tasks properly before exiting a For-loop

    Hi,
    I've been having some trouble exiting a For-loop conditionally. The problem is that when the loop is stopped conditionally (a button is pressed) the DAQ (NI USB 6353) outputs get stuck to whatever value they were in. I tried stopping the DAQ Assistant output task (1 sample on demand)  before exiting the loop but that didn't solve the problem. Should this perhaps be done one iteration before exiting the loop or can it be done in the same iteration round?
    What would be the "right" way to exit a for loop with output tasks so that the output signals would be 0V after exiting? I know that I could "force" feed the DAQ Assistant with 0V control before exiting but in this case that would be quite difficult...
    Any ideas? Help is appriciated.

    Yes, I get it... However at this point I don't think that's an option.
    Would this kind of solution work? ( I am not able to test all possible solutions in the real system which is why I would like to get a confirmation first)
    The idea is to connect the output of the "Or" port to the "Stop" -ports of the DAQ Assistants in the loop.
    Edit. Will the output automatically go to 0V if I just stop the task? I am not really sure about this.
    Thank you.
    Attachments:
    exit-loop.jpg ‏8 KB

  • Task List flow configuration

    Is there a way in Planning 11.1.2 to configure the Task List flow in such a way that it is not possible for a user to go to the next task if the Web form in the current task has any validation errors?
    Regards,
    Pablo

    hi
      you can find this in configuration path
    spro->Quality Management> Quality Inspection> Result Recording--> Enter Identifier for Units To Be Inspected.
    Here you can define the data that will be appear in that field.
    Regards,

  • Is it possible to put 'Task' activity onto a calendar?

    We are using the 'task' activity and would like to have a calendar that shows those tasks according to the 'due date' of the tasks and make the calendar visible to everyone in the organization. Is this possible, if yes, can you provide some detail on how to get that done?

    At this time it is not possible to show tasks by due date on the calendar. However, you could create a task list of all open tasks that are due today.

  • Specified operation cannot be performed while the task is running. Task Name: ClockTriggerBit

    I am trying to set the timing for digital line on 6221. As recommended in the documentation "NI DAQ MX C reference guide" I stop the task, run the following:
    DAQmxCfgOutputBuffer
    DAQmxCfgSampClkTiming (taskHandle, "ao/SampleClock", 100, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, 10);
    DAQmxWriteDigitalLines
    DAQmxStartTask -> this is when I get the warning 4294766817. Why?
    Any better way to set the sample clock? I need to do it using internal clock in 6221.
    Thank You,
    Mark.

    Hello Metrikos,
    I've got a couple things.  First, could you be more specific as to where in the DAQmx C Reference Help you are referring to.  Secondly, attached is an example of corellated digital input with analog input.  I know this isn't exactly what you are trying to do, but it might give you a good reference. 
    -Alan A.
    Attachments:
    ContAI-ReadDigChan.c ‏6 KB

  • ADF : Can we skip the default activity of ADF train in bounded task flow.?

    Hi All,
    I'm a newbie for ADF and JDev. Started learning from the documentation provided for ADF, I'm trying to create a bounded task flow which has a train component and every train stop should be enabled/skipped programmatically. I'm able to skip the train stops after reading the content provided at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/82-programmatically-navigate-trains-396873.pdf.
    But I'm not able to skip the default train stop which is the first activity call in my case upon initialization.
    Below are the steps I've followed :
    1. Created a viewController project and created a bounded task flow in it with Train component enabled.
    2. Added 4 views with train component marking the first view as default activity call.
    3. As per the document I mentioned above, I added managed bean files to skip the train stop programmatically.
    Now when i run the task flow, I'm able to skip the train stops number 2/3/4 but I'm not able to skip the stop number 1(first stop which is the default activity) on initialization.
    As per ADF documentation, for a bounded task flow there must be a default activity assigned which will always be called first when we enter the bounded task flow. So that means, default activity will always be called upon initialization of that bounded task flow and never be skipped programmatically.? or else if there is a way to skip the default activity, then please let me know the documentation/steps to do this.
    Thanks in advace.
    Edited by: 1004973 on May 9, 2013 2:52 AM

    Thanks Timo. Your idea resolved my issue. :)
    I've created a new page in my bounded task flow which I've made as a default activity for that bounded task flow. Then I applied navigation through router and based on some condition I'm now able to move my control to my desired train stop. By this design I can do other customization on train button(Back/Next).

  • How to define the default activity for an unbounded task flow?

    In the new "Fusion Developer’s Guide for Oracle Application Development Framework 11g Release 1" documentation at the bottom of page 14-3 it states "An unbounded task flow .... contains a default activity, an activity designated as the first to run in the unbounded task flow, because an unbounded task flow does not have a single point of entry."
    What I can't find is how to define the default activity in an unbounded task flow and where this is recorded? Can we set this via the task flow diagrammer, and which configuration file is it stored?
    I note the first time I run the application with an unbounded task flow a dialog asks me which of the activities in the adfc-config.xml file to make the default, but I can't find where this is recorded.
    Anybody have any ideas?
    Thanks,
    CM.

    Chris,
    In fact this information is nothing that belongs into the taskflow meta data because unbounded taskflow have more than one entry point and there is no notion of default. Its a tools setting (JDeveloper) we had before
    Frank
    Message was edited by:
    Frank Nimphius

Maybe you are looking for

  • Stock report with date range

    Hi Experts. Material stock report (unrestricted, blocked, quality) with in date range. getting information in T-CODE:  MB52 but not in date range. In mard table i did't find the date for unrestricted, blocked and quality. from where can i get that in

  • Return of Make to order material

    Hi Friends, I configured the make to order scenario and delivered the same material by VL01N and movement type 601 E. Now can anybody guide me as if this material is returned. What sort of settings do I require to maintain. As I made a return order a

  • Error with FileUpload UI Element

    Hi,     I am trying to develop an application that using which one can upload a file.When I click on the upload button I get the following error:     com.sap.tc.webdynpro.services.sal.util.cache.WDResourceNotFoundException: Object could not be found

  • Block sold to ship field

    Hi!    I would like to Know, if is it possible to block sold to ship field in VA01. We have many sales order with the sold-to party different to the sold-to ship and in this sales document the sold to ship sould be the same that sold to party.    The

  • Games and 3D-Mark do not recognise/accpet Hydra GPU's

    I'm running a 870a motherboard with a MSI 6870. I decided I would try the Lucid function so I bought a 4670 just to assess performance gain before splashing out on something more expensive.  I tried 3D Mark which did not recognise the configuration a