SlideShare a Scribd company logo
1 of 47
Download to read offline
Oracle SOA Suite 11g - Sample
SAMPLE NAME : adapters-apps-102-ChangeOrderAPI
COMPONENT : Stored Procedure
OVERVIEW
Oracle Applications provides a set of Stored Procedures to insert and update data in
Oracle Applications. The Oracle Adapter for Oracle Applications exposes Stored
Procedures as Web Services that can inturn be invoked from a BPEL process. The
Adapter supports both out-of-the-box as well as custom stored procedures.This sample
illustrates use of Apps adapter to change a purchase order in Oracle Ebusiness suite. The
quantity of already created purchase order is changed based on user input. It is
recommended to run adapters-apps-101-OrderImportConcurrentProgram sample before
running this sample. OrderImportConcurrentProgram creates a purchase order from
scratch. The created order can be used here to change its details like ordered quantity
This example showcases updating the “quantity” field of an existing Purchase Order in
Oracle Applications using Oracle Adapter for Oracle Applications. The Adapter exposes
the following operations as Web Services:
• A custom Order Management stored procedure API to update the existing
Purchase Order
• Another custom Order Management stored procedure API to initialize the
Purchase Order
PROVIDED FILES
• README.txt
• adapters-apps-102-ChangeOrderAPI.zip-Files needed for the sample.
o artifacts
input
• changeorder_data.xml- Payload file to be read by the File
Adapter
sql
• XX_BPEL_INITLINEREC.sql- Creates wrapper package
for the stored procedure
• XX_BPEL_ORDERMANAGEMENT.sql- Creates
wrapper package for the stored procedure
o docs
adapters-apps-102-ChangeOrderAPI.pdf--Instructions
Oracle SOA Suite 11g - Sample
o ChangeOrder API-App.zip – JDeveloper Application and project
o README.txt
STEP BY STEP INSTRUCTIONS
RUNNING THE PREBUILT SAMPLE
• Set up the wrapper packages on target DB (The database on which you intend to
run this sample) by executing XX_BPEL_INITLINEREC.sql and
XX_BPEL_ORDERMANAGEMENT.sql as APPS/APPS.
• Edit the input File changeorder_data.xml.
Set LINE_ID
o This file contains two elements LINE_ID and ORDERED_QUANTITY.
o LINE_ID corresponds to the line item of the already created purchase order.
o In order to find line_id of already created order, run this query as APPS on
target database.
select l.line_id from oe_order_lines_all l, oe_order_headers_all h where
h.orig_sys_document_ref='<ORDER_ID>' and h.header_id=l.header_id;
o Replace <ORDER_ID> with order id of the order created in adapters-apps-
101-OrderImportConcurrentProgram Sample.
o The default order_id in adapters-apps-101-OrderImportConcurrentProgram
sample is 'order_id_01'.
o Replace this value in above query.
o Set the result of the query in LINE_ID element in changeorder_data.xml
file.
Set Order Quantity
As the purpose of this sample is to change order by changing its quantity, we
need to first find what is current value of quantity. Use this query to find current
order quantity
select l.ordered_quantity from oe_order_lines_all l, oe_order_headers_all h
where h.orig_sys_document_ref='<ORDER_ID>' and
h.header_id=l.header_id;
o Replace <ORDER_ID> value in above query.
Oracle SOA Suite 11g - Sample
o Execute above query and note down the value of current quantity for future
reference.
o Now search xml file for ORDERED_QUANTITY element.
o Change its value so that it is different from current quantity of the order.
• Make sure that the input files exist in the path mentioned in composite.xml
• Build the sample using JDeveloper.
• Deploy the BPEL process adapters-apps-102-ChangeOrderAPI to the weblogic
server
• Invoke the BPEL Process.
• Verify that the sample has executed successfully. Steps are mentioned in
VERIFYING EXECUTION
INSTALLING & CONFIGURING
• Configure the data source for the target database in the weblogic server.
• Create Connection to weblogic Server in the Jdeveloper.
RUNNING THE SAMPLE
• Launch JDeveloper and start weblogic server.
• Open the application ChangeOrderAPI-App.jws
• Drill down further to the .bpel file and double-click to open it.
• Navigate to composite.xml in the project adapters-apps-102-ChangeOrderAPI.
• Edit composite.xml to specify the physical directory for the File Adapter –
synchronous read operation.
<property name="inputDir" type="xs:string" many="false"
override="may">/usr/tmp</property>
Deploy the BPEL Process
• Right click the project adapters-apps-102-ChangeOrderAPI under projects in
the Application Navigator.
• Select Deploy -> adapters-apps-102-ChangeOrderAPI ->’serverConnection’
Oracle SOA Suite 11g - Sample
• Select the sample and click on Test to test the process.
• Enter a random string ‘test’ as input and click Testwebservice.
Oracle SOA Suite 11g - Sample
• Click on the BPEL process name in the left pane to see the instances.
• Click on the latest Instance ID under Instances tab to see the process flow trace.
Oracle SOA Suite 11g - Sample
VERIFYING EXECUTION
• Check for update of purchase order in Order management tables of target database
with this query
select l.ordered_quantity from oe_order_lines_all l, oe_order_headers_all h where
h.orig_sys_document_ref='<ORDER_ID>' and h.header_id=l.header_id;
• Note that the ordered_quantity should be same as the value given in
changeorder_data.xml
• Update of purchase order could also be checked using Oracle Forms Applications
o Log on to Oracle Self service Application on the target database using
Username: operations password: welcome
Oracle SOA Suite 11g - Sample
o Choose responsibility Order Management Super User, Vision Operations
(USA) from left panel.
o Choose Sales Order. Oracle forms application would open up.
o Select Order Returns-->Sales Order. Sales Order Form would open up.
o Press F11 to search for Order. In Customer PO field enter <ORDER_ID>
o Press CTRL+F11 keys. Press on Line items tab. Check the quantity of the
order is same as set in changeorder_data.xml file.
BUILDING THE SAMPLE
PROCESS FLOW
• Receive activity-- a dummy input from the BPEL Console triggers this.
• An invoke activity that points to a File Adapter – Performs synchronous Read
operation to read the “Purchase Order” from the input file.
Oracle SOA Suite 11g - Sample
• An invoke activity that points to “GET_G_MISS_LINE_REC” – Invokes the
stored procedure GET_G_MISS_LINE_REC. This is required to initialize the
“Process Purchase Order Line” stored procedure.
• An invoke activity that points to a “Process Purchase Order Line”– Invokes the
Stored Procedure service.
• A Transform activity – Sets the output of the File Adapter service to a temporary
variable.
• An assign activity –sets the input of the “Process Purchase Order Line” Stored
Procedure service.
• Set Apps Adapter Context--Sets the application context for the invocation of the
“Process Purchase Order Line” Stored Procedure Service
Create a service Connection
• Select view->Database Navigator.
• Right click on IDE Connections and select New Connection to create a new
database connection.
• Enter the following values in the Create Database Connection window.
Oracle SOA Suite 11g - Sample
• Click OK
Create a New Application
• Click New Application in the Application Navigator.
• Enter ChangeOrderAPI-App as the Application Name.
• Select SOA Application in the Application Template.
• Click Next
Oracle SOA Suite 11g - Sample
• Enter adapters-apps-102-ChangeOrderAPI as the Project Name.
• Select SOA from the Project Technologies.
• Click Next
Oracle SOA Suite 11g - Sample
• Select Composite With BPEL from the Composite Template.
• Click Finish
Oracle SOA Suite 11g - Sample
• Enter ChangeOrderAPI as the name of the BPEL Process.
• Click OK
• Select Asynchronous BPEL Process as the Template.
Oracle SOA Suite 11g - Sample
Create Oracle Apps Adapter Partner Link for Stored Procedure
• Click BPEL services in the Component palette
• Click Oracle Applications, drag-and-drop it onto the right ‘Partner Links’ swim
lane.
Oracle SOA Suite 11g - Sample
• Click Next if the welcome page appears
• Enter the Service Name as OrderManagement.
• Select the service using icon.
• Click Copy Connection.
• Service Connection page will be displayed with the connection information.
Oracle SOA Suite 11g - Sample
• Click Next.
• This opens the window IREP File not present.
• Click No to select interface using live connection
Oracle SOA Suite 11g - Sample
• Click Next in the Operation page. This opens ‘Oracle Applications Module
Browser’.
• Select Product Families >>Supply Chain Management (SCM_PF)>> Supply
Chain Trading Connector (CLN) >> Sales Order (ONT_SALES_ORDER) >>
PLSQL >> Process Order API (OE_ORDER_PUB)
• Select Process Order Line (PROCESS_LINE).
Oracle SOA Suite 11g - Sample
• The input and the output parameters of the Stored Procedure contains complex
data types that are not readily mapped to JDBC types. The Oracle Adapter for
Oracle Applications wizard provides a mechanism that detects when these types
are used and then invokes Oracle JPublisher to generate the necessary wrappers
automatically. Oracle JPublisher generates two SQL files, one to create schema
objects, and another to drop them. The SQL that creates the schema objects is
automatically executed from within the wizard to create the schema objects in the
database schema before the XSD is generated.
• The wrapper procedure has the naming convention “XX_BPEL” +
<Service_Name> + <Package Name> + “$” + <Procedure Name>. The
wrapper procedure generated in this case is
“XX_BPEL_OrderManagement_OE_ORDER_PUB$PROCESS_LINE”. The
Adapter Service points to the wrapper Stored Procedure instead of the Process
Order Line Stored Procedure. The Adapter design-time automatically loads the
wrapper design-time automatically loads the wrapper procedure onto the
underlying database
• Click Finish in the Finish page of the wizard.
Oracle SOA Suite 11g - Sample
Oracle SOA Suite 11g - Sample
Invoke the Partner link
• Select BPEL Activities and Components in the component palette.
• Drag and drop an Invoke activity into the center swim lane.
• Drag the arrow of Invoke activity and link to the InsertOrder Partnerlink
Oracle SOA Suite 11g - Sample
• Change the Name of the Invoke activity to Invoke.
• Click on to create the Input and output Variables.
• Leave the default name for the variable and click OK.
Oracle SOA Suite 11g - Sample

• Click Apply and OK
Oracle SOA Suite 11g - Sample
Create Oracle Apps Adapter Partner Link for Stored Procedure
• Click BPEL services in the Component palette
• Click Oracle Applications, drag-and-drop it onto the right ‘Partner Links’ swim
lane.
• Click Next if the welcome page appears
Oracle SOA Suite 11g - Sample
• Enter initLineRec as the Service Name.
• Click Next.
• Select the service using icon.
• Click Copy Connection.
• Service Connection page will be displayed with the connection information.
• Click Next.
• This opens the window IREP File not present.
• Click No to select interface using the live connection
Oracle SOA Suite 11g - Sample
• Click Next in the Operation page.
• This opens Oracle Applications Module Browser.
• Navigate to Other Interfaces >> Custom Objects >>PLSQL APIs >>
OE_ORDER_PUB
• Select GET_G_MISS_LINE_REC.
Oracle SOA Suite 11g - Sample
• The GET_G_MISS_LINE_REC (GET_G_MISS_LINE_REC) Stored
Procedure does not take any input but has a complex data type (PL/SQL Table) as
output. The Oracle Adapter for Oracle Applications design-time automatically
generates a wrapper Stored Procedure and loads it on the underlying database.
This is captured in the figures below
• Click Finish in the Finish page of the wizard.
Oracle SOA Suite 11g - Sample
• Click Apply and Click ok to complete the creation of partner link.
Invoke the Partner link
• Select BPEL Activities and Components in the component palette.
• Drag and drop an Invoke activity below the receiveInput.
Oracle SOA Suite 11g - Sample
• Change the Name of the Invoke activity to Invoke.
• Click on to create Input and output Variables.
Oracle SOA Suite 11g - Sample
• Leave the default name for the variable and click OK.
• Click Apply.
• Click OK.
Create a File Adapter Partner Link.
• Click BPEL Services from the component palette.
• Click File Adapter and drag-and-drop it onto the right Partner Links swim lane.
• Click Next in the welcome page of the wizard.
• Enter the Service Name as getOrderDetails
Oracle SOA Suite 11g - Sample
• Click Next in the Adapter Interface page.
• Select the radio button Synchronous Read File in the Operation page and click
Next.
• Select Logical Name.
• Enter the Directory for Incoming Files (logical Name) as inputDir.
• Uncheck Delete Files after successful retrieval.
• Click Next.
Oracle SOA Suite 11g - Sample
• Enter the file Name as changeorder_data.xml
• Pick the schema that maps to the payload of the input file.
• Use the to pick the relevant XSD.The payload of the input file is the same as
that of the input of the Process Line Stored Procedure Service. This is captured in
the following figure
• Click OK in the Type Chooser.
Oracle SOA Suite 11g - Sample
• Click Next in the Messages Page.
• Click Apply and OK.
• This completes the creation of the File Adapter – Synchronous Read Operation
Partner Link
Oracle SOA Suite 11g - Sample
Invoke the Partner link
• Select BPEL Activities and Components in the component palette.
• Drag and drop an Invoke activity just below the receiveInput activity.
Oracle SOA Suite 11g - Sample
• Name the invoke activity as ‘Invoke’
• Click on for Input and Output to create Input and Output variables
respectively.
Oracle SOA Suite 11g - Sample
• Click Apply and OK.
Oracle SOA Suite 11g - Sample
Add Transform Activity
• From the structure panel, right click on variables and select Create variable
• Name the variable as temp_miss_line
• Select the radio button Message Type
• Select args_in_msg from the Type Chooser.
• Click OK.
Oracle SOA Suite 11g - Sample
• Click Apply
• Click OK
• Drag-and-drop Transform activity to set the output of initLineRec to the input of
Order Management
• Name the transform activity as set_Miss_Line
• Right click the Transform activity and click Edit.
• Select the source variable as Invoke_initLineRec_OutputVariable
• Select the Target variable as Invoke_OrderManagement_InputVariable
• Click to create a new Mapper file.
Oracle SOA Suite 11g - Sample
• Link db:OE_ORDER_PUB-24GET_G_MISS_LINE from source variable to
db:P_LINE_TBL_ITEM from Target variable
• Click OK in the Auto Map preferences window.
• Mapping is created from source variable to Target variable.
• Save the transformation file.
Add Assign Activity.
• Drag & drop an assign activity to set the output of the File Adapter –
Synchronous Read service and output of the initLineRec Stored procedure
service to the input of the Oracle Applications Adapter – Process PO Line
Stored Procedure operation.
• Right click the Assign and choose Edit
• Click the General tab and Name the Assign activity as SetOrderDetails.
Oracle SOA Suite 11g - Sample
• Click the Copy Operation tab and select Copy Operation
• Assign the values as following
Temp_miss_line>Input
Parameters>P_LINE_TBL
Invoke_OrderManagement_InputVariable>Input
Parameters>P_LINE_TBL
‘Update’
Invoke_OrderManagement_InputVariable>Input
Parameters
>P_LINE_TBL>P_LINE_TBL_ITEM>OPERATION
'Updated order quantity'
Invoke_OrderManagement_InputVariable>P_LINE_TBL
>P_LINE_TBL_ITEM>CHANGE_REASON
Oracle SOA Suite 11g - Sample
Invoke_SyncRead_OutputVariable>
InputParameters > P_LINE_TBL >
P_LINE_TBL_ITEM > LINE_ID
Invoke_OrderManagement_InputVariable>P_LINETBL
> P_LINE_TBL_ITEM > LINE_ID
Invoke_SyncRead_OutputVariable>
InputParameters > P_LINE_TBL >
P_LINE_TBL_ITEM >
ORDERED_QUANTITY
Invoke_OrderManagement_InputVariable>P_LINETBL
> P_LINE_TBL_ITEM > ORDERED_QUANTITY
Oracle SOA Suite 11g - Sample
Oracle SOA Suite 11g - Sample
Oracle SOA Suite 11g - Sample
Set Apps Adapter Context
• Right-click Invoke activity of the service OrderManagement and select Edit.
• Click Properties tab to set the Header properties.
• Select jca.apps.Username and click to assign a value to it.
Oracle SOA Suite 11g - Sample
• Select the radio button Expression
• Enter the value as ‘OPERATIONS’
• Similarly assign ‘Order Management Super User, Vision Operations (USA)’
for jca.apps.Responsibility.
Oracle SOA Suite 11g - Sample
Oracle SOA Suite 11g - Sample
• Design tab of Composite.xml looks as shown in the figure
Oracle SOA Suite 11g - Sample
• Click the source tab of composite.xml
• Enter a value for the inputDir. e.g. /usr/tmp
<property name="inputDir" type="xs:string" many="false"
override="may">/usr/tmp</property>
Oracle SOA Suite 11g - Sample

More Related Content

What's hot

Accessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarAccessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarKeyur Shah
 
Sql parametrized queries
Sql parametrized queriesSql parametrized queries
Sql parametrized queriesHadi Fadlallah
 
Elshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementElshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementAhmed Elshayeb
 
BI Publisher Data model design document
BI Publisher Data model design documentBI Publisher Data model design document
BI Publisher Data model design documentadivasoft
 
OBIEE 11g: Configuring LDAP Server
OBIEE 11g: Configuring LDAP Server  OBIEE 11g: Configuring LDAP Server
OBIEE 11g: Configuring LDAP Server adivasoft
 
SFDC UI - Introduction to Visualforce
SFDC UI -  Introduction to VisualforceSFDC UI -  Introduction to Visualforce
SFDC UI - Introduction to VisualforceSujit Kumar
 
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...Amit Singh
 
User hook implemantation sample example
User hook implemantation  sample exampleUser hook implemantation  sample example
User hook implemantation sample exampleAshish Harbhajanka
 
Oracle Endeca Developer's Guide
Oracle Endeca Developer's GuideOracle Endeca Developer's Guide
Oracle Endeca Developer's GuideKeyur Shah
 
Oracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning TutorialOracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning TutorialRakesh Gujjarlapudi
 
Oracle OSB Security Enforcement with OWSM
Oracle OSB Security Enforcement with OWSMOracle OSB Security Enforcement with OWSM
Oracle OSB Security Enforcement with OWSMRakesh Gujjarlapudi
 
Lesson08
Lesson08Lesson08
Lesson08renguzi
 
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book Feras Ahmad
 
Oa Framework Tutorial
Oa Framework TutorialOa Framework Tutorial
Oa Framework Tutorialnolimit797
 
R12 New Features In Order Management
R12 New Features In Order ManagementR12 New Features In Order Management
R12 New Features In Order Managementravisagaram
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Amit Sharma
 

What's hot (20)

Accessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarAccessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup Webinar
 
Sql parametrized queries
Sql parametrized queriesSql parametrized queries
Sql parametrized queries
 
DBAdapters
DBAdaptersDBAdapters
DBAdapters
 
Elshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementElshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order Management
 
Extensions in OAF
Extensions in OAF Extensions in OAF
Extensions in OAF
 
BI Publisher Data model design document
BI Publisher Data model design documentBI Publisher Data model design document
BI Publisher Data model design document
 
OBIEE 11g: Configuring LDAP Server
OBIEE 11g: Configuring LDAP Server  OBIEE 11g: Configuring LDAP Server
OBIEE 11g: Configuring LDAP Server
 
SFDC UI - Introduction to Visualforce
SFDC UI -  Introduction to VisualforceSFDC UI -  Introduction to Visualforce
SFDC UI - Introduction to Visualforce
 
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
 
User hook implemantation sample example
User hook implemantation  sample exampleUser hook implemantation  sample example
User hook implemantation sample example
 
Oracle Endeca Developer's Guide
Oracle Endeca Developer's GuideOracle Endeca Developer's Guide
Oracle Endeca Developer's Guide
 
Oracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning TutorialOracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning Tutorial
 
Oracle OSB Security Enforcement with OWSM
Oracle OSB Security Enforcement with OWSMOracle OSB Security Enforcement with OWSM
Oracle OSB Security Enforcement with OWSM
 
Lesson08
Lesson08Lesson08
Lesson08
 
Oracle ADF Case Study
Oracle ADF Case StudyOracle ADF Case Study
Oracle ADF Case Study
 
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
 
Oa Framework Tutorial
Oa Framework TutorialOa Framework Tutorial
Oa Framework Tutorial
 
R12 New Features In Order Management
R12 New Features In Order ManagementR12 New Features In Order Management
R12 New Features In Order Management
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1
 
Abap proxies
Abap proxiesAbap proxies
Abap proxies
 

Viewers also liked

Viewers also liked (14)

weblogic perfomence tuning
weblogic perfomence tuningweblogic perfomence tuning
weblogic perfomence tuning
 
Database adapter
Database adapterDatabase adapter
Database adapter
 
Bam
BamBam
Bam
 
Exception handling
Exception handlingException handling
Exception handling
 
Jndicreation of database adapter
Jndicreation of database adapterJndicreation of database adapter
Jndicreation of database adapter
 
Hudson job configuration
Hudson job configurationHudson job configuration
Hudson job configuration
 
Compensation
CompensationCompensation
Compensation
 
ORACLE SOA Activitys
ORACLE SOA ActivitysORACLE SOA Activitys
ORACLE SOA Activitys
 
Bpel activities to upload club oracle
Bpel activities to upload club oracleBpel activities to upload club oracle
Bpel activities to upload club oracle
 
File2db
File2dbFile2db
File2db
 
Manual device+settings ORACLE SOA
Manual device+settings ORACLE SOAManual device+settings ORACLE SOA
Manual device+settings ORACLE SOA
 
whileloop
whileloopwhileloop
whileloop
 
Humantask MAKE EASY DUDE
Humantask  MAKE EASY DUDEHumantask  MAKE EASY DUDE
Humantask MAKE EASY DUDE
 
java
javajava
java
 

Similar to Adapters apps-102-change orderapi

Workflow_Tips_And_Tricks_PPT.pptx
Workflow_Tips_And_Tricks_PPT.pptxWorkflow_Tips_And_Tricks_PPT.pptx
Workflow_Tips_And_Tricks_PPT.pptxRimshaKiran13
 
Adaptersdb-03-file2storedprocedure
Adaptersdb-03-file2storedprocedureAdaptersdb-03-file2storedprocedure
Adaptersdb-03-file2storedprocedureprathap kumar
 
MVCL pattern, web flow, code flow, request and response in OpenCart
MVCL pattern, web flow, code flow, request and response in OpenCartMVCL pattern, web flow, code flow, request and response in OpenCart
MVCL pattern, web flow, code flow, request and response in OpenCartSelf
 
Release 12 features work arounds and Upgrade
Release 12 features work arounds and UpgradeRelease 12 features work arounds and Upgrade
Release 12 features work arounds and UpgradePrasad Gudipaty M.S., PMP
 
Secrets of highly_avail_oltp_archs
Secrets of highly_avail_oltp_archsSecrets of highly_avail_oltp_archs
Secrets of highly_avail_oltp_archsTarik Essawi
 
Integrate MongoDB & SQL data with a single REST API
Integrate MongoDB & SQL data with a single REST APIIntegrate MongoDB & SQL data with a single REST API
Integrate MongoDB & SQL data with a single REST APIEspresso Logic
 
Oracle_ERP_finalized.ppt
Oracle_ERP_finalized.pptOracle_ERP_finalized.ppt
Oracle_ERP_finalized.pptSayedMahfouz3
 
Webinar - Oracle iProcurement in Oracle Purchasing Application
Webinar - Oracle iProcurement in Oracle Purchasing ApplicationWebinar - Oracle iProcurement in Oracle Purchasing Application
Webinar - Oracle iProcurement in Oracle Purchasing ApplicationiWare Logic Technologies Pvt. Ltd.
 
Oracle data capture c dc
Oracle data capture c dcOracle data capture c dc
Oracle data capture c dcAmit Sharma
 
Oracle appsloadtestbestpractices
Oracle appsloadtestbestpracticesOracle appsloadtestbestpractices
Oracle appsloadtestbestpracticessonusaini69
 
How to – data integrity checks in batch processing
How to – data integrity checks in batch processingHow to – data integrity checks in batch processing
How to – data integrity checks in batch processingSon Nguyen
 
Connect your SharePoint forms to external sources
Connect your SharePoint forms to external sourcesConnect your SharePoint forms to external sources
Connect your SharePoint forms to external sourcesNimrod Geva
 
Liquibase – a time machine for your data
Liquibase – a time machine for your dataLiquibase – a time machine for your data
Liquibase – a time machine for your dataNeev Technologies
 
Ebs dba con4696_pdf_4696_0001
Ebs dba con4696_pdf_4696_0001Ebs dba con4696_pdf_4696_0001
Ebs dba con4696_pdf_4696_0001jucaab
 
Get things done with Yii - quickly build webapplications
Get things done with Yii - quickly build webapplicationsGet things done with Yii - quickly build webapplications
Get things done with Yii - quickly build webapplicationsGiuliano Iacobelli
 
Oracle Application Developmenr Framework
Oracle Application Developmenr FrameworkOracle Application Developmenr Framework
Oracle Application Developmenr FrameworkGurpreet singh
 
Oracle Service Bus & Coherence Caching Strategies
Oracle Service Bus & Coherence Caching StrategiesOracle Service Bus & Coherence Caching Strategies
Oracle Service Bus & Coherence Caching StrategiesWilliam Markito Oliveira
 
AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)Igor Talevski
 

Similar to Adapters apps-102-change orderapi (20)

Workflow_Tips_And_Tricks_PPT.pptx
Workflow_Tips_And_Tricks_PPT.pptxWorkflow_Tips_And_Tricks_PPT.pptx
Workflow_Tips_And_Tricks_PPT.pptx
 
Adaptersdb-03-file2storedprocedure
Adaptersdb-03-file2storedprocedureAdaptersdb-03-file2storedprocedure
Adaptersdb-03-file2storedprocedure
 
MVCL pattern, web flow, code flow, request and response in OpenCart
MVCL pattern, web flow, code flow, request and response in OpenCartMVCL pattern, web flow, code flow, request and response in OpenCart
MVCL pattern, web flow, code flow, request and response in OpenCart
 
Release 12 features work arounds and Upgrade
Release 12 features work arounds and UpgradeRelease 12 features work arounds and Upgrade
Release 12 features work arounds and Upgrade
 
Secrets of highly_avail_oltp_archs
Secrets of highly_avail_oltp_archsSecrets of highly_avail_oltp_archs
Secrets of highly_avail_oltp_archs
 
Integrate MongoDB & SQL data with a single REST API
Integrate MongoDB & SQL data with a single REST APIIntegrate MongoDB & SQL data with a single REST API
Integrate MongoDB & SQL data with a single REST API
 
Oracle_ERP_finalized.ppt
Oracle_ERP_finalized.pptOracle_ERP_finalized.ppt
Oracle_ERP_finalized.ppt
 
Sql Portfolio
Sql PortfolioSql Portfolio
Sql Portfolio
 
1z0 591
1z0 5911z0 591
1z0 591
 
Webinar - Oracle iProcurement in Oracle Purchasing Application
Webinar - Oracle iProcurement in Oracle Purchasing ApplicationWebinar - Oracle iProcurement in Oracle Purchasing Application
Webinar - Oracle iProcurement in Oracle Purchasing Application
 
Oracle data capture c dc
Oracle data capture c dcOracle data capture c dc
Oracle data capture c dc
 
Oracle appsloadtestbestpractices
Oracle appsloadtestbestpracticesOracle appsloadtestbestpractices
Oracle appsloadtestbestpractices
 
How to – data integrity checks in batch processing
How to – data integrity checks in batch processingHow to – data integrity checks in batch processing
How to – data integrity checks in batch processing
 
Connect your SharePoint forms to external sources
Connect your SharePoint forms to external sourcesConnect your SharePoint forms to external sources
Connect your SharePoint forms to external sources
 
Liquibase – a time machine for your data
Liquibase – a time machine for your dataLiquibase – a time machine for your data
Liquibase – a time machine for your data
 
Ebs dba con4696_pdf_4696_0001
Ebs dba con4696_pdf_4696_0001Ebs dba con4696_pdf_4696_0001
Ebs dba con4696_pdf_4696_0001
 
Get things done with Yii - quickly build webapplications
Get things done with Yii - quickly build webapplicationsGet things done with Yii - quickly build webapplications
Get things done with Yii - quickly build webapplications
 
Oracle Application Developmenr Framework
Oracle Application Developmenr FrameworkOracle Application Developmenr Framework
Oracle Application Developmenr Framework
 
Oracle Service Bus & Coherence Caching Strategies
Oracle Service Bus & Coherence Caching StrategiesOracle Service Bus & Coherence Caching Strategies
Oracle Service Bus & Coherence Caching Strategies
 
AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)
 

More from prathap kumar

More from prathap kumar (18)

E10132
E10132E10132
E10132
 
Oracle sql material
Oracle sql materialOracle sql material
Oracle sql material
 
Xml material
Xml materialXml material
Xml material
 
Xslt
XsltXslt
Xslt
 
Xsd
XsdXsd
Xsd
 
Xml material
Xml materialXml material
Xml material
 
Xsd Basics R&D with ORACLE SOA
Xsd Basics R&D with ORACLE SOAXsd Basics R&D with ORACLE SOA
Xsd Basics R&D with ORACLE SOA
 
E13882== ORACLE SOA COOK BOOK
E13882== ORACLE SOA COOK BOOKE13882== ORACLE SOA COOK BOOK
E13882== ORACLE SOA COOK BOOK
 
Web services tutorial
Web services tutorialWeb services tutorial
Web services tutorial
 
While R&D WITH ORACLE SOA
While R&D WITH ORACLE SOAWhile R&D WITH ORACLE SOA
While R&D WITH ORACLE SOA
 
Synch calling asynchadd
Synch calling asynchaddSynch calling asynchadd
Synch calling asynchadd
 
Stored procedure
Stored procedureStored procedure
Stored procedure
 
Mediator-ORACLE SOA
Mediator-ORACLE SOAMediator-ORACLE SOA
Mediator-ORACLE SOA
 
Exceptionhandling4remote fault
Exceptionhandling4remote faultExceptionhandling4remote fault
Exceptionhandling4remote fault
 
Dvm
DvmDvm
Dvm
 
Creating project in j developer
Creating project in j developerCreating project in j developer
Creating project in j developer
 
Xavier technology adapters
Xavier technology adaptersXavier technology adapters
Xavier technology adapters
 
Address csv
Address csvAddress csv
Address csv
 

Recently uploaded

CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 

Recently uploaded (20)

Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 

Adapters apps-102-change orderapi

  • 1. Oracle SOA Suite 11g - Sample SAMPLE NAME : adapters-apps-102-ChangeOrderAPI COMPONENT : Stored Procedure OVERVIEW Oracle Applications provides a set of Stored Procedures to insert and update data in Oracle Applications. The Oracle Adapter for Oracle Applications exposes Stored Procedures as Web Services that can inturn be invoked from a BPEL process. The Adapter supports both out-of-the-box as well as custom stored procedures.This sample illustrates use of Apps adapter to change a purchase order in Oracle Ebusiness suite. The quantity of already created purchase order is changed based on user input. It is recommended to run adapters-apps-101-OrderImportConcurrentProgram sample before running this sample. OrderImportConcurrentProgram creates a purchase order from scratch. The created order can be used here to change its details like ordered quantity This example showcases updating the “quantity” field of an existing Purchase Order in Oracle Applications using Oracle Adapter for Oracle Applications. The Adapter exposes the following operations as Web Services: • A custom Order Management stored procedure API to update the existing Purchase Order • Another custom Order Management stored procedure API to initialize the Purchase Order PROVIDED FILES • README.txt • adapters-apps-102-ChangeOrderAPI.zip-Files needed for the sample. o artifacts input • changeorder_data.xml- Payload file to be read by the File Adapter sql • XX_BPEL_INITLINEREC.sql- Creates wrapper package for the stored procedure • XX_BPEL_ORDERMANAGEMENT.sql- Creates wrapper package for the stored procedure o docs adapters-apps-102-ChangeOrderAPI.pdf--Instructions
  • 2. Oracle SOA Suite 11g - Sample o ChangeOrder API-App.zip – JDeveloper Application and project o README.txt STEP BY STEP INSTRUCTIONS RUNNING THE PREBUILT SAMPLE • Set up the wrapper packages on target DB (The database on which you intend to run this sample) by executing XX_BPEL_INITLINEREC.sql and XX_BPEL_ORDERMANAGEMENT.sql as APPS/APPS. • Edit the input File changeorder_data.xml. Set LINE_ID o This file contains two elements LINE_ID and ORDERED_QUANTITY. o LINE_ID corresponds to the line item of the already created purchase order. o In order to find line_id of already created order, run this query as APPS on target database. select l.line_id from oe_order_lines_all l, oe_order_headers_all h where h.orig_sys_document_ref='<ORDER_ID>' and h.header_id=l.header_id; o Replace <ORDER_ID> with order id of the order created in adapters-apps- 101-OrderImportConcurrentProgram Sample. o The default order_id in adapters-apps-101-OrderImportConcurrentProgram sample is 'order_id_01'. o Replace this value in above query. o Set the result of the query in LINE_ID element in changeorder_data.xml file. Set Order Quantity As the purpose of this sample is to change order by changing its quantity, we need to first find what is current value of quantity. Use this query to find current order quantity select l.ordered_quantity from oe_order_lines_all l, oe_order_headers_all h where h.orig_sys_document_ref='<ORDER_ID>' and h.header_id=l.header_id; o Replace <ORDER_ID> value in above query.
  • 3. Oracle SOA Suite 11g - Sample o Execute above query and note down the value of current quantity for future reference. o Now search xml file for ORDERED_QUANTITY element. o Change its value so that it is different from current quantity of the order. • Make sure that the input files exist in the path mentioned in composite.xml • Build the sample using JDeveloper. • Deploy the BPEL process adapters-apps-102-ChangeOrderAPI to the weblogic server • Invoke the BPEL Process. • Verify that the sample has executed successfully. Steps are mentioned in VERIFYING EXECUTION INSTALLING & CONFIGURING • Configure the data source for the target database in the weblogic server. • Create Connection to weblogic Server in the Jdeveloper. RUNNING THE SAMPLE • Launch JDeveloper and start weblogic server. • Open the application ChangeOrderAPI-App.jws • Drill down further to the .bpel file and double-click to open it. • Navigate to composite.xml in the project adapters-apps-102-ChangeOrderAPI. • Edit composite.xml to specify the physical directory for the File Adapter – synchronous read operation. <property name="inputDir" type="xs:string" many="false" override="may">/usr/tmp</property> Deploy the BPEL Process • Right click the project adapters-apps-102-ChangeOrderAPI under projects in the Application Navigator. • Select Deploy -> adapters-apps-102-ChangeOrderAPI ->’serverConnection’
  • 4. Oracle SOA Suite 11g - Sample • Select the sample and click on Test to test the process. • Enter a random string ‘test’ as input and click Testwebservice.
  • 5. Oracle SOA Suite 11g - Sample • Click on the BPEL process name in the left pane to see the instances. • Click on the latest Instance ID under Instances tab to see the process flow trace.
  • 6. Oracle SOA Suite 11g - Sample VERIFYING EXECUTION • Check for update of purchase order in Order management tables of target database with this query select l.ordered_quantity from oe_order_lines_all l, oe_order_headers_all h where h.orig_sys_document_ref='<ORDER_ID>' and h.header_id=l.header_id; • Note that the ordered_quantity should be same as the value given in changeorder_data.xml • Update of purchase order could also be checked using Oracle Forms Applications o Log on to Oracle Self service Application on the target database using Username: operations password: welcome
  • 7. Oracle SOA Suite 11g - Sample o Choose responsibility Order Management Super User, Vision Operations (USA) from left panel. o Choose Sales Order. Oracle forms application would open up. o Select Order Returns-->Sales Order. Sales Order Form would open up. o Press F11 to search for Order. In Customer PO field enter <ORDER_ID> o Press CTRL+F11 keys. Press on Line items tab. Check the quantity of the order is same as set in changeorder_data.xml file. BUILDING THE SAMPLE PROCESS FLOW • Receive activity-- a dummy input from the BPEL Console triggers this. • An invoke activity that points to a File Adapter – Performs synchronous Read operation to read the “Purchase Order” from the input file.
  • 8. Oracle SOA Suite 11g - Sample • An invoke activity that points to “GET_G_MISS_LINE_REC” – Invokes the stored procedure GET_G_MISS_LINE_REC. This is required to initialize the “Process Purchase Order Line” stored procedure. • An invoke activity that points to a “Process Purchase Order Line”– Invokes the Stored Procedure service. • A Transform activity – Sets the output of the File Adapter service to a temporary variable. • An assign activity –sets the input of the “Process Purchase Order Line” Stored Procedure service. • Set Apps Adapter Context--Sets the application context for the invocation of the “Process Purchase Order Line” Stored Procedure Service Create a service Connection • Select view->Database Navigator. • Right click on IDE Connections and select New Connection to create a new database connection. • Enter the following values in the Create Database Connection window.
  • 9. Oracle SOA Suite 11g - Sample • Click OK Create a New Application • Click New Application in the Application Navigator. • Enter ChangeOrderAPI-App as the Application Name. • Select SOA Application in the Application Template. • Click Next
  • 10. Oracle SOA Suite 11g - Sample • Enter adapters-apps-102-ChangeOrderAPI as the Project Name. • Select SOA from the Project Technologies. • Click Next
  • 11. Oracle SOA Suite 11g - Sample • Select Composite With BPEL from the Composite Template. • Click Finish
  • 12. Oracle SOA Suite 11g - Sample • Enter ChangeOrderAPI as the name of the BPEL Process. • Click OK • Select Asynchronous BPEL Process as the Template.
  • 13. Oracle SOA Suite 11g - Sample Create Oracle Apps Adapter Partner Link for Stored Procedure • Click BPEL services in the Component palette • Click Oracle Applications, drag-and-drop it onto the right ‘Partner Links’ swim lane.
  • 14. Oracle SOA Suite 11g - Sample • Click Next if the welcome page appears • Enter the Service Name as OrderManagement. • Select the service using icon. • Click Copy Connection. • Service Connection page will be displayed with the connection information.
  • 15. Oracle SOA Suite 11g - Sample • Click Next. • This opens the window IREP File not present. • Click No to select interface using live connection
  • 16. Oracle SOA Suite 11g - Sample • Click Next in the Operation page. This opens ‘Oracle Applications Module Browser’. • Select Product Families >>Supply Chain Management (SCM_PF)>> Supply Chain Trading Connector (CLN) >> Sales Order (ONT_SALES_ORDER) >> PLSQL >> Process Order API (OE_ORDER_PUB) • Select Process Order Line (PROCESS_LINE).
  • 17. Oracle SOA Suite 11g - Sample • The input and the output parameters of the Stored Procedure contains complex data types that are not readily mapped to JDBC types. The Oracle Adapter for Oracle Applications wizard provides a mechanism that detects when these types are used and then invokes Oracle JPublisher to generate the necessary wrappers automatically. Oracle JPublisher generates two SQL files, one to create schema objects, and another to drop them. The SQL that creates the schema objects is automatically executed from within the wizard to create the schema objects in the database schema before the XSD is generated. • The wrapper procedure has the naming convention “XX_BPEL” + <Service_Name> + <Package Name> + “$” + <Procedure Name>. The wrapper procedure generated in this case is “XX_BPEL_OrderManagement_OE_ORDER_PUB$PROCESS_LINE”. The Adapter Service points to the wrapper Stored Procedure instead of the Process Order Line Stored Procedure. The Adapter design-time automatically loads the wrapper design-time automatically loads the wrapper procedure onto the underlying database • Click Finish in the Finish page of the wizard.
  • 18. Oracle SOA Suite 11g - Sample
  • 19. Oracle SOA Suite 11g - Sample Invoke the Partner link • Select BPEL Activities and Components in the component palette. • Drag and drop an Invoke activity into the center swim lane. • Drag the arrow of Invoke activity and link to the InsertOrder Partnerlink
  • 20. Oracle SOA Suite 11g - Sample • Change the Name of the Invoke activity to Invoke. • Click on to create the Input and output Variables. • Leave the default name for the variable and click OK.
  • 21. Oracle SOA Suite 11g - Sample • Click Apply and OK
  • 22. Oracle SOA Suite 11g - Sample Create Oracle Apps Adapter Partner Link for Stored Procedure • Click BPEL services in the Component palette • Click Oracle Applications, drag-and-drop it onto the right ‘Partner Links’ swim lane. • Click Next if the welcome page appears
  • 23. Oracle SOA Suite 11g - Sample • Enter initLineRec as the Service Name. • Click Next. • Select the service using icon. • Click Copy Connection. • Service Connection page will be displayed with the connection information. • Click Next. • This opens the window IREP File not present. • Click No to select interface using the live connection
  • 24. Oracle SOA Suite 11g - Sample • Click Next in the Operation page. • This opens Oracle Applications Module Browser. • Navigate to Other Interfaces >> Custom Objects >>PLSQL APIs >> OE_ORDER_PUB • Select GET_G_MISS_LINE_REC.
  • 25. Oracle SOA Suite 11g - Sample • The GET_G_MISS_LINE_REC (GET_G_MISS_LINE_REC) Stored Procedure does not take any input but has a complex data type (PL/SQL Table) as output. The Oracle Adapter for Oracle Applications design-time automatically generates a wrapper Stored Procedure and loads it on the underlying database. This is captured in the figures below • Click Finish in the Finish page of the wizard.
  • 26. Oracle SOA Suite 11g - Sample • Click Apply and Click ok to complete the creation of partner link. Invoke the Partner link • Select BPEL Activities and Components in the component palette. • Drag and drop an Invoke activity below the receiveInput.
  • 27. Oracle SOA Suite 11g - Sample • Change the Name of the Invoke activity to Invoke. • Click on to create Input and output Variables.
  • 28. Oracle SOA Suite 11g - Sample • Leave the default name for the variable and click OK. • Click Apply. • Click OK. Create a File Adapter Partner Link. • Click BPEL Services from the component palette. • Click File Adapter and drag-and-drop it onto the right Partner Links swim lane. • Click Next in the welcome page of the wizard. • Enter the Service Name as getOrderDetails
  • 29. Oracle SOA Suite 11g - Sample • Click Next in the Adapter Interface page. • Select the radio button Synchronous Read File in the Operation page and click Next. • Select Logical Name. • Enter the Directory for Incoming Files (logical Name) as inputDir. • Uncheck Delete Files after successful retrieval. • Click Next.
  • 30. Oracle SOA Suite 11g - Sample • Enter the file Name as changeorder_data.xml • Pick the schema that maps to the payload of the input file. • Use the to pick the relevant XSD.The payload of the input file is the same as that of the input of the Process Line Stored Procedure Service. This is captured in the following figure • Click OK in the Type Chooser.
  • 31. Oracle SOA Suite 11g - Sample • Click Next in the Messages Page. • Click Apply and OK. • This completes the creation of the File Adapter – Synchronous Read Operation Partner Link
  • 32. Oracle SOA Suite 11g - Sample Invoke the Partner link • Select BPEL Activities and Components in the component palette. • Drag and drop an Invoke activity just below the receiveInput activity.
  • 33. Oracle SOA Suite 11g - Sample • Name the invoke activity as ‘Invoke’ • Click on for Input and Output to create Input and Output variables respectively.
  • 34. Oracle SOA Suite 11g - Sample • Click Apply and OK.
  • 35. Oracle SOA Suite 11g - Sample Add Transform Activity • From the structure panel, right click on variables and select Create variable • Name the variable as temp_miss_line • Select the radio button Message Type • Select args_in_msg from the Type Chooser. • Click OK.
  • 36. Oracle SOA Suite 11g - Sample • Click Apply • Click OK • Drag-and-drop Transform activity to set the output of initLineRec to the input of Order Management • Name the transform activity as set_Miss_Line • Right click the Transform activity and click Edit. • Select the source variable as Invoke_initLineRec_OutputVariable • Select the Target variable as Invoke_OrderManagement_InputVariable • Click to create a new Mapper file.
  • 37. Oracle SOA Suite 11g - Sample • Link db:OE_ORDER_PUB-24GET_G_MISS_LINE from source variable to db:P_LINE_TBL_ITEM from Target variable • Click OK in the Auto Map preferences window. • Mapping is created from source variable to Target variable. • Save the transformation file. Add Assign Activity. • Drag & drop an assign activity to set the output of the File Adapter – Synchronous Read service and output of the initLineRec Stored procedure service to the input of the Oracle Applications Adapter – Process PO Line Stored Procedure operation. • Right click the Assign and choose Edit • Click the General tab and Name the Assign activity as SetOrderDetails.
  • 38. Oracle SOA Suite 11g - Sample • Click the Copy Operation tab and select Copy Operation • Assign the values as following Temp_miss_line>Input Parameters>P_LINE_TBL Invoke_OrderManagement_InputVariable>Input Parameters>P_LINE_TBL ‘Update’ Invoke_OrderManagement_InputVariable>Input Parameters >P_LINE_TBL>P_LINE_TBL_ITEM>OPERATION 'Updated order quantity' Invoke_OrderManagement_InputVariable>P_LINE_TBL >P_LINE_TBL_ITEM>CHANGE_REASON
  • 39. Oracle SOA Suite 11g - Sample Invoke_SyncRead_OutputVariable> InputParameters > P_LINE_TBL > P_LINE_TBL_ITEM > LINE_ID Invoke_OrderManagement_InputVariable>P_LINETBL > P_LINE_TBL_ITEM > LINE_ID Invoke_SyncRead_OutputVariable> InputParameters > P_LINE_TBL > P_LINE_TBL_ITEM > ORDERED_QUANTITY Invoke_OrderManagement_InputVariable>P_LINETBL > P_LINE_TBL_ITEM > ORDERED_QUANTITY
  • 40. Oracle SOA Suite 11g - Sample
  • 41. Oracle SOA Suite 11g - Sample
  • 42. Oracle SOA Suite 11g - Sample Set Apps Adapter Context • Right-click Invoke activity of the service OrderManagement and select Edit. • Click Properties tab to set the Header properties. • Select jca.apps.Username and click to assign a value to it.
  • 43. Oracle SOA Suite 11g - Sample • Select the radio button Expression • Enter the value as ‘OPERATIONS’ • Similarly assign ‘Order Management Super User, Vision Operations (USA)’ for jca.apps.Responsibility.
  • 44. Oracle SOA Suite 11g - Sample
  • 45. Oracle SOA Suite 11g - Sample • Design tab of Composite.xml looks as shown in the figure
  • 46. Oracle SOA Suite 11g - Sample • Click the source tab of composite.xml • Enter a value for the inputDir. e.g. /usr/tmp <property name="inputDir" type="xs:string" many="false" override="may">/usr/tmp</property>
  • 47. Oracle SOA Suite 11g - Sample