使用标准Package提交Workflow

代码
 1 DECLARE
 2   l_item_key      VARCHAR2(30) := 'CW_WF_DEMO_002';--项目关键字,唯一的 
 3   l_user_item_key VARCHAR2(30) := 'CW_WF_DEMO_002_UK';--用户自定义的关键字,唯一的
 4   l_item_type     VARCHAR2(30) := 'CW_DEMO';--item type internal name 
 5   l_process       VARCHAR2(30) := 'CW_TOP';--process internal name
 6 BEGIN
 7   --01 创建
 8   wf_engine.createprocess(itemtype => l_item_type,
 9                           itemkey  => l_item_key,
10                           process  => l_process,
11                           user_key => l_user_item_key);
12   --02 初始化
13   --本例不需要
14   --03 启动
15   wf_engine.startprocess(itemtype => l_item_type, itemkey => l_item_key);
16 
17   COMMIT;
18 
19   dbms_output.put_line(l_item_key);
20 end;

         

            成长

       /      |     \

    学习   总结   分享

QQ交流群:122230156

原文地址:https://www.cnblogs.com/benio/p/1886337.html