Simon Mottram 27.Aug.02 01:40 AM a Web browser General 3.0 Windows 95/98
I am using DWFBinderAddDocument in two contexts.
1) When I create the initial workflow job, I add a small number of documents to the deal. All works fine.
2) When an activity has been claimed, I allow people to add new documents to the binder. However once a document has been added, the workflow task can no longer be completed. The error message is '4000 you are not authorised to perform this action'.
If I delete the new document, completion works, so the problem is with this new doc. I have checked that the user DOES have edit access to the new document according to the various Author fields, so it must be an explicit check by DWF.
I have discovered by inspecting the document in question that is missing the ParticipantOS field, and manually resetting this to the correct user allows the task to complete. Therefore I am assuming that a) DWF checks this field before allowing completion, and b) DWFAddDocumentToBinder is at fault for not setting this field.
The document has a whole bunch of other OS fields added and the DWFAddDoc.. function returns success so I assume that I am doing everything correctly. The document has also definitely been added to the correct job.
Given that I know how to kludge a fix, I would like to know how to fix this 'by the book'. I have tried running the Backgrounder and using DWFConsolidateBinder but to no effect. Actually after doing the consolidate, the job was stuck in Ready To Route, and won't move for love nor money, have to delete it.
How should I solve this? Any assistance gratefully received