0% found this document useful (0 votes)
56 views16 pages

Business Events

Uploaded by

kris.adus
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
56 views16 pages

Business Events

Uploaded by

kris.adus
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 16
8116123, 937 AM Bases of Business Events and step by step process to subscribe to @ Business Event | OracleAppsDNA Oracleagt i E is | Basics «| ants and step by step process to subscribe & toaB =, 4 by Shailenc 14/1 Comment PROS) —BA eore soc ot Resi BankNMISiD: $2280 $30 $08 tps sw. oracleappedna.comi/2014/08/basics-of businese-evenle-and-slep-by-step-process-Lo-aubscribe-to-e-businest-evenY/ 16 9,97 oases of snes Evers nd stp by tp proce ster ta Dunes vt] OlopsONA Tone [uses ten Business Events: Events > Eusiness Evente Events > Suosonptions > Personalize "Crente Event Subscrigbon! ‘An event subscription is registration indicating that a particular event is signiNcant to a particular systern. & Personelzo "Aeguired Field Dasorgtion” ‘ mndicates required fel Personalize "susscrbar” * System ‘DEV. Q Personalize "Triggering Event* = Source Type Local > Event Filter oracle appsporevreen a ‘Source Agent Qa Personalize "Execution Conon" FE a esemeean creamer Setus Enabled ~ = Rule Data Message ~ Personalize "ection Type" Se * a sore On Ear Stop and Rollback ~ Business Event Business Event is an occurrence of a business acti which has some significance. For example, the activity of creating a purchase order (PO) is a business event, like wise approving PO, receiving goods against a PO, matching a PO receipt with invoice is a Business Event. Subscription Subscription is an activity to be performed on occurrence of a Business Event. hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ 216 8116123, 937 AM Bases of Business Events and step by step process to subscribe to @ Business Event | OracleAppsDNA a 8 we 38 34 How is Business Event Raised? Usually seeded Business Events are raise by workflows or Forms through a PL/SQL code. Oracle not only provides an option to create custom subscriptions to seeded Business Event s but also provides a flexibility to create a complete custom Business Event. Steps to Subscribe to a Business Event In this article | will show you how to subscribe to PO Receipt standard business event (oracle.apps.po.rcv.revtxn). Our subscription would just insert the seeded business event details into a custom temporary table. Navigate to “Workflow Administrator Web (New)" responsibility -> Administrator Workflow -> Business Events © Bi Workflow Administrator Web (New! © sdminstretor Workflow Home Daveloper Studio Business Events status Monitor NobrieStohs Administration © G5 transaction Monitor © G5 oracle Applications Manacer Chwed senvces wisp. Search for a business event oracle.apps.po.rev.revtxn v hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ ante 8116123, 997 AM Bases of Business Events and step by step process to subscribe to @ Business Event | OracleAppsDNA ORACLE aaministrator workfiow A business event Is an occurrence in an intemet or intranet application or prograrn that might be significant to other « you assocate any events you want with each other and reference thern as a group in event subscriptions. jen Enter search criteria and select the "Go" button to find your event definitions. how More Search Options ‘Select Name Display Name No events found, Click on Subscription icon 8 tam frscpepereen lect tvento) anda Suzan ‘Sscanme vote lee sate ‘aoa 7 Seceeaps rn fete Ten cee ed —— and then click on Create Subscription button hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ ane 811823, 997 AM Basis of Business Evens and step by step process to subsrbe loa Business Event | OracleAppsDNA ~Phase: 101 (enter some number greater than 100) ~ Status: Enabled —Rule Data: Message — Action Type: Custom ~ On Error: Stop and Rollback —PL/SQL Rule Function: step) x_be_test_pkg.xx insert (we will create this package and procedure in next ~ Priority: Normal — Owner Name: (enter your custom application short name) — Owner Tag: (enter your custom application short name) hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ 516 8116123, 997 AM Bases of Business Events and step by step process to subscribe to @ Business Event | OracleAppsDNA Business Events: Events > Business Everts Everts > Subscnptons > Personalize "Create Event Subscristion’ ‘An event subscription is a registration indicating that a particular evert is significant to a particular system. # Personalize "Required Field Description’ * Indicates required field Personalize "Subscriber" = system DEV Personalize "Triggering Event" * Source Type Local > = Event Filter oracle.apps.po.rev.revan © [email protected] ‘Source Agent J & Personalize "=xecution Concition" | Bhase 1 59 are run synchronously , 100'and above are deferred. = Status Enableo = Rule Data Message ~ ‘OnEtror Stop and Rollback ~ hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ ene 8118723, 937 AM Basies of Business Events and step by step process to subscribe toa Business Event | OracleAppsDNA a Business Events: Events > Business Events : Events > Subscriptions > Create Event Subscription > Create Event Subscription: Custom Subscription Personalize “Acior! ‘Tho Rule Function controls the behaviour of the subscription. Provide = Java Class name (.) for Ja Java Rule Function PL/SQL Rule Function 1 be _test_pkgao_insert Workfow Type | & Workfow Process [a (Chossa 3 WerKiow Type. bale chossing the Workfow Proce for that Type Out Agent Q To Agent Q * Priority Normal ~ Personalize "Subscription Parameters" Ss Personalize Documentation’ * Owner Name >%xcUST * Owner Tag >XxcUST Customization Level User Description Sample Business Event Subscription - vww.OracleAppsDNA.cor | hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ m6 8116123, 937 AM Bases of Business Events and step by step process to subscribe to @ Business Event | OracleAppsDNA subscription after completion of workflow business activity i.e, asynchronously. Below is the code block related to the package mentioned in the above example: Table Definition --drop table xx_be_debug_Log_tmp; CREATE TABLE xx_be_debug log tmp ¢ id NUMBER, text \VARCHAR2 (4908) , ‘time_stamp DATE DEFAULT SYSDATE 3 --DROP SEQUENCE apps.xx_be_debug_Log_tmp_seq; CREATE SEQUENCE apps.xx_be_debug_log tmp_seq START WITH 1 MAXVALUE 999999999999999999999999999 MINVALUE 1 NOCYCLE NOCACHE NOORDER; =-DROP TRIGGER xx_be_debug_Log_tmp_t1; CREATE OR REPLACE TRIGGER xx_be_debug_log tmp_t1 BEFORE INSERT ON xx_be_debug_log tmp FOR EACH RON BEGIN IF :NEW.id IS NULL THEN SELECT xx_be_debug_log_tmp_seq.nextval INTO :NEW.id FROM dual; END IF; END; / SHOW ERRORS; EXIT; Package Specification CREATE OR REPLACE PACKAGE xx_be_test_pkg. AS FUNCTION xx_insert (p_subscription_guid IN RAW, p_event IN OUT wf_event_t) RETURN VARCHAR2; END xx_be_test_pkg; / v hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evente-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ ane 8116123, 937 AM Basics of Business Events and step by step process to subscribe to a Business Event | OracleAppsDNA lparam_list — wf_paraneter_list_t; Aparam_name VARCHAR (240); Aiparam_value VARCHAR2 (2000); lLevent_name — VARCHAR2 (2000); JLevent_key — VARCHAR2 (2000); lLevent_data — VARCHAR2 (4000); BEGIN Lparan_list := pevent.getparaneterlist; Levent nane := pevent.geteventnane ()3 Levent key := plevent.geteventkey ()3 Levent data := plevent.geteventdata ()3 INSERT INTO xx_be_debug_log_tmp (text! ) VALUES (“EVENT NAMI v3 "|| dLevent_name INSERT INTO xx_be_debug_log_tmp (text ) VALUES (“EVENT KEY: ‘ || I_event_key % INSERT INTO xx_be_debug_log_tmp (text ) VALUES ("EVENT DAT * || Levent_data B IF 1_param_list 15 NOT NULL THEN FOR i IN 1_param_list.FIRST .. 1_param_list.LAST Loop Lparam_name := 1_param_list (i).getnane; Lparam_value :~ 1_param_list (i).getvalue; INSERT INTO xx_be_debug_log_tmp (text ) VALUES (1_param_name || ‘: ‘ || 1_param_value 3 COMMIT; v END LOOP; hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evente-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ one 8116123, 897. AM THEN Bases of Business Events and step by step process to subscribe to @ Business Event | OracleAppsDNA Provide context information that helps Locate the source of an error. wf_core.CONTEXT (pkg_name => 'XX_BE_TEST_PKG", proc_name => "INSERT" argl => p_event.geteventname (), arg plevent.geteventkey (), arg3 p_subscription_guid 3 Retrieves error information from the error stack and sets it into the event mess wf_event.seterrorinfo (p_event => p_event, p_type "ERROR" ) 5 RETURN ‘ERROR' 5 END xx_insert; END xx_be_test_pkgs Compile the above package and Restart Workflow Agent Listener service as shown in the below screen shot hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ s016 8116123, 937 AM Bases of Business Events and stp by step process to subscribe to @ Business Event | OracleAppsDNA =x More about the package When the Event Manager calls the rule function, it passes two parameters to the function and expects a return code when the function completes. The parameters are defined here: p_subscription_ guid - The globally unique identifier for the subscription p_event - The event message with which we can access Event Key, Event Name, Event Data and Parameters. Every seeded business event has some parameters which we can access through P. vent parameter. hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ se 811823, 997 AM Basis of Business Evens and step by step process to subsrbe loa Business Event | OracleAppsDNA Create a PO Receipt transaction so that the business event oracle.apps.po.rev.revtxn will get raised the custom subscription we created will get executed After creating PO Receipt transaction wait for a minute and query for the custom table which we have mentioned in the package. SELECT * FROM xx_be_debug log tmp; select * from xx_be_debug_ leq tup? =[seipt ouput « DeQueryResut x GBB sa | AlRonsrerches: 4n0.299seconcs {og wo me swe 1 LEVENT WAM: oracie.epps.po.rov.rovem ciate 2 2evENT sey: 36940701-219490 a-a6-14 3 SEVENT DATA: oracle.app... (1-AUG-14 4 4SHTPNENT_fEADER_1D: 36940701 c1-ae—14 Event Key A string that uniquely identifies an instance of an event. Together, the event name, event key, and event data fully communicate what occurred in the event. Event Data A set of additional details describing an event. The event data can be structured as an XML document. Together, the event name, event key, and event data fully communicate what occurred in the event. Event Message A standard Workflow structure for communicating business events, defined by the datatype WF_EVENT_T. The event message contains the event data as well as several header properties, including the event name, event key, addressing attributes, and error information. Eyent Activity hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ saN6 8116123, 937 AM Bases of Business Events and step by step process to subscribe to @ Business Event | OracleAppsDNA Java procedure. SELECT substr(wfd.corrid,1,40) corrid, decode(wfd. state, @, '@ = Ready’, Delayed’, Retained’ , 3, '3 = Exception’, to_char(substr(wfd.state,1,12))) State, COUNT(*) COUNT FROM applsys.wf_deferred wd GROUP BY wfd.corrid, wfd.state; Status Meaning Ready Activity is ready to be processed Delayed Activity wll be processed later Retained Activity was already processed Exception ‘Activity had an ertor Note: Make sure Workflow Background Process is running in the background. In this way we can use business events in many ways to solve business requirements, For Further Reading 1. [Decrypting User Password]How to find password of a User in Oracle Apps R12? 2. Useful fort n about Workflow Background Process Concurrent Prog! 3. How to use DML Statements in a Function hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ sae 8116123, 997. AM Bases of Business Events and step by step process to subscribe to @ Business Event | OracleAppsDNA Tags: Business Events 0 Comments G Start the discussion, Login wink onsionuP wir isaus @) Name 9 Share Best Newest Oldest Be the first to comment. ‘Subscribe Privacy Do Not Sell My Data v hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ sane 118723, 9:37 AM Basics of Business Evens and sep by step process to subscribe toa Business Event | OrcleAppsDNA Popular Questions Asked What is the difference between XML publisher and Bl Publisher? asked by Questions Master What is the difference between CASE and DECODE? asked by Questions Master What are the different types of Sales Orders in Order Management? asked by Questions Master Can you have multiple layout templates for a singe data template? asked by Questions Master How to display the names of the employees who earn highest salary in their respective departments? asked by Questions Master Categories Select Category Recent Posts Oracle ERP Cloud Instance Clone/Refresh Guidelines ESS Request History with Time took to Run Payload to Update AR Invoice DFF in Oracle ERP Cloud Emails generated by Oracle ERP are delivered to customer/Supplier with from email address as “no: [email protected]’ instead of [email protected] Oracle ERP Cloud SQL Query to find Bank Accounts Associated with a Supplier hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ 1916 8116123, 937 AM Bases of Business Events and step by step process to subscribe to @ Business Event | OracleAppsDNA onacts|Qngele Apps DNA. Com S Oracle Apps DNA. Com i about 3 years ago VA A E everson , OracleAppsDNA.com 2023 | ailfosts on this bl a the views ef the Author Reproducing of aces without permission is hitps sw. oracleappedna.com/2014/08/basics-ofbusinest-evenle-and-step-by-step-process-Lo-qubscribe-to-e-businest-evenY/ 616

You might also like