Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 216 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
How to pass ESS requestid to BIP report

Summary
Is it possible to pass the ESS job id/process id/requestid as a parameter to BIP report
Content
In fusion application, an ESS Job is defined as BIPJobType which calls a BIP report. We want to populate a parameter in BIP Report with the ESS process id. Is there a way to achieve this?
Best Answer
-
Solution :
- Create a parameter in BIP datamodel with the name as is : fusionapps_request_id
- You can give any display name. This parameter can be mapped to any third party request.
- In the master ESS job , don't add this parameter.
6
Answers
-
The table ESS_REQUEST_HISTORY contains the information of the scheduled ESS jobs.
0 -
Hi Amitabha,
You can get the ESS requestid from below two tables.
FUSION.ESS_REQUEST_HISTORY
FUSION.ESS_REQUEST_PROPERTYTo get the job id based on their status then use STATE column. For Example STATE=3 for running jobs.
Sample query:
SELECT requestid
FROM (SELECT rq1.requestid
FROM FUSION_ORA_ESS.REQUEST_HISTORY rq,
FUSION_ORA_ESS.REQUEST_HISTORY rq1
WHERE rq.STATE = '3'
AND rq.COMPLETEDTIME IS NULL
AND rq1.REQUESTID = rq.PARENTREQUESTID
ORDER BY rq.PROCESSSTART DESC) WHERE ROWNUM = 10 -
Thanks Sudhir and Anil for your comments. This workaround will work unless users are submitting multiple requests of same job simultaneously. Just wanted to check if ESS internally passes the id to BIP to uniquely identify the id, which looks like not available.
0 -
Please review if username and Definition (Job Definition) filters and the latest job id with the SYSDATE can help with the requirement.
Also, please post this Idea in Idea Labs as well:
Please review, "https://cloudcustomerconnect.oracle.com/pages/64f1844655"0 -
This is not true. ESS is the actual wrapper which triggers the jobs. Each job has a unique ID (let's call it Parent ID), and associated children IDs. For each parent ESS ID you have a corresponding BIP job id. However, your business scenario is little bit odd and needs further clarification. What do you actually want to achieve? You want to display the maching ESS job id in the BIP report?
0 -
Our requirement is a complex one, however displaying the triggering ESS job id in the BIP Report Output can be simple requirement which needs access to the value of ESS Job Id from BIP.
Just to elaborate on my requirement, by BIP report has external data source - which initiates a SOAP call to trigger ICS Integration. The integration uses multiple database adapters, I need to pass the ESS Job Id to ICS for logging the processing in ICS. Supporting the integration in a live environment becomes much easier with presence of the ESS Job Id, because that is the only unique identifier present in both back-end and front-end.
0 -
@Amitabha did you get a solution for this? I am also trying to pass the ESS JOB ID to integration layer and was wondering if there is any way ESS Job passes the id to BIP report.
0 -
@Joydeb Saha-Oracle - No we did not get a robust solution, and had to use workaround (i.e. from BI find last submitted/running ESS Job Id) and with the hope that the Job will not have concurrent submissions.
0 -
@Amitabha You can use the below logic present under the where clause to fetch the latest ESS job id. Let me know if found helpful. please modify it as per your need.
SELECT
a.payment_service_request_id,
SUM(a.payment_amount) amt
FROM
hr_organization_units hou,
iby_payments_all a,
iby_pay_service_requests ipsr
WHERE
1 = 1
AND a.org_id = hou.organization_id
AND payment_status IN ( 'FORMATTED', 'ISSUED' )
AND ipsr.payment_service_request_id = a.payment_service_request_id
AND CAST(ipsr.last_update_date AS TIMESTAMP) BETWEEN nvl((
SELECT
MAX(processstart)
FROM
ess_request_history
WHERE
jobtype = 'JobType://oracle/as/ess/ext/BIPJobType'
AND definition = 'JobDefinition://oracle/apps/ess/custom/shared/Custom/Financials/Payments/Payment File Format/XXNEW'
AND executable_status = 'SUCCEEDED'
),
CAST(ipsr.last_update_date AS TIMESTAMP)) AND sysdate
GROUP BY
a.payment_service_request_id,
ipsr.notification_message_id,
hou.name
)
0 -
in the BIP parameter you can use fusionapps_request_id this will have the request id of the parent ess job
3