Sunteți pe pagina 1din 3

7/6/2015

Retrieve BPEL payload from the database

Retrieve BPEL payload from the database

November 10, 2011 by Francis Ip

Introduction

Leave a Comment

Given an instance id, how to get the payload used to invoke the BPEL, from the dehydration database (calle 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 Idfrom process instance data (i.e. “cube instance”) Call the

Call the com.oracle.bpel.client.IInstanceHandle.getField(“bpelVariableName”) API to get the payload. If the message type, the returned object is a Map and you can get the Element via map.get(“partName”). If the v element type, the returned object is an Element object.Lookup instance handle using conversation Id or instance Id Caveats: If your BPEL process change the

Caveats:

If your BPEL process change the value of the input variable, this API It will get the latest value, not the inititype, the returned object is an Element object. Caveats: It may not be able to get

It may not be able to get the variables from the faulted instances. It may only work with successful instancthis API It will get the latest value, not the initi Option 2. Extract payload from

Option 2. Extract payload from audit trail

Lookup instance handle using conversation Id or instance IDinstanc Option 2. Extract payload from audit trail Fetch audit trail from instance handle using

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

Use substring functions to extract initiating payloadfrom instance handle using IInstanceHandle.getAuditXXX() API Caveats: You need to do your own parsing of XML

Caveats:

You need to do your own parsing of XML in order to extract the initial payloadsubstring functions to extract initiating payload Caveats: If you use auditLevel to dial down the audit

If you use auditLevel to dial down the audit trail to a certain degree, or even totally suppress it, you may n payload from audit trailown parsing of XML in order to extract the initial payload

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 0 Tweet 0
Like
0
Tweet
0

filed under: bpel, soa suite

Add Your Comment

You must be logged in to post a comment.

Add Your Comment You must be logged in to post a comment. Search this website… Share

Search this website…

Share

Categories

Search

0

BPEL (34)

BPEL (34)

Recent Posts

7/6/2015

7/6/2015 Social Facebook Copyright Information Arch Beat Privacy at Oracle Retrieve BPEL payload from the database

Social

Retrieve BPEL payload from the database

Archives

Select Month

 
Select Month  
Related RSS Feeds

Related RSS Feeds

 
 

Select RSS Feed

  Select RSS Feed

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