How to run workflow using PL/SQL
2012-11-06 18:30
309 查看
Run workflow from PL/SQL
Related Queries:
declare v_itemtype varchar2(30):='TPLE***E'; --Item Type Internal Nam v_process varchar2(30):='DEFAULT_PROCESS'; --Process Name v_itemkey varchar2(30); begin select rcv_transactions_s.nextval into v_itemkey from dual; --Assign a item key wf_engine.createprocess(v_itemtype, v_itemkey,v_process); --Creates a new runtime process for an application item. wf_engine.SetItemAttrText(v_itemtype ,v_itemkey,'EMPLOYEE','OPERATIONS'); --Input Parameter wf_engine.SetItemAttrText(v_itemtype ,v_itemkey,'MANAGER','CBROWN'); --Input Parameter wf_engine.SetItemAttrDate(v_itemtype ,v_itemkey,'START_DATE',sysdate); --Input Parameter wf_engine.SetItemAttrDate(v_itemtype ,v_itemkey,'END_DATE',SYSDATE+1); --Input Parameter wf_engine.StartProcess(v_itemtype, v_itemkey); --Begins execution of the specified process. commit; end;
Related Queries:
select * from wf_items where item_type = 'TPLE***E' ; select * from wf_item_activity_statuses where item_type = 'TPLE***E' and item_key= '4088307' ; select * from wf_notifications where notification_id = 8972914;
相关文章推荐
- How to check the MS SQL Server job run status by using Script
- How to run a Spark job using Oozie workflow
- How To Load CLOB Data from a File into a CLOB column using PL/SQL
- How to install PL/SQL developer on linux
- ORACLE HANDBOOK系列之六:ODP.NET与复杂的PL/SQL数据类型(Using ODP.NET To Deal With Complex PLSQL Data Types)
- If you have multiple web application run how to determin which is yours when you debug using visual studio 2008?
- How To Connect Using A Sqlplus Preliminary Connection (Doc ID 986640.1)
- How to collate SQL_Latin1_General_CP1_CI_AS using IN operator
- How to send email using sqlserver
- Using the DBMS_SQLTUNE package to Run the Sql Tuning Advisor
- How to Quickly Create a Copy of a Table using Transact-SQL
- How to run a Java Program as a daemon (service) on Linux (openSUSE) using a shell script
- [转]How to find who is using / eating up the Virtual Address Space on your SQL Server
- How to Hack a WordPress Site using SQL Injection
- How to connect to another database using sqlplus?
- How-to find the SQL that using lots of temp tablespace in Oracle
- How to run debug SQL with in front end(EBS)?
- Here is How to Unpersist Your Persistent PL/SQL Package Data
- How to make workflow chart using several tools in Linux?
- Add Responsibility to USER using pl/sql