WORKFLOW:dimmy路由不到下一环节问题

代理的代码:
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


V2F4)BD823_Y{F$`EJ8TH14.jpg



为什么dimmy路由不到下一环节


我调试了下 大概objBinder = objAAAgent.GetFirstActivity 这个就为空值
参与6

5同行回答

sunnyqifengsunnyqifeng技术总监上海卓豪计算机科技有限公司
回复 5# shufangjian     流程的第一步你指定人了没有?如果没有指定活动所有者,自动活动结束了会报错的。显示全部
回复 5# shufangjian


    流程的第一步你指定人了没有?如果没有指定活动所有者,自动活动结束了会报错的。收起
软件开发 · 2014-03-18
浏览1325
shufangjianshufangjian软件开发工程师ztesoft
回复 4# joinhand    可以啊,我们所有的流程都是这么设计的,这个问题就是主文档找不到活页夹引起的,已经解决了显示全部
回复 4# joinhand


   可以啊,我们所有的流程都是这么设计的,这个问题就是主文档找不到活页夹引起的,已经解决了收起
互联网服务 · 2014-03-18
浏览1331
sunnyqifengsunnyqifeng技术总监上海卓豪计算机科技有限公司
第一步就是自动活动是不可以的显示全部
第一步就是自动活动是不可以的收起
软件开发 · 2014-03-18
浏览1352
shufangjianshufangjian软件开发工程师ztesoft
回复 2# shufangjian    就是因为上面链接中的问题下面贴个找出没有活页夹文档的代码,仅供大家参考:Sub Click(Source As Button)On Error Resume NextDim session As New NotesSessionDim db As NotesDatabaseDim dc As NotesDocumentCollectionSet db=session....显示全部
回复 2# shufangjian


   就是因为上面链接中的问题
下面贴个找出没有活页夹文档的代码,仅供大家参考:

Sub Click(Source As Button)

On Error Resume Next

Dim session As New NotesSession

Dim db As NotesDatabase

Dim dc As NotesDocumentCollection

Set db=session.CurrentDatabase

Set dc=db.UnprocessedDocuments

Dim doc As NotesDocument

Dim binddoc As NotesDocument

If dc.count>0 Then

For i=1 To dc.count

Set doc=dc.GetNthDocument(i)

If doc.BinderDocIDOS(0)<>"" Then

For j=0 To Ubound(doc.BinderDocIDOS)

Set binddoc = Nothing

Set binddoc=db.GetDocumentByUNID(doc.BinderDocIDOS(j))

If binddoc Is Nothing Then

Print doc.INSTANCEOS(0)

Msgbox doc.INSTANCEOS(0)+"-"+doc.UniversalID

End If

Next

End If

Next

End If
End Sub收起
互联网服务 · 2014-03-17
浏览1338
shufangjianshufangjian软件开发工程师ztesoft
http://www.lotuschina.net/club/viewthread.php?tid=3561跟这个问题应该是一样的显示全部
互联网服务 · 2014-03-17
浏览1365

提问者

shufangjian
软件开发工程师ztesoft
擅长领域: 数据库

相关问题

相关资料

问题状态

  • 发布时间:2014-03-17
  • 关注会员:1 人
  • 问题浏览:4588
  • 最近回答:2014-03-18
  • X社区推广