Neat pro-tip for getting the ECID in BPEL

Are you writing a BPEL process and want to get the ECID for the process instance for some reason? Maybe you're building a homebrew tracking mechanism or something. Maybe you want to write it to the database for later reference.

The easy way to do it: go to your "input" partnerlink receive activity. If you edit the properties, you can assign the "tracking.ecid" to a BPEL variable. Simple, and very effective.

First we edit the properties of the receive activity of the input partnerlink.

Here we select the tracking.ecid property on the properties panel.

Here we assign the tracking.ecid to a variable (here it's just called ecid). Note it's BPEL2.0 notation.

You can download this microscopic demonstration application here.

Many thanks to the developer who showed me this trick.

Comments:

This is nice.Thank you.
Do we have similar thing to get ECID in BPEL sensors XSLT ?

Posted by Satish on March 22, 2012 at 06:26 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About


This is the blog for the Oracle FMW Architects team fondly known as the A-Team. The A-Team is the central, technical, outbound team as part of the FMW Development organization working with Oracle's largest and most important customers. We support Oracle Sales, Consulting and Support when deep technical and architectural help is needed from Oracle Development.
Primarily this blog is tailored for SOA issues (BPEL, OSB, BPM, Adapters, CEP, B2B, JCAP)that are encountered by our team. Expect real solutions to customer problems, encountered during customer engagements.
We will highlight best practices, workarounds, architectural discussions, and discuss topics that are relevant in the SOA technical space today.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today