代理的代码:
Sub Initialize
' ---------------------------------------------------------------------
' --- Please enter your own code in the function "CustomSubroutine" ---
' ---------------------------------------------------------------------
Dim objAAAgent As New AutomatedActivityAgentTemplate
Dim objBinder As WFBinder
Dim datNextProcessingDate As NotesDateTime
Dim nSuspend As Integer, nSuccess As Integer
Dim strErrorText As String
Set objBinder = objAAAgent.GetFirstActivity
Do While Not objBinder Is Nothing
nSuccess = CustomSubroutine(objBinder.GetDocuments,objBinder.GetCover, objBinder.GetMain, strErrorText, datNextProcessingDate, nSuspend)
Call objAAAgent.UpdateActivity( objBinder, nSuccess, strErrorText, datNextProcessingDate, nSuspend)
Set objBinder = objAAAgent.GetNextActivity( objBinder )
Loop
objAAAgent.Update
End Sub
为什么dimmy路由不到下一环节
我调试了下 大概objBinder = objAAAgent.GetFirstActivity 这个就为空值