How to properly close task flow opened in new window?

Have a question on the best practice to properly close a task flow when it has been opened in a new window.
We are opening multiple bounded task flows concurrently in new windows but want to make sure the task flows are properly cleaned up. Scenario is that of an email in-box where the user can open multiple messages concurrently. Want to have the "Close" button that closes the window and properly exits the bounded task flow.
thanks,
Rodger...

Hi Frank
I'm hoping the after listener will fire (haven't tested it yet)
What I would like to do is to create a method in the application module that does (I'm typing this from memory so there might be some typos):
procedure void cleanTransaction() {
    if this.getDBTransaction().isDirty() {
      this.getDBTransaction().rollback()
}then expose the method in the application module client implementation.
Then in a pageFlowScope bean method find the application module and call the cleanTransaction() method.
The bean method could then be hooked up to the after listenr.
Would this work, and how do I find the application module ?
Also I not sure if it is the application module hanlding the transaction or the data frame.
Regards
Paul

Similar Messages

  • Can I execute my task without openning a new window?

    Hi, all.
    Is it possible to execute a task withiut openning a new window?
    If it`s possible, how can I do that? Thanks
    Best Regards.
    Louis Huang.

    Hi Louis,
    Well, you could change the configuration for the UWL item (System Administration -> System Configuration -> Universal Worklist & Workflow -> Universal Worklist - Administration).
    Somewhere on the admin page you'll find 'Click to Manage Item Types and View Definitions' which allows you to enter a new configuration (as changing the standard is not allowed).
    Simply have a look at the existing configurations in order to get familiar with it. In the action group there is a parameter launchInNewWindow. I put it on "no" for test purposes and taa daa it works.
    Nevertheless there are some drawbacks configuring this:
    - The popup (after completing the task) provides a 'Close' mechanism. If you decide to click it it will close the complete browser window and the UWL will be gone. Thus you would need to answer with 'Cancel' here and manually navigate back to the UWL.
    - Same is true for the 'Close' button which is part of the task execution UI. This isn't that useful anymore.
    So my general recommendation would be keeping the pop-ups as it would also allow you having multiple tasks open at the same time and does not come with the beforementioned drawbacks. Nevertheless you could try it out on your own
    Best regards,
    Martin
    edit
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC "-//SAP//UWL1.0//EN" "uwl_configuration.dtd">
    <UWLConfiguration version="1.0">
    <ItemTypes>
    <ItemType connector="BPEMUWLConnector" defaultAction="launchWebDynPro" defaultView="DefaultView" executionMode="default" name="uwl.task.bpem">
    <Actions>
    <Action groupAction="" handler="SAPWebDynproLauncher" launchInNewWindow="no" name="launchWebDynPro" referenceBundle="launch_sap" returnToDetailViewAllowed="yes">
    <Properties>
    <Property name="WebDynproApplication" value="ATaskExecution"/>
    <Property name="WebDynproDeployableObject" value="sap.com/tc~bpem~wdui~taskinstance"/>
    <Property name="DynamicParameter" value="taskId=${item.taskId}&amp;isSubstituted=${item.isSubstituted}&amp;locale=${item.locale}&amp;timezone=${item.timeZone}"/>
    <Property name="System" value="${item.systemId}"/>
    </Properties>
    </Action>
    </Actions>
    </ItemType>
    </ItemTypes>
    </UWLConfiguration>

  • How do I get firefox to open a new window when i click on a link in a webpage ?

    When I click on a link in a webpage in Firefox, generally it opens the new page in the window i am in (though some times it does not). How do I get it to open a new window (or tab) each time I click a link.
    For example, on www.bbc.co.uk if I click on a link, the new page opens in the same window, if I then click another link in the new window, again, it opens in the same window. To get back to the original window, I have to use the back button twice. Surely there is a setting so that all 3 windows can be open on separate tabs or separate windows.
    I have been to the tabs window in options, but doesn't seem to make a difference.

    Open link/bookmark in new tab in same window:
    *Middle-click (press the mouse scroll wheel) the link
    *Ctrl+left click the link
    *right-click the link, choose "Open Link in New Tab"
    Open link/bookmark in new window:
    * Shift+Enter on the link
    * Shift+left click on the link
    See: http://www.7is7.com/software/firefox/shortcuts.html

  • How do I change firefox to open a new window when I start it several times instead of opening a new tab when I want to go to a different location?

    I want to go to several different websites at the same time. I want to compare the information on each site. I do not want to open a tab, I want a whole new window. How do I change firefox so it will open a new window instead of opening a new tab and then requesting the site I want to go to?

    In Windows XP I am able to right click a link and get an option to open it as a new Firefox window
    *'''tear off tabs'''
    You will probably note tabs can be dragged along the tab toolbar, they also tear off. You can click a tab and drag it off the browser onto the Windows Desktop where it will open as a new window, or drag it on to another open browser window.
    An alternative is to click the tab and drag it down, again it will then open in a new Window.

  • How do you make a button open a new window?

    I am trying to create an action that opens a new window but cannot figure out how to do it. Does anybody have any help with where to start?

    Select a View-based Application give the name as Button & add a new file give the name SecondViewController,
    Write the following code in Button.m
    Import your SecondViewController , By writing statement
    #import "SecondViewController.h"
    - (void)viewDidLoad {
        [super viewDidLoad];
              UIButton *btnObj = [UIButton buttonWithType:UIButtonTypeRoundedRect];
              btnObj.frame = CGRectMake(40, 40, 70, 50);
              [btnObj setTitle:@"CLICK" forState:UIControlStateNormal];
              [btnObj addTarget:self action:@selector(nextView) forControlEvents:UIControlEventTouchUpInside];
              [self.view addSubview:btnObj];
              //[btnObj release];
    -(void)nextView{
              SecondViewController *secObj = [[SecondViewController alloc]initWithNibName:@"SecondViewController" bundle:nil];
              [self presentModalViewController:secObj animated:YES];

  • How do I stop Firefox from opening a new window when I go to a search item?

    When I do a search, and click on a topic, Firefox opens a new window on the tool bar at the bottom of my screen. How can I stop this from happening?

    I'm guessing you use Google for search. There is a setting in Google search to open each result in a new window. (When you use tabbed browsing, that means each result opens in a new tab.) You can check on whether you have that setting turned on as follows:
    On a Google results page, click the button on the right side with the "gear" icon, then click Search Settings from the drop-down list. At the bottom of the page is the setting to open results in a new window.
    Is that the culprit?

  • How do I disable finder from opening a new window upon mount?

    When an external drive is mounted (such as an iPod in disk mode) Finder opens a new window showing the root of the new drive.
    I realise why this happens, but is there any way of disabling this feature?.
    Cheers,
    Ebsy

    It seems that there is a special flag that can be set or cleared on the volume to control that behavior. There is an Apple developer article about it, with source code, that might help.
    http://developer.apple.com/qa/qa2005/qa1449.html
    I have to believe that someone has packaged up that code into a utility that can be found.

  • How to Stop the Iview from Opening a New Window automatically

    Hi
    I have imported a BW roles that has 3 folders for different reports into the portal.
    I would like the reports to display in a new window and have set the paramater "Launch in New Window" = "Display in New Window".
    I have also set the parameter "Initial State Open or Closed" = "Close".
    When I click on one of the tabs (represented by the role folder) the first report automatically opens in a new window.
    I would only like this report to open when the user clicks on the report in the folder.  Can anyone advise on any other setting that needs to be made?
    Many thanks....

    Yes, the the Default Entry for Folder property is set to NO.
    The first report in the folder still automatically launches a new window for the report.
    There does not appear to be a setting "Clicking Folder Name Launches First Node" for the folder. 
    As a workaround I have created a page and added the following 2 settings.
    1. Invisible in Navigation Areas = Yes.
    2. Default entry for folder = Yes.
    I would prefer to avoid this workaround so if anyone can provide any help it would be appreciated.
    Thanks
    Ian

  • How do i make a button open a new window...

    Hi,
    I'm making some very basic login software and i want the program to open up a new window when the "Login" button is pressed and then display a message saying whether the login was successful or not.
    Any help would be appreciated but i would love some code to help me see how to do it and help me on my way.
    Cheers.

    what do you exactly need, the "how to create and display a frame"? I bet your program already has a frame, so I suspect you know how to do that. Well, just do it again.
    Note: if its just a plain message you wish to display to the user, the easiest way will be by using javax.swing.JOptionPane, look for the showXxxx methods.
    If the question was more "how do I know when my button get pressed", take a look at that other question: http://forum.java.sun.com/thread.jsp?forum=57&thread=156406

  • How to make shortcut so always opens a new window

    how can I make a firefox shortcut so when clicked it will always open the page in a new window

    Hello,
    You can do the following
    #Click on Firefox -> Preferences -> Tabs
    #Uncheck the 'Open new windows in a new tab instead'
    #Create a URL shortcut on your desktop
    #Double click the URL
    #This would open the URL in a new window each time
    More information here [http://kb.mozillazine.org/Browser.link.open_newwindow Browser.link.open_newwindow]
    Hope this helps

  • How do I stop finder from opening a new window every time I download an image (drag and drop)?

    Before I updated my computer I could drag and drop a new image from the internet to wherever I wanted on the desktop. Now when I download a new image from the internet it opens the "Desktop" finder windo. Also it systematically downloads the new image to be placed underneath the last downloaded/organized file. How do I stop it from doing both of these things?

    Try relaunching the Finder > Relaunch Finder… from the Mac OS X Finder

  • I often launch Firefox from the command line or LaunchBar. How do I prevent Firefox from opening a new window with my homepage along with a separate window with the location I intended to open?

    Macbook Pro i7 17"

    It's a bug on Mac.
    [https://bugzilla.mozilla.org/show_bug.cgi?id=531552 Bug 531552] - Firefox 3.6b opens two windows when opening external links
    (please do not comment in bug reports)

  • How can I force Firefox to open a new window (tab) a certain size. I need a smaller box but it always opens full screen.

    I get tired of having to click on the upper right box every time I need the smaller window, which is VERY frequently. I teach college online and need to see only a portion of the large screen as the rest may distract me while grading. This COULD prove unfair to my students.

    Don't know if this is the answer you want, but it gives you an idea of what you can do.
    * Using the window.open method<br>http://www.javascript-coder.com/window-popup/javascript-window-open.phtml
    You can resize an existing window with a bookmarklet, but you would have to be able to initiate the bookmarklet from the window.
    * javascript:self.resizeTo(642,364);self.moveTo(0,0);
    * http://dmcritchie.mvps.org/firefox/kws.htm look for "resize -" in the k.html file listed.

  • How can I force firefox to open every new window at full size of the screen ?

    When I firefox, it reloads my opened windows, but not always at full size.
    So I have to resize each window manualy.
    Is it possible to force firefox to open every window at full size of the screen ?
    Or is it possible to Maximize every window already open in one click ? (like the use of CTRL key in Windows)

    Try experimenting with this add-on: https://addons.mozilla.org/en-US/firefox/addon/default-fullzoom-level/
    By the way, if you have McAfee Site Advisor installed, disable it because it interferes with the way Firefox functions.

  • Universal worklist task open in new window

    Hello
    We have an ESS implementation in portal.
    In worklist when user clicks on any line item, a task gets triggered. Now this task gets opened in new window which is a standard functionality.
    Below is XML which retrieves view for this clicked task,
    <ItemType name="uwl.task.webflow.TS90000018.SAP_R3" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="SAP_R3" externalType="TS90000018" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="WebDynproApplication" value="AllMyTrips"/>
                <Property name="WebDynproDeployableObject" value="sap.com/ess~tra"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="DynamicParameter" value="wi_id=${item.externalId}"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>
    But in new window we are not able to see any portal navigation available.
    Is there any way that I can get this navigation panel in new window as well.

    You can call also pages using the IViewLauncher.
            <Action name="launchWebDynPro" groupAction="" handler="IViewLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="iview" value="ROLES://portal_content/Fresenius/kabi_nl/Iviews/ESS/Zeitmanagement/com.fresenius.Abwesenheitsmitteilung"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="DynamicParameter" value="wi_id=${item.externalId}"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
    But why would you want to have the navigation too in a new window ?
    That would confuse me as a user to have 2 navigations in 2 windows.
    The problem with UWL in general (using a popup) is that after you are finished in the popup,
    the task is still there. I get lots of complaints; waiting for EhP3 or 7.3. There should be a instant refresh UWL feature.....
    Regards,
    Kai

Maybe you are looking for

  • Mail sending error need help, thanks a lot.

    Dear experts, I have such kind of trouble several days when I send email via Apple's mail program. Meantime my email recieving is fine. The email configuration just one, so I wonder why recieving is OK but sending of email could Not work. My OSX vers

  • BDC recording for s_alr_87012090

    Hi Friends, My requirement : As we do vendor changes in xk02, the critical data like bank details, name and address are to be confirmed. so my client want, the changes done in address should not got to confirmation, so I want to do BDC recording for

  • Has anyone else been getting emails about reseting password

    Has anyone else been getting emails about reseting password when they have not requested it? I have been getting several emails for the past couple of days where it says how to reset when I never asked to do so. Is there anything that should be done

  • Displaying lots of text

    As you know a text item is limited to displaying 32767 characters. Does anyone know of a way to display a lot more than that (i.e.) a long. Is there a Java Bean or OJC that can be used? Thanks,

  • Uninstalled Lightroom 5 from Creative Cloud - not able to reinstall

    Hi I uninstalled LR 5 from my PC and I want to reinstall via Creative Cloud, but in CC it's still present as installed? How do I go from here?