Cancel Task Assignment after Exception?

Hello,
I'm trying to model a parallel workflow by placing two User Tasks (SimpleWorkflow) in a Flow component.
The requirement is as soon as one of the two assigned users rejects the task, the process should immediately abort.
I achieved this by throwing an exception in the Reject branch, and catch it at the top level.
Now my problem is, when user A says Reject, the exception is thrown and caught, and the process comes to the end, but if user B logs in to the Worklist Application, the task is still visible and pending:(
This behaviour doesn't seem consistent to me, have a done something wrong? Is there a way to cancel all user tasks assigned in a process as soon as the process ends?
p.s. I can not use the Parallel Workflow pattern because user A and user B have different view of the workflow data and the JSP has to be designed individually, while in Parallel Workflow pattern, all users have the same view of the data (single JSP).
Any help will be appreciated and thanks in advance.
ZHU Jia

OK, it seems that adding a Terminate at the end of my catch block does the trick.

Similar Messages

  • My Tasks View in my custom task list fails to display the tasks assigned to me (that is the currently logged in user)

    Hi
    I am new to sharepoint 2010.
    I created a custom task list, where I  have many tasks assigned to users (I had tasks assigned to me as well). I created a view as "My tasks "and having a filter as Assigned To is equal to [Me]. When I do that my view fails to show the
    tasks assigned to me. This happens same with the Sharepoints 'My Tasks' view as well. I tested by creating some test tasks under my name and when I selected 'My Tasks' view no tasks are getting displayed.
    Please help.
    Thanks,
    Gokulkumar.

    Hi,
    According to your post, my understanding is that you wanted to display the tasks assigned the current logged in user.
    In my environment, if I used the System Account, My Task view didn’t display any tasks.
    However , if I used other users except the System Account, My Task view could display current user tasks correctly.
    I recommend to use other accounts except System Account to log in site. Then everything will work well.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Task Assignment to Ggroup - Group Members Not Getting Email

    I have a process with an approval activity with initial user selection set to a group rather than a specific user. I want all selected users to receive an email notification that a new task awaits them. When I assign to a specific user, the custom email template is sent to the user. When I assign to a group, the group members don't get the task assignment email.
    How do I change that so that group members will receive email notification of task assignment?
    Thanks in advance!
    Eric

    One possible solution:
    You can use our Group Lookup component to get a comma-separated list of the emails of the members of the group. Then, in the step before the User>assignTask step, send the group an email. The only problem is that you won't be able to embed a link directly to the task, because the task doesn't exist yet.
    Doc: http://avoka.dnsalias.com/confluence/display/Public/Lookup+DSC
    Download: http://www.avoka.com/avoka/escomponents.shtml
    To work around this problem, you can use the technique outlined here:
    http://blogs.avoka.com/2008/10/20/customize-user-task-escalation-after-assignment/
    http://avoka.dnsalias.com/confluence/display/Public/Customize+User+Task+Escalation+After+A ssignment
    If you need more assistance, contact info-at-avoka.com
    Howard

  • OIM task Assignment Tab

    I am trying to understand how the assignment tab works. In process Def, I have a task, like create user. That has a assignment tab which has one entry in it. It has escalation time and a Default Rule. I entered an escalation time of 10 mins and then proceeded to create another entry below that. However, it says it needs a rule and the Default rule is not applicable since its already used by the first entry.
    What rule do I need to create? What should be in that rule? Thanks in advance.

    See
    http://download.oracle.com/docs/cd/E14049_01/doc.9101/e14061/resmgt.htm#BABIHAIJ
    You have to create Task Assignment Rule for this. That Task Assigment Tab is used for assigning that task to someone.
    Suppose you have approval workflow and you have create Approval Task in that. Then you can assign it to anyone to approve that task.
    In Task assignment tab, you select the user or group who will be responsible for completing that task. If you are giving some time duration in Escalation then it will escalate after that particular time but it tales value in ms.

  • Reminder email notification and task assignment notification from humantask

    Hi All ,
    We have developed a 3 level approval SOA composite which sends the 1st level approval to a Manager and once Manager approves the request, the approval task is assigned to a 2nd level approver role(Group) for approval and after the approval from 2nd level approver group , the approval task is assigned to a 3rd level approver group .
    After the request is submitted and the task is assigned to Manager for approval. Manager receives a task assignment notification (defined in the notification tab of the .task) and a reminder notification is fired after X hours of the task assignment. The issue is, the assignment notification and reminder notification are same, is it possible to send different notification on task assignment and a different notification on reminder.
    Appreciate your help on this !
    Thanks
    suren

    The default email solutions in planning are using workflow or task lists, though the task lists are based on due dates.
    If you wanted a solution where an email is sent out when a task list is complete, then one route could be to have a business rule attached to a task list and then the business rule uses a custom CDF to send out email notication.
    If you are interested in sending emails from business rules then I did write a blog on the subject a while back.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • CProjects rescheduling:: Role-task assignment adjustment

    All,
    We create a project with phase and task & role with staffing. We assign role-resource to task.
    After sometime, we reschedule the project. Dates of project, phase, and task are changed. But the role validity, the role staffing duration, role-resource-task assignment remain unaffected.
    Am I wise to expect
    -automatic adjustment of role's validity to the new Project Dates? ('General' tab)
    -automatic adjustment of role staffing? and ('staffing')
    -automatic adjustment of role-resource-task assignment? ('task')
    Have anyone customized in this area?
    thanks,
    Mathavan

    Hello!
    We had the same requirement as yours, and we had to develop everything to automatize such needs. It's not available in standard.
    For information, we are working on SAP cProjects/xRPM 4.5
    Regards,
    Matthias

  • Provisioning Task Assignment

    There is a provisioning task say 'Provision Resource manually'. In the Assignment tab of the task the Target Type is 'Group User with Least Load'. There is a task assignment adapter attached and variables are mapped and in Ready status. Also there is a group entered into the Group column. So to which provisioning group the task will be assigned? the group which is entered into the group column or to the group returned based on adapter execution?

    adapter return value for key type should be STRING
    adpater return value for key should be LONG
    but in your code you must return group key as string. you can say this is bug. But you have to return string else it will cause exception.
    while returning group id, just typecast to string . this will be working perfect

  • OIM 11gR2 - Task Assignment

    There is an approval workflow in my current 10g environment, where approval is assigned to a particular user after running a task assignment adapter. The java code inside my task assignment adapter has the logic which gives the approver key as output. Based on this the task is assigned to that particular approver. In OIM 11gr2 since the approval workflow happens in SOA side how can i perform my java logic there and route the approval based on that. Thanks.

    You can obtain user key either using expression rules or if logic is complex, you can use java embedding task to add your java code inside composite. Refer link here:
    http://docs.oracle.com/cd/E21764_01/doc.1111/e14309/soa_api.htm
    Check section: 26.2.3 Updating the SOA Composite
    regards,
    GP

  • Is this normal? "There are currently no approval tasks assigned to you."

    Our site owners encounter the following situation:
     - We are using sites based on "Publishing site with workflow" template.
     - We have used Owners (Permission Level=Full Control) for site managers  and Visitors (Permission Level=Read) for everyone on domain. We also did not add usernames directly, but instead used an AD group (which was added to the SharePoint Owners group).
     - There is currently no users in Approvers (Permission Level=Approve) group.
    In this situation when someone from Owners grope creates a page and clicks Submit, he sees Approve and Reject buttons. However he is not able to Approve either Reject and gets "There are currently no approval tasks assigned to you".
    I have added the AD group we have used for Owners to Approvers group, the site manages still were not able to Approve (with same error message).
    The situation finally got fixed after I have added a user directly with his username to the SP Approvers group. Adding any user directly with his/her username fixes this partially: then the task is indeed created, but someone from Owner group (that was not
    in Approvers group when task was created) still can not approve by clicking on Approve button, but he can take over the Task from Task List and then approve...
    To my knowledge all this happened because there was indeed no approval task created (that is what actually error indicates). But still I am little bit confused about 2 things:
     - Why someone with Full Control permission can not approve/reject a page (in the end that is just an item from the list with a workflow activated on it)
     - Why there were no task created (I would expect that if there is no one in Approvers group, the tasks would be created for other users with Approve permissions, for example through Full Control right; also situation when there was an AD group is strange,
    why not to create a task assigned to that AD group).
    Just wondering about other thoughts on this behaviour.
    Thanks in advance!
    Tofig

    Hi Tofig,
    As you rightly said, this behaviour is by design. 
    As far as I understand, the owners need not be given the approver permission considering them to be mostly from technical background.  They may not necessarily be good at content authoring and design and keeping them away from the approver group may
    avoid any language related goof-ups (punctuations, grammatical errors etc.)
    On the other hand, if they are good at content authoring, the site owners can be included in the Approver group, to avoid getting this message.  This message also goes away once any of the user under Approver group, approves the changes.
    Cheers :)
    LM

  • Unpin from Task bar AFTER program is deleted

    I have a situation where I am trying to use PowerShell to Unpin a shortcut from the task bar after the program has been deleted. The shortcut has been renamed (from the idiotic name Autodesk used to start with) and thus it is orphaned after uninstall because
    Windows doesn't manage these things gracefully. The code I am using uses the common approach of digging into the shortcut to extract the Verbs array, and then assigned the Unpin verb to $Verb and then does a $Verb.DoIt(). But of course the the target no longer
    exists, so there is no Verbs object to dig a Verb out of. 
    I have found the various related posts, and there are issues
    1: Deleting the reg key and losing all pinned items is a no go. I am removing one piece of software, and I want to remove that shortcut and no others.
    2: I know I can do this manually, but my whole goal is automation, and the fact that I CAN do it manually suggests there should be a way to do it with PowerShell.
    3: I have tried getting the Verb from the shortcut as well, but it seems like the shortcut really is just a passthrough to the Target, so no target, no Verb from the shortcut.
    4: I have also tried just deleting the shortcut file from User\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar, but that leaves an even more orphaned shortcut on the task bar, that not only doesn't have a target, it doesn't
    even have an icon, just a white "page".
    So, how does one get to whatever Verbs are being accessed when doing this manually? Is there some way to apply a generic Verb?
    Gordon

    Okay so after some digging i found a way for you to do it but the best way i have found is using the actual user rights. I tested this out as a login script that ran before the user even saw their desktop.
    The task bar has a registry key that has to be cleared and when explorer is started the key gets created based on the items listed in the directory the shortcuts are stored. If you have any issues let me know.
    #Remove the chached settings in the registry. This will comeback once explorer is restarted
    get-item -path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband -ErrorAction SilentlyContinue |
    remove-itemproperty -name Favorites, FavoritesRemovedChanges, FavoritesChanges, FavoritesResolve, FavoritesVersion -ErrorAction SilentlyContinue |
    Out-Null
    #Remove ShortCut From Current User:
    Remove-Item -Path "C:\Users\$($Env:UserName)\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Pandora.lnk" -Force -ErrorAction SilentlyContinue | Out-Null
    #Restart Explorer
    Stop-Process -Name "explorer" -Force | Out-Null
    #once explorer stops it should restart itself

  • RE: Cancelling tasks

    How about creating two tasks to solve your problem? One is the main
    task which spawns another child task which you are really interested (a
    long synchronous task), then the main task goes to the event loop. If
    you want to kill the child task, you just use the SetCancel(TaskPolicy =
    SH_TP_TASKANDCHILDREN) to kill the main task and the child task.
    Hope this helps.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    Code example:
    Method: mainTask
    Start task LongSynchonousTask
    Event Loop
    when task.Shutdown do
    exit;
    End Event;
    In your program, some where you can call:
    aTaskDesc: TaskDesc = Start Task mainTask;
    If you need to cancel the task, just do
    aTaskDesc.SetCancel(TaskPolicy = SH_TP_TASKANDCHILDREN)
    -----Original Message-----
    From: owner-forte-users [SMTP:[email protected]]
    Sent: Wednesday, September 24, 1997 1:56 PM
    To: Forte Newsgroup Submission
    Subject: Cancelling tasks
    I've tried out some of the suggested implementations for cancelling
    tasks using TaskDesc.SetCancel() and CancelException.
    This works great when you are cancelling a process that is
    executing an event loop. However, how do I cancel a task that
    is simply taking too long to complete processing a synchronous
    task which is not using an event loop?
    THank you,
    Keith

    We have a situation where the user clicks on a button to start a long
    retrieve process. During the retrieve process the task is not in an event
    loop. However, the user may wish to cancel the retrieve process at any
    point. What we did was to start the retrieve process as a new task with
    return and exception events. The main task stores the task handle for
    this new task and then displays a new window which has a cancel button.
    The main task now runs this window's event loop. If the cancel button is
    pressed the setcancel() method is called on the new task's handle.
    Besides this the event loop also waits for return & exception events from
    the new task. Once any of these happens the event loop is exited and one
    goes back to normal processing. We also modified the code of the retrieve
    process to catch the CancelException in the exception block. This allows
    it to do any clean up required before it terminates.
    Hope this helps.
    Regards,
    Sanjay Murthi
    Indus Consultancy Services
    [email protected]
    From: Keith Kroeger
    Sent: Saturday, September 27, 1997 12:04 PM
    To: Forte Newsgroup Submission
    Cc: murthis; vasasm; chandraa
    Subject: Cancelling tasks
    MCI Mail date/time: Wed Sep 24, 1997 11:58 am EST
    Source date/time: Wed, 24 Sep 1997 13:55:55 -0500
    I've tried out some of the suggested implementations for cancelling
    tasks using TaskDesc.SetCancel() and CancelException.
    This works great when you are cancelling a process that is
    executing an event loop. However, how do I cancel a task that
    is simply taking too long to complete processing a synchronous
    task which is not using an event loop?
    THank you,
    Keith

  • Report gets cancelled or terminated after eight hours

    While doing load testing of reports, all of my reports got cancelled or terminated after eight hours. I bang the report server and database with 30 long running reports using RWCGI60. The rwcgi60/showmyjobs shows that all are running for 8 hours and after that boom... all gets cancelled one by one with in a five minute period. I still see the SQL session activity on database. The report server log says the server engines are crashed one after the other. I have Maxengine set to 15. When I submit 30 reports I see 15 running and 15 enqueued.
    Is there any timeout parameter set on RWCGI60 where by it lost contact of database? RWCLI60 works fine and finished all reports.
    Thanks and Please let me know if you further information...

    Hi
    The timeout is a seeting in http server on which you host Reports CGI. Once that time limit is reached and no output is written, the web server would time out for that request. Reports CGI does not have any timeout parameter property.
    Thanks
    Rohit

  • Can you buy Creative Cloud for a single month? Or do you have to buy the membership which lasts a year? If so can you cancel the membership after a month and only pay for that month.

    Can you buy Creative Cloud for a single month? Or do you have to buy the membership which lasts a year? If so can you cancel the membership after 1 month and only pay for that month?
    Thanks

    Hello Tom,
    You may sign up for a free trial of creative cloud which you can check out here. Download a free trial or buy Adobe products | Adobe downloads
    You may either pay for a month to month membership or annual as listed here. Creative Cloud pricing and membership plans | Adobe Creative Cloud
    Let us know if this helps!
    Thank you,
    Jo-Marie

  • How to get group key from a task assignment adapter

    Hi All,
    Senario:
    I have two groups, say G1 and G2.
    One Access policy, say P. (This access policy is associated with AD resource.)
    AD Resource Object R.
    I have defined an Approval process for Resource R.
    Access policy P is assigned to both Group G1 and G2.
    This Access Policy P is linked to Resource R
    According to above configuration,
    When I add User U1 to Group G1 ( or G2 ) through "Group Membership", Access Policy P is executed and the approval process which associate with the Resource R is executed.
    In my Approval process, I have a task assignment adapter.
    Within my adapter, I want to get the group key, which cause to fires this approval process. ( It may be G1's key or G2's key. )
    Could some one help me for this ?
    Regards,
    Thirlk
    Edited by: thirlk on Jun 28, 2009 10:55 PM

    See this thread
    Working on the same requirement.
    How to get the administrator group of a group from a approval process
    If you have any further question let me know.

  • SharePoint's role and its task assignment

    SharePoint's role and its task assignment list below:
    *Workflow
    *App
    *PowerShell
    *SharePoint migrering
    *Enterprise Content Managment
    *Business Intelligence
    *social business platform
    *SharePoint analyst
    *SharePoint Enterprise Search
    *Document management
    *SharePoint Cloud
    *SharePoint BDC (Business Data Catalog)
    What more am I missing that is important to add?
    Please remember that I'm a newbie in SharePoint 2013.

    I understand you have added ECM but I would also add Records Management, Machine Translation Service and Community Sites.
    If you want to add features then you should also include Office Web Apps, Cross Browser Support and Responsive Web Design.
    Amit

Maybe you are looking for

  • Can I write to a collection or data table with Sienna?

    Hello all, First of all, it will be painfully obvious that I am not a developer. I have some knowledge an can do that I want when it come to tracking information with Excel but I'd like to dabble in Sienna and see if I can make a simple little app. W

  • Problem with starting to use Thunderbird account

    I am trying to set up Mozilla Thunderbird account because not happy with Windows live mail, but i keep getting the following notice when I try to get mail. I have found I can send mail ok. Sending of password for user ........ did not succeed. Mail s

  • Urgent help needed: RFC messages from R3 system are not arriving to the XI

    Hello, We have a RFC to RFC scenario in which when we execute a function module it sends a message to XI through a sender RFC communication channel but the message is not coming to XI. I checked the TCP IP connection between R3 and XI the test connec

  • Printing address list

    Have done it before , worked ok, but now ... When I print the comnplet list of my adrdress book, the addresses themselves are not included. All I get are the names and phone nbrs, no postal addresses, no emails addresses either ! Can anyone assist ?

  • BIOS 4.1 - P67A-GD55

    I recently upgraded my BIOS to version 4.1.  Bad decision, if it ain't broke don't fix it right? The previous BIOS versions have not given me overclocking issues. In 4.1, if I set the clock multiplier 45, the BIOS reports the O/C is in affect (4.5GHz