Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Lotus Workflow Forum

Lotus Workflow Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Marina Charoensuk 14.Oct.03 03:35 AM a Web browser
Lotus Workflow Engine 3.0 Windows 2000; Windows 95/98; Windows NT


I use DWF version 3.0a and I would like to send notify overdue to PARTICIPANTOS when they don't do anything in their activity within due time. So I have customized in "QueryActivityOverdueMail" & "QueryInboxOverdueMail" & "QueryProcessOverdueMail" so my code is like this:-

***************************************
Private Function QueryActivityOverDueMail_(Continue As Integer, CoverDocument As NotesDocument)
Continue=False
On Error Goto Err_QueryActivityOverDueMail
Print " QueryActivityOverDueMail"
Dim db As NotesDatabase
Dim maindoc As NotesDocument
Dim mail As NotesDocument
Dim body As NotesRichtextItem

Set db=CoverDocument.ParentDatabase
Set mail=New NotesDocument(db)
Set body= New NotesRichtextItem(mail,"body")
Set maindoc=DWFBinderGetMainDocument ( CoverDocument )

If (maindoc Is Nothing) Then
Print CoverDocument.BinderDocIDOS(0)
Print "The main document cannot be found"
Else
Print CoverDocument.BinderDocIDOS(0)
Print "The main document has been found"
End If
mail.Form = "Memo"
mail.Subject = " QueryActivityOverDueMail_These jobs are overdue. Please make sure they are completed soon."
mail.SendTo = maindoc.PARTICIPANTOS(0)
Call body.AppendText("Dear Participant")
Call body.AddNewLine(2)
Call body.AppendText("These jobs are overdue. Please make sure they are completed soon. >>> ")
Call body.AppendDocLink(maindoc , db.Title)
Call body.AddNewLine(2)
Call body.AppendText("Thank you.")
Call body.AddNewLine(1)
Call body.AppendText("")
Call mail.Send(False)

Exit Function

Err_QueryActivityOverDueMail:
Print Err & " " & Error$(Err) & " line:" & Erl & " QueryActivityOverDueMail"
Exit Function

End Function
***************************************

When the agent was run. I've seen the error message on server log that show "Object Variable not set" in the line that I code "Set maindoc=DWFBinderGetMainDocument ( CoverDocument)" and another error that show are "The main document can not be found" (because I code program to track error).

Who can tell me Did I do something wrong about this code? Why I can't get maindocument from the coverdoc. Plase advice me. Thank you very much.






Error!! Notify Overdue.. Please hel... (Marina Charoens... 14.Oct.03)
. . RE: Error!! Notify Overdue.. Please... (Pooh Anyakit 3.Dec.03)
. . RE: Error!! Notify Overdue.. Please... (J Fitzgerald 14.Oct.03)
. . . . RE: Error!! Notify Overdue.. Please... (Marina Charoens... 15.Oct.03)
. . RE: Error!! Notify Overdue.. Please... (John F Norris 29.Oct.03)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow