Вы находитесь на странице: 1из 3

7/6/2015

Retrieve BPEL payload from the database

Fusion Middleware

Fusion Applications

About

Log in

Retrieve BPEL payload from the database


November 10, 2011 by Francis Ip

Leave a Comment

Introduction

Given an instance id, how to get the payload used to invoke the BPEL, from the dehydration database (called SOA
infrastructure database in 11G)?

Main Article
You have two options, each with its pros and cons:
Option 1. Extract payload from process instance data (i.e. cube instance)

Lookup instance handle using conversation Id or instance Id


Call the com.oracle.bpel.client.IInstanceHandle.getField(bpelVariableName) API to get the payload. If the variab
message type, the returned object is a Map and you can get the Element via map.get(partName). If the variable
element type, the returned object is an Element object.

Caveats:

If your BPEL process change the value of the input variable, this API It will get the latest value, not the initial one.
It may not be able to get the variables from the faulted instances. It may only work with successful instances

Option 2. Extract payload from audit trail


Lookup instance handle using conversation Id or instance ID
Fetch audit trail from instance handle using IInstanceHandle.getAuditXXX() API
Use substring functions to extract initiating payload

Caveats:

You need to do your own parsing of XML in order to extract the initial payload
If you use auditLevel to dial down the audit trail to a certain degree, or even totally suppress it, you may not be a
payload from audit trail
http://www.ateam-oracle.com/retrieve-bpel-payload-from-the-database-2/

1/3

7/6/2015

Retrieve BPEL payload from the database

All site content is the property of Oracle Corp. Redistribution not allowed without written permission
Like

Tw eet

filed under: bpel, soa suite

Add Your Comment


You must be logged in to post a comment.

Search this website

Search

Share
0

Categories
BPEL (34)

Recent Posts
Purging and partitioned schemas
Submitting an ESS Job Request from
BPEL in SOA 12c
http://www.ateam-oracle.com/retrieve-bpel-payload-from-the-database-2/

2/3

7/6/2015

Retrieve BPEL payload from the database

11g Mediator Diagnosing Resequencer


Issues
Custom Message Data Encryption of
Payload in SOA 11g
White Paper on Message Sequencing
Patterns using Oracle Mediator
Resequencer
Resequencer Health Check
Unable to start SOA INFRA if the
immediate and deferred audit policy
setting isActive parameters were set to
the same value

Archives
Select Month

Related RSS Feeds


Select RSS Feed

Social

Facebook

Copyright Information

Arch Beat
Privacy at Oracle

Twitter

OTN Group

Terms of use

FMW Group

About the A-Team

All content and s/w code on this site are offered without any warranty, or promise of operational quality or functionality.

http://www.ateam-oracle.com/retrieve-bpel-payload-from-the-database-2/

3/3

Вам также может понравиться