如何使用存储过程实现WEB页面的审批按钮作用

     在工作流的WEB审批界面,有批准、拒绝等按钮,我们只要点击他们就会让流程流走下去。那如何实现不使用WEB页面点击,而是直接调用包实现勒?

     经过资料查找,发现了工作流引擎包wf_engine.completeactivity。传递的参数有itemtype ,itemkey,activity,RESULT。

    

     参数查找SQL:

     1.   itemtype、itemkey、activity获取sql

SELECT n.notification_id,
       n.group_id,
       n.message_type,
       n.item_key,
       p.process_name,
       p.activity_name
  FROM wf_notifications n,wf_item_activity_statuses a,wf_process_activities p
 where n.status = 'OPEN'
       and a.item_type = n.message_type
       and a.item_key = n.item_key
       and a.notification_id = n.notification_id
       and p.instance_id = a.process_activity
       and p.process_item_type = a.item_type
       and n.message_type='APEXP' --流程类型
      


    2.   RESULT参数返回值
SELECT t.ITEM_TYPE,
       t.LOOKUP_TYPE,
       l.LOOKUP_CODE
  FROM wf_lookup_types t, wf_lookups l
 WHERE t.ITEM_TYPE = 'APEXP' --流程类型
   and l.LOOKUP_TYPE = t.LOOKUP_TYPE

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值