SlideShare a Scribd company logo
How To Launch Workflow From PLSQL
--------------Calling Workflow From PLSQL-----------------------
DECLARE
x_itemtype wf_item_types.NAME % TYPE;
x_itemkey VARCHAR2(200);
x_process VARCHAR2(200);
p_mail_id VARCHAR2(200);
p_requester VARCHAR2(100);
p_vendor_name VARCHAR2(200);
BEGIN
--Assigning values to Variables---
x_itemtype: = 'XXADMM' -- This should be internal name of workflow
x_itemkey: = '12345'
x_process: = 'XXADMM_SUPP_APRVL' ---Workflow Process Internal name
p_requester : = fnd_profile.VALUE('USERNAME');
p_mail_id: = 'xyz@abc.com';
p_vendor_name: = 'ADMM';
--First we need to create the process---
wf_engine.createprocess(itemtype = > x_itemtype,
itemkey = > x_itemkey,
process = > x_process);
--Assign values to Attributes of the workflow --
wf_engine.setitemattrtext(itemtype = > x_itemtype,
itemkey = > x_itemkey,
aname = > 'VENDOR_NAME', --Internal name of Workflow Attribute
avalue = > p_vendor_name);
wf_engine.setitemattrtext(itemtype = > x_itemtype,
itemkey = > x_itemkey,
aname = > 'VENDOR_EMAIL_ID', --Internal name of Workflow
Attribute
avalue = > p_mail_id);
wf_engine.setitemattrtext(itemtype = > x_itemtype,
itemkey = > x_itemkey,
aname = > 'REQUESTER', --Internal name of Workflow Attribute
avalue = > p_requester);
--Start the workflow Process --
DBMS_OUTPUT.put_line('Workflow Started');
wf_engine.startprocess(itemtype = > x_itemtype,
itemkey = > x_itemkey);
COMMIT;
EXCEPTION WHEN OTHERS
THEN
DBMS_OUTPUT.put_line('Error in Starting Workflow:-' || SQLERRM);
END;

More Related Content

PPT
Oracle HRMS Payroll Table Overview
PDF
Configuring Parallel Approvers Notification
DOC
AME Requisition Approval Heirarchy
PPTX
Oracle Configurator Developer
DOCX
Personalization Validate Po Quantity With PR
DOCX
Custom employee number generation
PDF
The Goal with performance details Oracle Fusion Cloud
PDF
White_Paper_on_Oracle_Internet_Expenses_Setup_and_Functional_Process_Flow.pdf
Oracle HRMS Payroll Table Overview
Configuring Parallel Approvers Notification
AME Requisition Approval Heirarchy
Oracle Configurator Developer
Personalization Validate Po Quantity With PR
Custom employee number generation
The Goal with performance details Oracle Fusion Cloud
White_Paper_on_Oracle_Internet_Expenses_Setup_and_Functional_Process_Flow.pdf

What's hot (20)

PDF
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
DOCX
Elshayeb Oracle R12 Order Management
PDF
Oracle EBS HRMS SETUP
PDF
Oracle HCM Cloud Core HR Workforce Structures Table Relationships
PDF
Ame implementation-guide
PDF
Oracle EBS Currency conversion
PDF
Otl Oracle Time and Labor
PDF
Oracle R12 inventory Table name details with description
PDF
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
DOCX
Oracle Purchasing R12 Setup Steps
DOC
DOCX
Discrete Job Closure Process
PDF
Query all roles and duties and privileges Oracle Fusion Cloud
PDF
Oracle forms personalization
PPTX
Payroll process in oracle hrms
DOCX
How to remove disable and cancel shipment functionality in enter purchase or...
DOCX
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
PDF
Purchase Order Approval Using Approval Management Engine
PDF
Organization Setup in R12
PDF
Encumbrance accounting in oracle ebs r12
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Elshayeb Oracle R12 Order Management
Oracle EBS HRMS SETUP
Oracle HCM Cloud Core HR Workforce Structures Table Relationships
Ame implementation-guide
Oracle EBS Currency conversion
Otl Oracle Time and Labor
Oracle R12 inventory Table name details with description
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
Oracle Purchasing R12 Setup Steps
Discrete Job Closure Process
Query all roles and duties and privileges Oracle Fusion Cloud
Oracle forms personalization
Payroll process in oracle hrms
How to remove disable and cancel shipment functionality in enter purchase or...
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Purchase Order Approval Using Approval Management Engine
Organization Setup in R12
Encumbrance accounting in oracle ebs r12
Ad

Similar to How to launch workflow from plsql (20)

PDF
Laravel Artisan Cheat Sheet
PDF
Power shell examples_v4
PDF
Oracle
PDF
リローダブルClojureアプリケーション
PDF
Do more, faster, by extending WP-CLI
TXT
Sql procedures
PDF
PostgreSQL Procedural Languages: Tips, Tricks and Gotchas
PDF
How To Control IO Usage using Resource Manager
PPTX
AZ-103T00A-ENU-PowerPoint_01.pptx
PPTX
Creating Reusable Puppet Profiles
PPTX
An ADF Special Report
PPTX
Flask – Python
PPSX
Demo for Why Use PowerShell
PPTX
Laravel5 Introduction and essentials
PDF
PDF
Reporting solutions for ADF Applications
DOCX
Inventory aging report using oracle discoverer desktop
PDF
How I Built a Power Debugger Out of the Standard Library and Things I Found o...
PPSX
Execute sql query or sql command sql server using command prompt
PDF
Apex 5 plugins for everyone version 2018
Laravel Artisan Cheat Sheet
Power shell examples_v4
Oracle
リローダブルClojureアプリケーション
Do more, faster, by extending WP-CLI
Sql procedures
PostgreSQL Procedural Languages: Tips, Tricks and Gotchas
How To Control IO Usage using Resource Manager
AZ-103T00A-ENU-PowerPoint_01.pptx
Creating Reusable Puppet Profiles
An ADF Special Report
Flask – Python
Demo for Why Use PowerShell
Laravel5 Introduction and essentials
Reporting solutions for ADF Applications
Inventory aging report using oracle discoverer desktop
How I Built a Power Debugger Out of the Standard Library and Things I Found o...
Execute sql query or sql command sql server using command prompt
Apex 5 plugins for everyone version 2018
Ad

More from Feras Ahmad (20)

PDF
Oracle Fusion HCM Payroll Process Flow.pdf
DOCX
Configure Flexfield Parameters in Value Sets for Document Records.docx
PPT
Building-Materials
PDF
How to Debug the Fast Formula.pdf
PDF
Oracle Fusion Cloud Payroll Costing Query
PDF
Oracle Fusion Cloud sensitive data access audit
PDF
Oracle Cloud SQL FTE Positions Query
PDF
Legal Employer Details Query Oracle Fusion Cloud
PDF
Query Pre Payment details Oracle Fusion Cloud
PDF
All payroll elements with eligibility Oracle Fusion Cloud
PDF
Payroll costing details Oracle Fusion Cloud HCM
PDF
DBI database Items Query Oracle Fusion Cloud
PDF
Query Worker Contracts Details Oracle Fusion Cloud
PDF
Oracle Fusion Cloud HCM Payroll Query
PPTX
Oracle HCM Presentation 2020
PPT
Oracle Fusion HCM vs E-Business Suite HRMS
PDF
2020 06-11 goverment KSA Summary VAT increase
PPTX
Financial reporting compliance cloud service presentation
DOCX
Absence Work flow query
DOCX
Setting up audits and audit reports Fusion Cloud
Oracle Fusion HCM Payroll Process Flow.pdf
Configure Flexfield Parameters in Value Sets for Document Records.docx
Building-Materials
How to Debug the Fast Formula.pdf
Oracle Fusion Cloud Payroll Costing Query
Oracle Fusion Cloud sensitive data access audit
Oracle Cloud SQL FTE Positions Query
Legal Employer Details Query Oracle Fusion Cloud
Query Pre Payment details Oracle Fusion Cloud
All payroll elements with eligibility Oracle Fusion Cloud
Payroll costing details Oracle Fusion Cloud HCM
DBI database Items Query Oracle Fusion Cloud
Query Worker Contracts Details Oracle Fusion Cloud
Oracle Fusion Cloud HCM Payroll Query
Oracle HCM Presentation 2020
Oracle Fusion HCM vs E-Business Suite HRMS
2020 06-11 goverment KSA Summary VAT increase
Financial reporting compliance cloud service presentation
Absence Work flow query
Setting up audits and audit reports Fusion Cloud

Recently uploaded (20)

PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
DP Operators-handbook-extract for the Mautical Institute
PPTX
TLE Review Electricity (Electricity).pptx
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
A Presentation on Artificial Intelligence
PDF
WOOl fibre morphology and structure.pdf for textiles
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
Tartificialntelligence_presentation.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Web App vs Mobile App What Should You Build First.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Programs and apps: productivity, graphics, security and other tools
Assigned Numbers - 2025 - Bluetooth® Document
1 - Historical Antecedents, Social Consideration.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Encapsulation theory and applications.pdf
Zenith AI: Advanced Artificial Intelligence
Chapter 5: Probability Theory and Statistics
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
DP Operators-handbook-extract for the Mautical Institute
TLE Review Electricity (Electricity).pptx
A novel scalable deep ensemble learning framework for big data classification...
A Presentation on Artificial Intelligence
WOOl fibre morphology and structure.pdf for textiles
cloud_computing_Infrastucture_as_cloud_p
Tartificialntelligence_presentation.pptx
Unlocking AI with Model Context Protocol (MCP)
Accuracy of neural networks in brain wave diagnosis of schizophrenia

How to launch workflow from plsql

  • 1. How To Launch Workflow From PLSQL --------------Calling Workflow From PLSQL----------------------- DECLARE x_itemtype wf_item_types.NAME % TYPE; x_itemkey VARCHAR2(200); x_process VARCHAR2(200); p_mail_id VARCHAR2(200); p_requester VARCHAR2(100); p_vendor_name VARCHAR2(200); BEGIN --Assigning values to Variables--- x_itemtype: = 'XXADMM' -- This should be internal name of workflow x_itemkey: = '12345' x_process: = 'XXADMM_SUPP_APRVL' ---Workflow Process Internal name p_requester : = fnd_profile.VALUE('USERNAME'); p_mail_id: = 'xyz@abc.com'; p_vendor_name: = 'ADMM'; --First we need to create the process--- wf_engine.createprocess(itemtype = > x_itemtype, itemkey = > x_itemkey, process = > x_process); --Assign values to Attributes of the workflow -- wf_engine.setitemattrtext(itemtype = > x_itemtype, itemkey = > x_itemkey, aname = > 'VENDOR_NAME', --Internal name of Workflow Attribute avalue = > p_vendor_name); wf_engine.setitemattrtext(itemtype = > x_itemtype, itemkey = > x_itemkey, aname = > 'VENDOR_EMAIL_ID', --Internal name of Workflow Attribute avalue = > p_mail_id); wf_engine.setitemattrtext(itemtype = > x_itemtype, itemkey = > x_itemkey, aname = > 'REQUESTER', --Internal name of Workflow Attribute avalue = > p_requester); --Start the workflow Process -- DBMS_OUTPUT.put_line('Workflow Started'); wf_engine.startprocess(itemtype = > x_itemtype, itemkey = > x_itemkey); COMMIT; EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.put_line('Error in Starting Workflow:-' || SQLERRM); END;