Licensed Materials - Property of IBM
C99N6EN
C99N7EN
C99N8EN
(c) Copyright IBM Corporation 1998, 2007
All rights reserved.
IBM, Lotus, Lotus Notes, Notes, and Domino are trademarks or registered
trademarks of Lotus Development Corporation and/or IBM Corporation
in the United States, or other countries, or both.
PROGRAMS
--------
AGENTS - Illustrates how to create agent notes.
RAGENTS - Illustrates how to execute agents.
ENVIRONMENTS
------------
Sample makefiles are provided for the following environments:
Microsoft Visual C++ for Win32
IBM i5/OS
IBM AIX
Sun Solaris SPARC Edition
Linux on Intel platforms
FILES
-----
mswin32.mak - Make file for 32-bit Windows using Microsoft Visual
C++.
sol_2x.mak - Make file for Sun Solaris SPARC Edition.
aix.mak - Make file for IBM AIX.
linux.mak - Make file for Linux on Intel platform.
agents.cpp - Main program to create agent notes.
ragents.cpp - Main program that executes the newly created
agents.
problems.nsf - Sample Notes database (in notedata directory).
agents.ref - Reference sample output log file.
HotAgent.java - Java Agent source code.
HotAgent.class - Java Agent class file.
readme.txt - This file. Specifies what is needed to use this
example.
mk_agents_i.clp - Make file (CL Program) for IBM i5/OS using ILE C++
with the source code being an IFS file.
mk_agents_p.clp - Make file (CL Program) for IBM i5/OS using ILE C++
with the source code being in a source physical file.
(Note: If you use ILE C++ compiler with the source code being in a
source physical file, the file HotAgent.class is stored as IFS file:
/qntcppsdk/notedata/HotAgent.class.)
DESCRIPTION
-----------
AGENTS
This sample creates the following four agent notes in the sample
database, problems.nsf, which is included with the toolkit.
1)"Send Reminder to Support Rep"
This agent is a manual (menu command), shared, Actions agent that
runs against the currently selected documents. When executed, it
will send a mail message, with doclink, to the "Support Reps" of
the selected documents in the view.
2)"Assign Support Rep"
This agent is a disabled, shared, background LotusScript agent
triggered and run against new and/or modified documents. When
executed manually or as a background agent, it assigns default
"Isabel Silton" to all open, problem documents that do not have an
assigned Support Rep. When this agent is executed programmatically,
by RAGENTS program, it uses Parameter Document to set a different
name ("Sandy Block".)
3)"Decrease Priority"
This agent is an enabled, shared, scheduled, formula based agent
that runs against selected documents in the database dayly, at 1AM.
When executed, it decreases the Priority value of all open problems
created on the previous day by one level.
4)"Assign Hot Problems"
This agent is a manual (menu command), shared Java agent that runs
against all documents. When executed, it assigns "Fire Fighters"
as the Support Rep to all problem documents that have an "Open" Status
and "High" Priority.
RAGENTS
This sample executes the "Assign Support Rep" and "Decrease Priority" agents
created by agents.exe and displays and logs the results.
BEFORE RUNNING THIS SAMPLE
---------------------------
This sample uses the problems.nsf sample database that is included
in the notedata directory of the C++ API toolkit. Copy this file to
the Notes data directory.
Before running this sample, open the database from Notes and
perform the following preparatory steps:
1) From the Main View create a new Problem document with an empty
Support Rep field value, and set its Priority to "High".
2) Edit a number of existing Problem documents clearing the Support Rep field.
RUNNING AGENTS and RAGENTS:
---------------------------
1) Run the AGENTS program, by typing 'agents' at the command prompt, followed
by the name of the sample directory and an optional server name. If no
server name is specified, the database problems.nsf in the local Notes data
directory is used.
For example, on PC platforms, if you installed the C++ API toolkit in
c:\notescpp, you could run the program as follows:
agents c:\notescpp\samples\agents
If your Notes id is password protected, you will be required to type in
the password.
This program will create the four agent notes.
Under i5/OS: Execute "RUNDOMCMD SERVER(<server>)
CMD(CALL PGM(qntcppsdk/agents) PARM(<data directory>))
BATCH(*no)"
2) Open Domino Designer and open the Problem Tracking database (problems.nsf).
Look at the Agents view. The four agents just created, "Decrease Priority," "Send
Reminder to Support Rep," "Assign Support Rep," and "Assign Hot Problems"
will be listed.
Note: You will find also "Default Agent with LotusScript" which
is included with the database and used solely as a repository of
the LotusScript code.
3) Run the RAGENTS program by typing 'ragents' at the command prompt,
followed by the optional server name. If no server name is specified,
the database problems.nsf in the local Notes data directory is used.
ragents [optional server name]
This program will execute two of the four agents just created: "Assign
Support Rep" and "Decrease Priority."
Note: The "Decrease Priority" agent will generate a warning message,
"Agent is performing full text operatons on database 'problems.nsf'
which is not full text indexed. This is extremely inefficient."
This will not affect execution of the agent. To remove the warning,
create a full text index of problems.nsf prior to running ragents.
Under i5/OS: Execute "RUNDOMCMD SERVER(<server>)
CMD(CALL PGM(qntcppsdk/ragents)) BATCH(*no)"
Note: For Domino/Notes 6, you may need to run the RAGENTS program
-- With SBMJOB command as follows:
1) Add the environment variable PATH:
"ADDENVVAR ENVVAR(PATH)
VALUE('/QIBM/PRODDATA/LOTUS/NOTES:/QIBM/USERDATA/LOTUS/NOTES:
/<server data directory>)"
2) Then run:
"SBMJOB CMD(CALL PGM(qntcsdk/ragents)) USER(qnotes)
CPYENVVAR(*YES) ALWMLTTHD(*YES)"
or
-- (for Domino 6.02 or later)
"RUNDOMCMD SERVER(<server>) CMD(CALL PGM(qntcppsdk/ragents))
BATCH(*yes) ALWMLTTHD(*yes)"
CHECKING THE RESULTS
--------------------
1) RAGENTS writes to the agents.log output log file. If no errors
occur during execution, this file contains a trace of the execution
results and run information for the two triggered agents. Any errors
that occur during execution will be displayed to the console output.
The file, agents.ref, which is included in the directory of the sample,
contains a reference for the output log. Use this file to compare with
and validate the trace results in agents.log.
2) Open the Problem Tracking database (problems.nsf) and from the Main
View notice that the Problem document you had set up to not have an
assigned Support Rep now has a Support Rep value of "Sandy Block."
This validates the "Assign Support Rep" agent execution.
3) From the Main View, notice that the newly created problem previously
assigned "High" Priority now have "Medium" Priority.
This validates the "Decrease Priority" agent execution.
4) To validate the "Send Reminder to Support Rep" agent note:
- Verify that it is available for selection from the Actions menu.
- From the Main View modify the Support Rep value of one
Problem document by assigning it your name.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Lotus C++ API Toolkit for Notes/Domino 8.0 for Windows English (576个子文件)
libcpplin.so.80 20.54MB
libcppaix80.a 8.79MB
bkground.bmp 10KB
msbitmap.c 6KB
extpwd.c 4KB
extman.c 2KB
graph.cgm 1KB
SystemProperties.class 5KB
SystemProperties.class 5KB
HotAgent.class 2KB
HotAgent.class 2KB
PropertyWrapper.class 1KB
PropertyWrapper.class 1KB
ButtonKeyDriver.class 987B
ButtonKeyDriver.class 987B
PanelKeyDriver.class 589B
PanelKeyDriver.class 589B
mk_agents_i.clp 900B
mk_agents_p.clp 785B
mk_nsf_dpp_i.clp 779B
mk_extpwd_i.clp 675B
mk_nsf_dpp_p.clp 659B
mk_extpwd_p.clp 656B
mk_rtbutton_i.clp 493B
mk_mailscan_i.clp 479B
mk_rtsearch_i.clp 477B
mk_ftsearch_i.clp 477B
mk_rtattach_i.clp 477B
mk_makeform_i.clp 477B
mk_addfoldr_i.clp 477B
mk_userregs_i.clp 477B
mk_mail_doc_i.clp 477B
mk_rtpgraph_i.clp 477B
mk_itemsamp_i.clp 477B
mk_addinjob_i.clp 477B
mk_viewfldr_i.clp 477B
mk_linkdemo_i.clp 477B
mk_schedule_i.clp 477B
mk_richtext_i.clp 477B
mk_frameset_i.clp 477B
mk_hotspot_i.clp 475B
mk_viewnav_i.clp 473B
mk_fdesign_i.clp 473B
mk_formula_i.clp 473B
mk_profile_i.clp 473B
mk_rttable_i.clp 473B
mk_mthread_i.clp 473B
mk_dbtitle_i.clp 473B
mk_rtjava_i.clp 471B
mk_search_i.clp 469B
mk_attach_i.clp 469B
mk_adminp_i.clp 469B
mk_repldb_i.clp 469B
mk_acllog_i.clp 469B
mk_copydb_i.clp 469B
mk_rtbutton_p.clp 460B
mk_mailscan_p.clp 446B
mk_rtsearch_p.clp 444B
mk_ftsearch_p.clp 444B
mk_rtattach_p.clp 444B
mk_addfoldr_p.clp 444B
mk_makeform_p.clp 444B
mk_rtpgraph_p.clp 444B
mk_userregs_p.clp 444B
mk_itemsamp_p.clp 444B
mk_mail_doc_p.clp 444B
mk_viewfldr_p.clp 444B
mk_frameset_p.clp 444B
mk_linkdemo_p.clp 444B
mk_addinjob_p.clp 444B
mk_richtext_p.clp 444B
mk_schedule_p.clp 444B
mk_hotspot_p.clp 443B
mk_viewnav_p.clp 441B
mk_fdesign_p.clp 441B
mk_formula_p.clp 441B
mk_profile_p.clp 441B
mk_rttable_p.clp 441B
mk_mthread_p.clp 441B
mk_dbtitle_p.clp 441B
mk_rtjava_p.clp 440B
mk_attach_p.clp 438B
mk_search_p.clp 438B
mk_adminp_p.clp 438B
mk_repldb_p.clp 438B
mk_copydb_p.clp 438B
mk_acllog_p.clp 438B
nsflog.cpp 68KB
rtbutton.cpp 29KB
acllog.cpp 28KB
ftsearch.cpp 27KB
rtpgraph.cpp 25KB
rttable.cpp 23KB
makeform.cpp 21KB
nsf_dpp.cpp 21KB
linkdemo.cpp 17KB
embedole.cpp 17KB
mail_doc.cpp 16KB
repldb.cpp 15KB
userregs.cpp 14KB
共 576 条
- 1
- 2
- 3
- 4
- 5
- 6
天问
- 粉丝: 27
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页