Terminating event of a task is not working

Hi,
I implemented WS20000075 for purchase order release.
The dialog workitem of approval has terminating event 'released'
all thru the developement in dev and Q system., this was working
but in production , it happened that other user release PO from me29n
the approval workitem is still in process
i cant check events because trace is off
cud please suggest wat cud be the reason that inspite of release of PO, the workitem did not complete ?
thanks
r

Two questions first:
#1) In Dev and Q, did you test (or experience) the scenario you are facing in Prod, that being someone else is Releasing the PO?
#2) In Prod, when the Approver performs the release step, does the WF advance?
I'm going to presume that the answer to #1 is NO, and the answer to #2 is YES.  If that is the case, here's what I believe to be the dilemma you face.
A "Terminating Event" is not the same as a "Wait for Event".  The purpose of a Terminating Event is to essentially call back to an activity that is "In Progress" that the work is done and that its time for the activity to end and to move on.
Your PO Release for example; The user clicks the Release icon and then clicks Save.  At that point, processing is handed off to the Update Process (Asynchronous) and the screen is exited.  Even though you've left the screen, there's no telling if or when the Update Process for the save has even started or when it has been completed.  But it's only when the Update Process has completed that the true Logical Unit of Work (LUW) has completed, and hence when it's appropriate to move on to the next step in the WF.
The way this gets accomplished is to trigger a Terminating Event at the very end of the Update Process, which in turn gets picked up by the PO Release activity that is still sitting and waiting with status "Executing".  And that's the key.
I'm almost 100% certain that the Activity has to be in the state of "Executing" before it will react to a Terminating Event.  In your scenario, where the Release gets performed outside of the WF, the Release Activity is still in "Ready" status.
I think the solution here is to put a "Wait for Released" in parallel with the Release Activity as a means of capturing the Release that occurs outside of the WF.
Hope this is relevant....Apologies if not.
Tom Carruth

Similar Messages

  • Office 2013 C2R Update Scheduled Task does not work

    Hi all.
    I am having difficulty getting network deployed updates to work correctly. I installed and older version of Office 2013 with the ODT from a network share and set the update path. I then downloaded an update via ODT.
    The issue is the scheduled task does not update office. If I trigger or manually run from a command prompt "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection modeargs reschedulemode tasktrigger
    scheduledtask updateuitype background” from Task Scheduler nothing seems to happen. Monitoring Task Manager it looks like integratedoffice is called albeit very briefly.
    But, if I run "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection background” from a command prompt Office updates, but if I edit the Scheduled Task to above Office does not update if the
    task is triggered.
    As Office can update if the right command is given it would appear that my config.xml etc is correct. Any ideas on why the Scheduled Task does not work?
    Cheers
    Jakes

    What permissions are set on the location of the updates ? C2R currently needs permissions granted for machine accounts as it runs under that context. This will change at some point that C2R gets updated.

  • ( SOLVED )gnome-terminal, su, sudo, gksu, gksudo does not work

    Hello,
    In my fresh installed gnome3 graphical environment, in gnome-terminal, I can not gain root access.
    I've tried diverse su commands.
    1. su command, ends with:
    su -
    Password:
    su: Authentication failure
    2. sudo command, ends with:
    sudo -l
    [sudo] password for root:
    Sorry, try again.
    [sudo] password for root:
    Sorry, try again.
    [sudo] password for root:
    sudo: 2 incorrect password attempts
    Of course - each time, I typed correct password.
    In my sudoers file, group wheel ( into which belongs user I logged in ) has permissions to execute any command.
    3. gksudo with debug:
    gksudo -ld gnome-terminal
    No ask_pass set, using default!
    xauth: /tmp/libgksu-stbGos/.Xauthority
    STARTUP_ID: gksudo/gnome-terminal/879-0-Bex_TIME0
    cmd[0]: /usr/bin/sudo
    cmd[1]: -H
    cmd[2]: -S
    cmd[3]: -p
    cmd[4]: GNOME_SUDO_PASS
    cmd[5]: -u
    cmd[6]: root
    cmd[7]: --
    cmd[8]: gnome-terminal
    buffer: -GNOME_SUDO_PASS-
    brute force GNOME_SUDO_PASS ended...
    Yeah, we're in...
    sudo: 1 incorrect password attempt
    xauth: /tmp/libgksu-stbGos/.Xauthority
    xauth_env: /var/run/gdm/auth-for-tangram-9JYTNt/database
    dir: /tmp/libgksu-stbGos
    I've been asked for my password, not root, after typing I get "incorrect password attempt", if I type root pwd I get the same.
    4. Same with this command:
    gksu -ld gnome-terminal
    No ask_pass set, using default!
    xauth: /tmp/libgksu-SBPcOB/.Xauthority
    STARTUP_ID: gksu/gnome-terminal/1028-0-Bex_TIME0
    cmd[0]: /usr/bin/sudo
    cmd[1]: -H
    cmd[2]: -S
    cmd[3]: -p
    cmd[4]: GNOME_SUDO_PASS
    cmd[5]: -u
    cmd[6]: root
    cmd[7]: --
    cmd[8]: gnome-terminal
    buffer: -GNOME_SUDO_PASS-
    brute force GNOME_SUDO_PASS ended...
    Yeah, we're in...
    sudo: 1 incorrect password attempt
    xauth: /tmp/libgksu-SBPcOB/.Xauthority
    xauth_env: /var/run/gdm/auth-for-tangram-6RCSoJ/database
    dir: /tmp/libgksu-SBPcOB
    In multi-user-mode I can login to root account.
    Last edited by tangram (2013-12-23 08:42:09)

    tangram wrote:
    Hurrican, ok, there is no need to install antother terminal, as I wrote it did not work also in xterm.
    Yesterday evening, tired and sad that gk(su|sudo) still does not work,
    as the "last chance idea", I logged in into multi-user mode ( init level 3 ) and changed root's password,
    then loged in into graphical mode ( init level 5 ), start gnome-terminal and suddenly ... command "su -" started to work.
    By the way, similar solution ( but with chroot ) has suggested Gulver in his post ( this thread, answer #2 ).
    The question is, why root's password, set during install, after finished installation is recognized in text mode, but not im graphical ?
    First root's password was really simple, like "dog4356", without any national chars.
    You're right. I don't even have xterm installed so I guess I just singled out gnome-terminal and forgot that xterm also wasn't working.
    Forgive me for my shaky advice. Like you I've been super busy, and sweating out a fever of 102 degrees (that's Fahrenheit no my
    blood wasn't boiling ). Anyways, glad you got it working. After reading over the whole thread and thinking about it for a little bit, I
    can't really make a good guess as to what was happening.
    I'm sure you probably had tried this, but you could have typed the password out in the command line so you could see it. If there was
    something wrong with it, it would have shown up there as well. If it was perfectly fine, then it would have been very, very weird.
    The important thing is you got it working.
    Merry Christmas.

  • Ctrl Alt Del and Task manager not working

    Hi, Ive been having a problem getting task manager to run at all. On a fresh reboot, if I use the ctrl alt del function the according screen will come up like normal, and I will click on task manager. It bring me back to my desktop and nothing pops up.
    Its not running in my task bar or anything. Then if I try to use the ctrl alt del function again, nothing happens. Ive tried running task manager straight from the start menu, but then I get an error saying that the version of that file is not compatible with
    the version of windows I am running, which is 64 bit W7. It just started happening on my system a few days ago and I have changed nothing the past few days. I have tried to do a system restore, but to my idiocy, I did not know I needed to manually create restore
    points. So I can only restore to yesterday which would fix nothing. I have run antivirus and anti spyware programs and they have shown no problems and my hard drive only has a 1% disk fragmentation. Is there a way to uninstall and re download a 64 bit compatible
    version of the windows 7 task manager? Or is there a separate reason why it is not working? Thankyou

    Also try it By Registry Editor :
    Start --> Run --> regedit --> ok
    Then 
    Hive: HKEY_CURRENT_USER 
    Key: Software\Microsoft\Windows\CurrentVersion\Policies\System 
    Name: DisableTaskMgr 
    Type: REG_DWORD
    Value: 0=Disablethis key, that is Don't Disable, Enable TaskManager
    Regards,
    MCP | MCTS | MCITP
    The first fix did not work, I tried doing the second one but there is no system folder in
    Software\Microsoft\Windows\CurrentVersion\Policies\ 
    The only one its showing is an explorer folder.

  • Running Function Module in Background with Update Task is not working

    Hello Friends,
    I have a "Z" Report Program where I am running this Report in Background using JOB_OPEN, JOB_SUBMIT, JOB_CLOSE. I am calling this in BADI.
    In this Report I am calling another Function Module PRICES_POST which is a standard Function Module and in this FM there is another FM 'CKML_UPDATE_MATERIAL_PRICE IN UPDATE TASK'. Now when I am running the BADI these values are not being updated.
    Friends I would like to know whether can we run Function Modules which are  included with UPDATE TASK as Background Job program?
    Kindly help me in providing your valuable suggestions in proceeding further.
    Thanks and Regards
    Pradeep Goli

    Usually the sequence of CALLs in your report should look like
      CALL FUNCTION 'CM_F_INITIALIZE'
        EXPORTING
          msg_on_screen = c_x.
      CALL FUNCTION 'CKMS_BUFFER_REFRESH_COMPLETE'.
      CALL FUNCTION 'PRICES_CHANGE'
        EXPORTING
          actual_bdatj = f_matpr-pp-bdatj
          actual_poper = f_matpr-pp-poper
          bukrs        = p_bukrs
          budat        = p_date
          xblnr        = p_xblnr
        TABLES
          t_matpr      = t_matpr.
      READ TABLE t_matpr WITH KEY pp-xerror = ' '
                                TRANSPORTING NO FIELDS.
      IF sy-subrc <> 0.
        MESSAGE i046(ckprch).
      ELSE.
        CALL FUNCTION 'PRICES_POST'
          EXPORTING
            i_bktxt    = p_bktxt
            bukrs      = p_bukrs
            lis_update = 'X'
          TABLES
            t_matpr    = t_matpr.
      ENDIF.
      COMMIT WORK.
    If you forget the COMMIT-WORK each and every FM called in UPDATE TASK will not be triggered.
    Regards,
    Raymond

  • Export Task Audit Not Working

    Hello,
    We are on HFM 11.1.2.1.103 and I am getting an error message when trying to export a users activity from the "Task Audit" menu.  When I click on export a new tab comes up with the URL http://server:port/hfm/Administration/TaskAuditExport.asp and then I get an error message:
    An error occurred on the server when processing the URL. Please contact the
    system administrator.
    If you are the system administrator please click here to find out more
    about this error.
    And when I click on "here" it takes me to this URL Running Classic ASP Applications on IIS 7 and IIS 8 : The Official Microsoft IIS Site
    Any thoughts on how I resolve this would be much appreciated.
    Thank you,
    Jason

    SDM,
    Thank you for the response.  This is helpful and I was able to extrac the data, but this utility doesn't give you the ability to focus on one users' activity as you can from the web.  Why is it not recommended to use the web and is there a way to get that working properly?
    The reason the utility is not working for my purpose is I want to view a few users' activities over the last year and when I run the utility it gives me everyone and extracts the data across numerous files, which is not particularly easy to work with.
    Thanks.

  • Manually dispatching a keyboard tab event on a form does not work

    Hi,
    I am trying to solve the following issue:
    I have a form that is sitting on a TitleWindow. This is a popup window. I have a TextInput field. After clicking on the TextInput field when I try to paste something on it, nothing happens the first time and it works i.e. I am able to paste when I do a cntrl V the second time (I am trying to solve this weired behavior). When I use the keyboard to tab to the TextInput field I am able to paste using cntrl V  the first time itself.
    Therefore, I am trying to manually dispatch a tab keyboard event on a form using the following code and this does not work. I have 2 TextInput component on the form and I want the cursor to be on the second TextInput component.
    I have a have a key down handler and I can see that the event that comes in is a tab event, but on the UI the cursor does not position itself correctly.
    myForm.setFocus();
    myForm.dispatchEvent(
    new KeyboardEvent(KeyboardEvent.KEY_UP, true, false, Keyboard.TAB,Keyboard.TAB ))
    Am I missing something?
    Appreciate your help.
    Thanks
    Lilly

    No I am not trying to change the text programmatically. I have added a click event handler and a paste event handler on the textinput. I checked the differences in the properties of event and did not see anything that is different.
    I have a hunch that it has something to do with the fact that this form is sitting on a popup window.

  • Key Command troubles: Set Region/Event Start to SPL Position not working?

    Hello,
    I'm simply trying to find a key command that will allow me to move regions quickly from one part of a song to another without dragging with them with the mouse in the arrange window. I thought I found the solution with the key command "Set Region/Event Start to SPL Position", however it doesn't seem to be doing anything!
    Here's what I've tried: First I select the region I want to move, then I move my SPL to a location using the "go to Position" key command and typing in a bar. I then try to use the "Set Region/Event Start to SPL Position" key command (which I set to Shift-Control-L) and nothing happens. Shouldn't it be moving my region to the SPL? Note: the region is still selected, but refuses to move. Am I doing something wrong? Is this not what this key command was designed to do?
    In my attempts to get the darn thing to work, I also discovered that lock screen-set (Shift-L) key command also does not seem to work (it is not toggling the black dot after the screen-set number like usual). Does this mean my key commands may be corrupted? (which would be a real drag!!) Oddly enough, these are the two are the only two that do not seem to be working, as all others seem to be working fine (AFAIK).
    I've had this problem in the past with the lock screen-set key command not working, and rebuild all key commands and templates when I upgraded to tiger. I thought everything was working fine!
    Any advice would be greatly appreciated! Thanks in advance for your help!!

    I assigned F5 to two functions. In the key commands
    window, pressing F5 highlighted the first assignment.
    Pressing it again highlighted the second assignment.
    So just keep pressing the key to see whether it's
    assigned to more than one command...
    Well, now when I type "Shift-L" into the finder in the top right of the key commands window, no key commands at all are show. However, which I search for the word "lock," the lock screenset key command comes up as "Shift-L." Oddly, if I search any other key commands (such as F1, "cmd-k," or even other shift ones like "shift-," the associated key commands show up.
    To test, I changed the screen set lock from Shift-L to "opt-ctrl-L" and it now works again. However, it still will not come up in the key commands window through searching by "opt-ctrl-L"
    On what may be a side note, the search feature seems very buggy! Tell me if I'm doing this right: First I open the key commands window, which opens with nothing selected. Now, in order to search by key command I go up to the top right corner where the magnifying glass is, place my curser inside and type in the key command correct? When I do this, it shows me the highlighted key command in the left, and my curser is no longer flashing up in the magnifying glass, correct?
    Now, in order to search again, I have to place my curser in the search field again, right? However, now when I search by key command, not all of them register! For example, my "go to position" key command is simply ; but when I type it, nothing comes up in the search, and instead of the magnifying glass window being blank like before, the actual ; is in the box. Oddly enough, searching with "Cmnd-K" still works!
    What is going on? Am I doing something wrong? How do I fix this, as it is very frustrating!! thanks again for your help

  • MOUSE Events on FX 2.0 not working correctly

    Hi,
    I am trying to capture mouse right click in my Java FX application to show the ContextMenu but couldn't do so.
    There are methods available in the API i.e. isSecondaryButtonDown() and isPrimaryButtonDown on MouseEvents to capture mouse clicks but not working.
    Both of the above mention methods return false irrespective of right or left click.
    I will be glad to see resolution for it.
    Thanks in Advance.
    Ashish

    I have no idea what the context of the code you are writing is, but capturing of MouseEvents works fine for me.
    Perhaps you are trying to test mouseEvent.isSecondaryButtonDown() in a MOUSE_CLICKED event handler which will correctly return false after a right mouse click because the click event can't be generated until the button is released (i.e. no longer down).
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.Scene;
    import javafx.scene.control.*;
    import javafx.scene.input.*;
    import javafx.scene.layout.StackPane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    public class MouseEventTest extends Application {
      public static void main(String[] args) throws Exception { launch(args); }
      public void start(final Stage stage) throws Exception {
        // provide some instructions.
        final Label instructions = new Label("Right click anywhere to choose a fruit");
        instructions.setStyle("-fx-font-size: 20;");
        instructions.setMouseTransparent(true);
        // ready a context menu.
        final ContextMenu fruitChoices = new ContextMenu();
        fruitChoices.getItems().addAll(new MenuItem("Apples"), new MenuItem("Oranges"), new MenuItem("Pears"));
        for (final MenuItem menuItem : fruitChoices.getItems()) {
          menuItem.setOnAction(new EventHandler<ActionEvent>() {
            @Override public void handle(ActionEvent actionEvent) {
              instructions.setText("Enjoy your " + menuItem.getText());
              System.out.println("You like " + menuItem.getText());
        // display the context menu whenever a user clicks inside a node.
        final Rectangle node = new Rectangle(400, 300, Color.LIGHTBLUE);
        node.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {
          @Override public void handle(MouseEvent mouseEvent) {
            System.out.println(mouseEvent);
            System.out.println("Secondary button down: " + mouseEvent.isSecondaryButtonDown());
            if (MouseButton.SECONDARY.equals(mouseEvent.getButton())) {
              System.out.println("Choosing fruit");
              fruitChoices.show(instructions, mouseEvent.getScreenX(), mouseEvent.getScreenY());
        // show the scene.
        final StackPane layout = new StackPane();
        layout.getChildren().addAll(node, instructions);
        Scene scene = new Scene(layout); 
        stage.setScene(scene);
        stage.show();
    }

  • SSIS 2012 Script Task Debugging not working (VSTA Popup but no script displayed in IDE)

    Hi,
    I am trying to debug 2012 SSIS Package but for some reason its not working. Basically when I run package (64bit mode) it pop up Script IDE but never brings up Script (see below). Usually when debugging of script starts it should break execution at the code.
    Anybody experienced this issue with SSIS 2012 ?
    Thanks,
    Nayan
    Visit My Blog (Home of BI Articles) 

    Hi,
    I am trying to debug 2012 SSIS Package but for some reason its not working. Basically when I run package (64bit mode) it pop up Script IDE but never brings up Script (see below). Usually when debugging of script starts it should break execution at the code.
    Anyone has clue whats going on here?
    Thanks,
    Nayan
    My Blog |
    Convert DTS to SSIS |
    Document SSIS |
    SSIS Tasks |
    Real-time SSIS Monitoring

  • "Take Picture" task does not work in Automator

    I have downloaded the task "Take Picture" from automator.us, installed it and used it in Automator. It does not work! The log reads that an error occurred in (NSReceiverEvaluationScriptError: 4 (-2700)).
    I activated the GUI scripting as pointed out on the download page.

    I have the same problem, anybody pls

  • [Forum FAQ] Group Policy Preferences Scheduled Tasks Item not working when the option Run whether user is logged on or not is selected

    Scenario:
    We use one of the following Group Policy Preferences Scheduled Tasks item to deploy a task to clients:
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    (Note that on some platforms, "At least Windows 7" is replaced with "Windows Vista and later.")
    After designating a user account to run the task, we select “Run whether user is logged on or not” option, and “The Do not store password…”
    check box is automatically grayed out (See Figure 1).
    Figure 1
    After finishing configuring the task item, on a client, we run command
    gpupdate/force to forcefully update group policy. However, on the client, when we check if the task is listed in Task Scheduler snap-in, the task is not displayed, and when we run
    gpresult/h report.html to collect group policy result for troubleshooting, we see an error as similar as shown in the following figure (Figure 2).
    Figure 2
    Cause:
    To make the scheduled task run whether the user is logged on or not, we need to store the password of the designated user account. However, for the content of the scheduled
    task item is stored in Sysvol where it’s not safe to store passwords, this function has been deprecated.
    Workaround:
    We can run the task with system account
    NT Authority\System, or we can use specific user accounts to run the task when the given user is logged on. (See Figure 3)
    Figure 3
    Reference:
    MS14-025: Vulnerability in Group Policy Preferences could allow elevation of privilege: May 13, 2014
    http://support.microsoft.com/kb/2962486
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hello Everyone,
    Succeeded !!!!!!!
    Even i was struggling with this same Problem to execute a batch via Window scheduler and set the setting to "Run whether the user is logged in or not".
    I tried many time but the batch runs with " Run
    whether user is logged on" and not with "Run
    whether user is logged on or not".
    what i discovered is that there was one mapped drive
    path in my batch file which was not the complete path like y:/AR.qvw actually what i did i changed that map path to the complete path like \\servnamename\d$\AR.qvw and the batch executed successfully with the setting "Run
    whether user is logged on or not"
    The
    conclusion is that check the dependency of the script on external resources because when you check this option "Run
    whether user is logged on or not" It actually conflicts. This my discovery.
    If
    you have any question write me on [email protected]
    Thanks
    & Regards,
    Arun

  • Event Alert on Custom Table not working

    Hi
    Custom table is registered in Custom schema, created synonym in apps and granted all priviliges to apps.
    Creates event alert based on insert on custom table, though custom table is getting populated from concurrent program event alert seems to be not firing
    not sure why is this happening.
    Thanks
    Kamalakar.G

    Hi,
    Please see these threads.
    Alerts -- Can we create Alerts on custom table under Custom Application?
    Re: Alerts -- Can we create Alerts on custom table under Custom Application?
    Table used in Event Alert
    Re: Table used in Event Alert
    Problem with Custom Table Registration
    Re: Problem with Custom Table Registration
    Thanks,
    Hussein

  • OIM Rejected Task Retry not working.

    Hi,
    I am trying to have a process task for a custom adapter retry itself if it gets rejected.
    I have set the process task attributes "Retry Period in Minutes" and "Retry Count" as sad in the documentation.
    But the rejected task are not getting retried.
    Is there any other configuration to be checked?
    Following are the OIM version details :
    Version: 9.1.0.1866.63
    Build 1866.63
    Thanks,
    Aravind

    The "Task Timed Retry" task is enabled and seems to be running. It is scheduled to run every 30 mins.
    But once it starts running, it keeps on running for a very long time, and the tasks are not retried.

  • Worflow : Method with in the task is not working.

    Hello,
    i am saving a parked document and change event is triggereing ( i saw this in SWEL).
    i have a created a single step task that contains the trigering event (Change for parked document)  and custom method which contains the code to update a z table.
    i see in swel event is fired and also the task is fired with that.
    but the table is not getting updated.
    i tested the object and debuggd it manually through swo2. the program is working fine when executed through swo2. but doesnot work when executed through an event via transaction.
    please let me know if there is any additional setting for this to work.
    Thanks.

    I went in to worflow log and found that,
    1. Status :  Ready.
    2. After pressing details button i get details for step table below.
    3. In this table there are two entries : a)Work item Created after event. b)Dailog work item created.
    can somebbody please explain me why the method is not executed (or is it executed).
    thanks

Maybe you are looking for