--02 初始化 --本例不需要
--03 启动
wf_engine.startprocess(itemtype => l_item_type, itemkey =>
l_item_key);
COMMIT;
dbms_output.put_line(l_item_key);
END;
同样的方式查看Workflow的运行状态:
FORM 等其他地方以同样的方式启动~
5、 运行情况查看
P:System Administrator/Workflow/Administrator Workflow/Home 切换到Status Monitor界面,输入关键字查询
选择需要查看的Workflow,进入Status Diagram画面; 绿线表示运行完毕
6、 That is all
二、 Start—>Notification?End
1、 把上一节的Item Type拷贝一份作为练习前提
Copy and Paste;新的Internal Name为CW_WF001,Display Name为:CW_WF001_NOTIFICATION
2、 新建6个Attribute
P:N: 选中Attribute/右键/New Attribute
Internal Name APPROVER_ID APPROVER_NAME APPROVER_DSP_NAME SUBMITER_ID SUBMITER_NAME SUBMITER_DSP_NAME Display Name Approver ID Approver Name Approver Display Name Submiter ID Submiter Name Submiter Display Name Type Number Role Text Number Role Text Length 360 360 按如上表数据建立Attribute,用来保存提交者和审批者的信息。 Attribute的用法:
Attribute相当于全局变量,供整个Item Type的元素调用;
Attribute作为Notification的执行者; Attribute作为Function的调用参数;几乎任何PL/SQL函数都需要通过取得Attribute
变量--判断Attribute变量--设置Attribute变量,决定程序如何走,返回什么值 3、 新建1个Message
P:选中Message/右键/New Message
Internal Name APPROVAL_REQ Display Name Approval Requisition Text Body Just for CW Demo Message from &SUBMITER_DSP_NAME 保存的时候,系统显示找不到我们引用的Attribute:SUBMITER_DSP_NAME
Message 中引用的变量必须在自己的Attribute中。可以手工建立:Message/右键/New Attribute;也可以直接把SUBMITER_DSP_NAME复制到这个Message下面。
4、 新建1个Notification
P:选中Notification/右键/New Notification
Internal Name REQ_APPROVAL Display Name Requisition Approval Message Approval Requisition 5、 修改Process:CW_TOP
把上面建的Notification拖到CW_TOP(R12_DEMO_TOP_Process)中