注册 登录
壹佰网|ERP100 - 企业信息化知识门户 返回首页

arthurkkk的个人空间 http://www.erp100.com/?34525 [收藏] [复制] [RSS]

日志

『译』如何配置动态审核工作流

热度 1已有 1195 次阅读2010/7/9 09:12 |系统分类:专业内容|

 
定义一个申请单工作流,使每一张新单据都需要复核。该工作流是依据两个字段 (M_REQUISTION.HELP 和 M_REQUISTION.UPDATEBY)来设定的。
让我们开始吧:
1、以 GardenAdmin 角色登录,创建两个用户 GA_Sukito 和 GA_Felix
2、新建一个角色 M.Manager,并勾选 Approve own Documents 选项,在 Approval Amount 中输入 100,000,000
3、将这两个用户分配给 M.Manager 角色(User Assignment)
4、使用数据库工具(例如 sqlDeveloper),记录下这两个用户的 id: SELECT AD_USER_ID, Name FROM AD_USER
5、以 System Administrator 角色重新登陆系统
6、打开 Workflow 窗口
7、找到 Process_Requisition
8、转到 Node 页签
9、创建一个 SetUnApprove 节点:
  Search Key: (SetUnApprove)
  Name: (SetUnApprove)
  Entity Type: User maintained
  Join Element: XOR
  Split Element: XOR
  Action: Set Variable
  Column: IsApproved_Approved
  Attribute Value: N
10、再新增四个节点(SetDocAction), (SetDocStatus), (SetProcessed) & (SetProcessing),分别定义为:
  (A)
  Search Key: (SetDocAction)
  Name: (SetDocAction)
  Entity Type: User maintained
  Join Element: XOR
  Split Element: XOR
  Action: Set Variable
  Column: DocAction_Document Action
  Attribute Value: CO                !!!完成
  (B)
  Search Key: (SetDocStatus)
  Name: (SetDocStatus)
  Entity Type: User maintained
  Join Element: XOR
  Split Element: XOR
  Action: Set Variable
  Column: DocStatus_Document Status
  Attribute Value: DR                !!!起草
  (C)
  Search Key: (SetProcessed)
  Name: (SetProcessed)
  Entity Type: User maintained
  Join Element: XOR
  Split Element: XOR
  Action: Set Variable
  Column: Processed_Processed
  Attribute Value: N
  (D)
  Search Key: (SetProcessing)
  Name: (SetProcessing)
  Entity Type: User maintained
  Join Element: XOR
  Split Element: XOR
  Action: Set Variable
  Column: Processing_SetProces Now
  Attribute Value: N
11、回到(SetUnApprove)节点,再转到 Transition 页签,并新建一个 Transition,将 Next Node 设定为 (SetDocAction)
12、参考第 11 步,完成其它节点的设置(SetDocAction), (SetDocStatus), (SetProcessed) & (SetProcessing)
  (A)
  Node: (SetDocAction)
  Next Node: (SetDocStatus)
  (B)
  Node: (SetDocStatus)
  Next Node: (SetProcessed)
  (C)
  Node: (SetProcessed)
  Next Node: (SetProcessing)
13、回到 Node 页签,新增剩余的几个节点 (DocApprove_Sukito), (DocApprove_Felix), (DocVerify_Sukito), (DocVerify_Felix)
  (A)
  Search Key: (DocApprove_Sukito)
  Name: (DocApprove_Sukito)
  Entity Type: User maintained
  Join Element: XOR
  Split Element: XOR
  Action: User Choice
  Column: IsApproved_Approved
  (B)
  Search Key: (DocVerify_Sukito)
  Name: (DocVerify_Sukito)
  Entity Type: User maintained
  Join Element: XOR
  Split Element: XOR
  Action: Wait(Sleep)
  Wait Time: 0
14、回到(DocPrepare)节点,再转到 Transition 页签,新增一个 Transition (行号非常重要!)
  (A)
  Node: (DocPrepare)
  Next: (DocApprove_Sukito)
  Sequence: 10
  (B)
  Node: (DocPrepare)
  Next: (DocApprove_Felix)
  Sequence: 100
  (C)
  Node: (DocPrepare)
  Next: (SetUnApprove)
  Sequence: 1000
15、不要退出,接下来是关键的步骤了!选择(14)中的第 10 行,切换到 Condition 页签,新增一个条件:
  Node Transition: (DocPrepare)_10_...
  Sequence: 10
  And/Or: And
  Column: Help_Comment/Help
  Operation: =
  Value: GA_Sukito
  Entity Type: User maintained
16、重复(15),为 GA_Felix 新增一个条件
17、检查 14.C
18、回到(DocVerify_Sukito)节点,再转到 Transition 页签,新增 Transition:
  (A)
  Node: (DocVerify_Sukito)
  Next: (DocComplete)
  Sequence: 10
  (B)
  Node: (DocVerify_Sukito)
  Next: (SetUnApprove)
  Sequence: 100
19、选择(18)中的第 10 行,切换到 Condition 页签,新增一个条件
  Node Transition: (DocVerifySukito)_10_...
  Sequence: 10
  And/Or: And
  Column: UpdateBy_Updated By
  Operation: =
  Value: 1002604                 !!! 该值为(4)中,在数据库中查到的AD_USER_ID
  Entity Type: User maintained
20、选择(18)中的第 100 行,切换到 Condition 页签,参考(19)新增一个条件
21、为 GA_Felix 用户重复18-20
22、课程结束,试试看你的工作流是否生效。祝你好运!

发表评论 评论 (1 个评论)

回复 b15110 2010/7/10 07:42
"定义一个申请单工作流,使每一张新单据都需要复核。"
这就是目的需求?
做工作流的工作不简单啊

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2022/12/8 18:59 , Processed in 0.008260 second(s), 8 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部