We have reusable WF2013 in document library.
What bothers me is that wf starts on item edit, and when user opens document (lets say word doc for an example), after he clicks Save in word WF starts, which is totally clear why, but because of thing that user still keeps opened document, he still didnt close it, workflow gets HTTP 423 message, doc is locked for use.
Now, after he closed document it gets some time until auto lock is removed and workflow starts automatically again and finishes its job.
My question is, is there a way to disable wf starting when user clicks Save button, but just to trigger it on item close? Or is there any other way to overcome this problem? So it doesn't happen to me that I get HTTP 423 message.
Note: What also should be noted is we have custom edit form in which we check if document is opened, if yes, form will tell user that he cant save metadata before closing document, but if in document itself, user is able to click on save button and that is only case when we get HTTP 423.