Workflow and ServiceDesk Community

 View Only
  • 1.  Workflow Leases

    Posted Aug 22, 2011 12:05 PM

    Is it possible (for users) to release Leases on workflow tasks before they timeout? 



  • 2.  RE: Workflow Leases

    Posted Aug 22, 2011 12:57 PM

    Sure, there should be a Break Lease (or something similar) available to a user who peruses another person's task. Click the green down arrow next to the task in task history. It's on the right, for admin stuff for the task.



  • 3.  RE: Workflow Leases

    Posted Sep 07, 2011 12:22 PM

    OK found that.  Don't like it though because it also requires the WorkflowTaskManagement.Modify permission to be enabled, giving users the ability to delete tasks!

    Also, say I start on a task, and then abort the workflow screen, the lease remains in place until it times out.  How do I get workflow to know to release the lease as soon as the workflow screen is exited?



  • 4.  RE: Workflow Leases

    Posted Sep 07, 2011 12:35 PM

    Can't you use the WorkflowTasksManagement.AllowBreakLeases permission?  I don't know if you need the .Modify permissions to use this.  I'm not near a test environment at the moment so I can't certify that it does what you need but if you can, give it a go.

    The lease is applied to the the task and is independent of the session.  If you looked at this practically, if you wanted to lease a task and you closed your window accidentally or because you had to, you would still want the lease to be in effect.  You wouldn't want someone else jumping into the ticket when your back was turned.

    That said, if you don't use leases then just turn it off in the Master Settings > Workflow Settings, alternatively reduce the lease time from 15 minutes (default) to something more appropriate, say 5 minutes.