December 03
grammar P8499;
/*Clause*/
command_clause : Command_Name '(' command_parameter_decls ')';
command_parameter_decls : command_parameter_decl? (',' command_parameter_decl)*;
command_parameter_decl : Command_Param_Name '=' Command_Param_Value;
/*Lexicon*/
Command_Name : (UPPER|'_')(UPPER|DIGIT|'_')*;
Command_Param_Name : (UPPER|LOWER|'_')(UPPER|LOWER|DIGIT|'_')*;
Command_Param_Value : '\'' ( Escape_Sequence|~('\\'|'\'') )* '\'';
Escape_Sequence : Escape_Backslash|Escape_SingleQuotes;
fragment Escape_Backslash
: '\\\\';
fragment Escape_SingleQuotes
: '\\\'';
/*Byte*/
fragment DIGIT : '0'..'9';
fragment LOWER : 'a'..'z';
fragment UPPER : 'A'..'Z';
WHITESPACE : (' '|'\t'|'\n'|'\r'|'\f') {$channel=HIDDEN;};

November 27
Objective
Win2003Team
Win2003#1 (LAN1)
Win2003#2 (LAN1)
Win2003#3 (LAN1)
Win2003#4 (LAN1)
#1 is the default gateway, DHCP server while #2, #3, #4 are workstations on the LAN
Steps
On Win2003#1:
1. Set static ip 192.168.2.1
2. Install DHCP, create new scope [192.168.2.2~192.168.2.254]
3. Scope option add 003 router [Win2003#1]
On Win2003#2, Win2003#3, Win2003#4:
1. Automatically obtain address
November 26
Enabling an SMTP Server
These are the benefits of using an SMTP server:
• You can separate mail functions along client/server lines, which facilitates the creation of front-end client mail software that is independent of the back-end mail engine. An SMTP server is not dependent on what kind of external mail software is being used in your company.
• You can send messages to anyone with an external mail address by using the Send Message Extended system function. You must pass a valid email address in the recipient field. To enable sending external mail using SMTP add these lines to the [JDEMAIL] section in the jde.ini file of each Windows client:
• Rule1=90|OPT|MAILSERVER=smtp_server_name
The MAILSERVER setting identifies the name of the SMTP server responsible for sending messages. This setting must be equal to the name of the machine on which the SMTP service is running. This server name is the same as it is listed in the TCP/IP host file on the server.
• Rule2=100|DEFAULT|OWMON=address@your_company.com
When the Send Message system function is initiated from the Server Administration Workbench, the OWMON parameter is used to determine the From address for the mail message. Set this parameter to an appropriate mail address for your company.
• Rule3=110|DEFAULT|JDE_SYSTEM=address@your_company.com
When the Send Message system function is initiated within application or business function event rules, the JDE_SYSTEM parameter is used to determine the From address for the mail message. Set this parameter to an appropriate mail address for your company.
• Rule4=120|DEFAULT|JD Edwards EnterpriseOne Workflow_SYSTEM=address@your_company.com
When the Send Message system function is initiated from an activity in a JD Edwards EnterpriseOne Workflow process, the JD Edwards EnterpriseOne Workflow_SYSTEM parameter is used to determine the From address for the mail message. Set this parameter to an appropriate mail address as the originator of a JDEdwards EnterpriseOne Workflow message for your company.
• Rule5=130|OPT|MERGELOCAL=1
For current installations, the MERGELOCAL parameter setting should be equal to 1.
• Rule6=140|OPT|UPDATELOCAL=0
For current installations, the UPDATELOCAL parameter setting should be equal to 0.
Set Mail Preference
Work Center –> Form [Employee Mailboxes] –> Row [Mail Preference]
Notice
网络中有一台SMTP服务器,那么JDE访问它并使用address@your_company.com向外发邮件的时候,不需要提供密码么?
不是不需要,问题在于JDE不支持使用密码
那如何登录SMTP服务器呢?address@your_company.com的密码必须为空?
是的。不可以使用密码认证。功能有点弱。
November 20
Workflow.Key Structure:
是一个已启动的Workflow Process的唯一标识。一个Workflow Process由系统函数Start Process启动。
如果对于某Table的某Row启动一个Workflow Process,该Workflow Process标识为针对于该Table的该Row(Unique Key of Table)外,还需要SessionID (SSID)表示在哪一次交互中的Workflow。
Workflow.Additional Structure:
启动一个Workflow Process时传入的参数集,如果调用W98806询问审批,则需要APPRACT
Workflow.ActionMessage:
向一个用户发送邮件询问答复
To Recipient : 收信目标
Cc Recipient : 抄送目标
Bcc Recipient : 暗送目标
Mailbox : 通常<Workflow Queue> (not clearly)
Subject : 主题
Text : 通常<Blank> (not clearly)
Shortcut : 定义任意一个JDE程序超链接。通常定义为P98806/W98806A<Version=null>, Blank to CommentRequired, SL CurrentWorkFlow to ActivityInstance
W98806会修改该Workflow Instance的APPRACT以标识审批者的审批结果
Message : 用一个带参数的Info DD
Media Object Name : <None>
Media Object Key: <None>
Workflow.InformationMessage:
纯消息式邮件
To Recipient
Cc Recipient
Bcc Recipient
Mailbox: 通常<Workflow Queue>
Subject
Text
Shortcut
Message
Media Object Name
Media Object Key
Workflow.BusinessFunction
调用业务函数,通常做表的写操作
一个典型的审批Workflow:
带参数的Info DD:
Glossary Group = Y
Error Level = 3
&1, &2, …以示参数
开发对象列表:
调用Workflow的交互式程序
Workflow(不需要打包)
Workflow的KeyDSTR
Workflow的AdditionalDSTR
消息DD (请批准、已批准、已拒绝 3个)(仅Structure需要打包)
Workflow版本:
仅可通过复制Workflow得到新版本
哪里启用审批组策略:
ActionMessage的To Recipient参数
哪里可以浏览当前正在运行的所有工作流Instance:
Workflow Management –> Workflow A & T Operations –> Process Task Monitor
开发阶段常用来清除的按钮:
Purge Completed Process,清除状态为Completed的Instance
Group Processing & Hierarchical Processing:
Group:从Group #1开始,若Group #1通过审批(条件:First Response or not),则依照Threshold向Group #2审批,所有Threshold内Group均通过为审批通过,有一个Group拒绝则视为中断而拒绝。
Hierarchical:从指定节点起,依照树形结构向上,若.Parent通过审批,则依照Threshold向.Parent.Parent审批,所有Threshold内节点审批均通过为通过,中间有拒绝的视为中断而拒绝。
“And Join”属性:
Every task has an "and-join" property. This property only matters if a task has multiple transitions leading
into it. If the and-join property is checked, it requires that each transition leading to the task must complete
before the task will begin. If the and-join property is not checked, only one transition leading to the task must
complete for the task to begin.
End也是一样。至End的两根线,只要一根Complete,则End Complete(除非And Join)
若不是”And Join”,则先到的和晚到的个启用一个后续Task新实例,造成混乱。
Task间链接:
在Process全局定义好Conditional Transition及每个的Event Rule(IF语句),在画线之后Select & Attach
反应超时Escalation:
条件
原Action有一个Shortcut
原收件人目标是Distribution List(important, 8.97 workflow page 44)
仅可以设置超时一次的发送候选人,若超时邮件也超时,没有处理办法
设置Group & Hierarchical List:
G02 –> Workflow Mngt Setup –> Group Revision
Group & Hierarchical List使用同表(Structure Type/Parent Number/Number)。
但是Group(LIST1/TYPE1)编辑时需要单屏,例如
1.00 100040
1.00 100041
2.00 100042
2.00 100043
然时Hierarchical(TYPE1)树状编辑时需要多屏,例如
parent=100011
100040
100041
parent=100040
100080
100081
如果ActionMessage发送至Distribution List(Group)中的Group #1超时(在休假中),最好的处理方式是什么?
Group Distribution List比较难处理超时
Workflow每条线都是一根线程,单根线程上的Halt不影响其他线程。
实例:发给A,
如果Alpha超时,则发给Beta,
如果Beta超时,则Fail。

November 17
1. Install the Deployment Server
2. Install the Platform Pack
3. Set up the installation plan by running Installation Planner
4. Run the Installation Workbench
5. Install the HTML Web Server