Mark Summers 15.Sep.09 04:31 AM a Web browser General6.5.1Windows 2003
I am trying to get a web agent to move a job along in the Workflow
However with the below code I get an error code 6 - Binder cannot be claimed - Invalid Binder State. Operation : Claim could not be completed sucessfully
Using error handling I have determined that all the variables are valid ones in the right type and with the expected values
This is triggered as a web agent but runs on the server
What am I doing wrong here?
Dim MaindocUNIDStr As String
Dim workflowview As NotesView
Dim wve As NotesViewEntry
Dim wdoc As NotesDocument
Dim wdoccov As NotesDocument
Dim Remote_User As String
Dim MaindocUNIDStr As String
Set workflowview=db.GetView("UNID")
Set wve=workflowview.GetEntrybyKey(MaindocUNIDStr)
Set wdoc=wve.Document
Set wdoccov = DWFBinderGetCoverDocument(wdoc.folderidos(0))
success = DWFActivityClaim(wdoc.Folderidos(0), Remote_User, ErrorCode, ErrorText)
Do I need to trigger a second agent to do the workflow stuff or should the web agent be able to handle this?